Android.mk revision 0c2032490b80178ec823bf22a7f5d08398851cc3
1d02edcbb40d476b6d3b5ae279a6ccef786be8848Jesse Hall# Copyright 2015 The Android Open Source Project 2d02edcbb40d476b6d3b5ae279a6ccef786be8848Jesse Hall# 3d02edcbb40d476b6d3b5ae279a6ccef786be8848Jesse Hall# Licensed under the Apache License, Version 2.0 (the "License"); 4d02edcbb40d476b6d3b5ae279a6ccef786be8848Jesse Hall# you may not use this file except in compliance with the License. 5d02edcbb40d476b6d3b5ae279a6ccef786be8848Jesse Hall# You may obtain a copy of the License at 6d02edcbb40d476b6d3b5ae279a6ccef786be8848Jesse Hall# 7d02edcbb40d476b6d3b5ae279a6ccef786be8848Jesse Hall# http://www.apache.org/licenses/LICENSE-2.0 8d02edcbb40d476b6d3b5ae279a6ccef786be8848Jesse Hall# 9d02edcbb40d476b6d3b5ae279a6ccef786be8848Jesse Hall# Unless required by applicable law or agreed to in writing, software 10d02edcbb40d476b6d3b5ae279a6ccef786be8848Jesse Hall# distributed under the License is distributed on an "AS IS" BASIS, 11d02edcbb40d476b6d3b5ae279a6ccef786be8848Jesse Hall# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12d02edcbb40d476b6d3b5ae279a6ccef786be8848Jesse Hall# See the License for the specific language governing permissions and 13d02edcbb40d476b6d3b5ae279a6ccef786be8848Jesse Hall# limitations under the License. 14d02edcbb40d476b6d3b5ae279a6ccef786be8848Jesse Hall 1504f4f4746481571148eaf3aaf768ee5c6dccec9dJesse HallLOCAL_PATH:= $(call my-dir) 1604f4f4746481571148eaf3aaf768ee5c6dccec9dJesse Hallinclude $(CLEAR_VARS) 1704f4f4746481571148eaf3aaf768ee5c6dccec9dJesse Hall 1804f4f4746481571148eaf3aaf768ee5c6dccec9dJesse HallLOCAL_CLANG := true 19c4eee83b6eb4b4ebc67ddda2c7119988ce654101Jesse HallLOCAL_SANITIZE := integer 20c4eee83b6eb4b4ebc67ddda2c7119988ce654101Jesse Hall 21715b86ac7d0853131b375ff786c87d8d87a762a1Jesse HallLOCAL_CFLAGS := -DLOG_TAG=\"vulkan\" \ 220c2032490b80178ec823bf22a7f5d08398851cc3Chia-I Wu -DVK_USE_PLATFORM_ANDROID_KHR \ 23715b86ac7d0853131b375ff786c87d8d87a762a1Jesse Hall -std=c99 -fvisibility=hidden -fstrict-aliasing \ 24715b86ac7d0853131b375ff786c87d8d87a762a1Jesse Hall -Weverything -Werror \ 25715b86ac7d0853131b375ff786c87d8d87a762a1Jesse Hall -Wno-padded \ 26517274a29e50522a11e65107bb2c0d5b123aa7d5Jesse Hall -Wno-switch-enum \ 27715b86ac7d0853131b375ff786c87d8d87a762a1Jesse Hall -Wno-undef 28715b86ac7d0853131b375ff786c87d8d87a762a1Jesse Hall#LOCAL_CFLAGS += -DLOG_NDEBUG=0 2980523e2e39c29b06ab40573468dde43a9867f487Jesse HallLOCAL_CPPFLAGS := -std=c++14 \ 3026cecff368f2edba67d136ce00d27bb55634c0f1Jesse Hall -fexceptions \ 31517274a29e50522a11e65107bb2c0d5b123aa7d5Jesse Hall -Wno-c99-extensions \ 3204f4f4746481571148eaf3aaf768ee5c6dccec9dJesse Hall -Wno-c++98-compat-pedantic \ 3304f4f4746481571148eaf3aaf768ee5c6dccec9dJesse Hall -Wno-exit-time-destructors \ 34517274a29e50522a11e65107bb2c0d5b123aa7d5Jesse Hall -Wno-global-constructors \ 35517274a29e50522a11e65107bb2c0d5b123aa7d5Jesse Hall -Wno-zero-length-array 3604f4f4746481571148eaf3aaf768ee5c6dccec9dJesse Hall 3704f4f4746481571148eaf3aaf768ee5c6dccec9dJesse HallLOCAL_C_INCLUDES := \ 38d7b994a0cfb9054aafc1dadc85085a7d0ef8789aJesse Hall frameworks/native/vulkan/include \ 39d7b994a0cfb9054aafc1dadc85085a7d0ef8789aJesse Hall system/core/libsync/include 4004f4f4746481571148eaf3aaf768ee5c6dccec9dJesse Hall 4104f4f4746481571148eaf3aaf768ee5c6dccec9dJesse HallLOCAL_SRC_FILES := \ 420c2032490b80178ec823bf22a7f5d08398851cc3Chia-I Wu api.cpp \ 430c2032490b80178ec823bf22a7f5d08398851cc3Chia-I Wu api_gen.cpp \ 44715b86ac7d0853131b375ff786c87d8d87a762a1Jesse Hall debug_report.cpp \ 451f91d390ac013ea2514a67e12ddb083119d636d7Jesse Hall dispatch_gen.cpp \ 4680523e2e39c29b06ab40573468dde43a9867f487Jesse Hall layers_extensions.cpp \ 47b1352bce9cd82ceaef287b8b3cd7a5c39703a14cJesse Hall loader.cpp \ 481c69b9e33e34c6aef571b8383bdb7e2b3a5e0849Michael Lentine swapchain.cpp \ 491c69b9e33e34c6aef571b8383bdb7e2b3a5e0849Michael Lentine vulkan_loader_data.cpp 5004f4f4746481571148eaf3aaf768ee5c6dccec9dJesse HallLOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk 5104f4f4746481571148eaf3aaf768ee5c6dccec9dJesse Hall 5226cecff368f2edba67d136ce00d27bb55634c0f1Jesse HallLOCAL_SHARED_LIBRARIES := libhardware liblog libsync libutils libcutils 5304f4f4746481571148eaf3aaf768ee5c6dccec9dJesse Hall 5404f4f4746481571148eaf3aaf768ee5c6dccec9dJesse HallLOCAL_MODULE := libvulkan 5504f4f4746481571148eaf3aaf768ee5c6dccec9dJesse Hallinclude $(BUILD_SHARED_LIBRARY) 56