1 # Copyright 2015 The Android Open Source Project 2 # 3 # Licensed under the Apache License, Version 2.0 (the "License"); 4 # you may not use this file except in compliance with the License. 5 # You may obtain a copy of the License at 6 # 7 # http://www.apache.org/licenses/LICENSE-2.0 8 # 9 # Unless required by applicable law or agreed to in writing, software 10 # distributed under the License is distributed on an "AS IS" BASIS, 11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 # See the License for the specific language governing permissions and 13 # limitations under the License. 14 15 LOCAL_PATH:= $(call my-dir) 16 include $(CLEAR_VARS) 17 18 LOCAL_CLANG := true 19 LOCAL_SANITIZE := integer 20 21 LOCAL_CFLAGS := -DLOG_TAG=\"vulkan\" \ 22 -DVK_USE_PLATFORM_ANDROID_KHR \ 23 -DVK_NO_PROTOTYPES \ 24 -std=c99 -fvisibility=hidden -fstrict-aliasing \ 25 -Weverything -Werror \ 26 -Wno-padded \ 27 -Wno-switch-enum \ 28 -Wno-undef 29 #LOCAL_CFLAGS += -DLOG_NDEBUG=0 30 LOCAL_CPPFLAGS := -std=c++14 \ 31 -Wno-c99-extensions \ 32 -Wno-c++98-compat-pedantic \ 33 -Wno-exit-time-destructors \ 34 -Wno-global-constructors \ 35 -Wno-zero-length-array 36 37 LOCAL_C_INCLUDES := \ 38 frameworks/native/vulkan/include \ 39 system/core/libsync/include 40 41 LOCAL_SRC_FILES := \ 42 api.cpp \ 43 api_gen.cpp \ 44 debug_report.cpp \ 45 driver.cpp \ 46 driver_gen.cpp \ 47 layers_extensions.cpp \ 48 stubhal.cpp \ 49 swapchain.cpp \ 50 vulkan_loader_data.cpp 51 LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk 52 53 LOCAL_STATIC_LIBRARIES := libziparchive 54 LOCAL_SHARED_LIBRARIES := libhardware libsync libbase liblog libutils libcutils libz 55 56 LOCAL_MODULE := libvulkan 57 include $(BUILD_SHARED_LIBRARY) 58