Android.mk revision eb7db124e46da9a9210cf868353f5ea79502ffec
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
15LOCAL_PATH:= $(call my-dir)
16include $(CLEAR_VARS)
17
18LOCAL_CLANG := true
19LOCAL_SANITIZE := integer
20
21LOCAL_CFLAGS := -DLOG_TAG=\"vulkan\" \
22	-DVK_USE_PLATFORM_ANDROID_KHR \
23	-std=c99 -fvisibility=hidden -fstrict-aliasing \
24	-Weverything -Werror \
25	-Wno-padded \
26	-Wno-switch-enum \
27	-Wno-undef
28#LOCAL_CFLAGS += -DLOG_NDEBUG=0
29LOCAL_CPPFLAGS := -std=c++14 \
30	-fexceptions \
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
37LOCAL_C_INCLUDES := \
38	frameworks/native/vulkan/include \
39	system/core/libsync/include
40
41LOCAL_SRC_FILES := \
42	api.cpp \
43	api_gen.cpp \
44	debug_report.cpp \
45	dispatch_gen.cpp \
46	driver.cpp \
47	driver_gen.cpp \
48	layers_extensions.cpp \
49	loader.cpp \
50	swapchain.cpp \
51	vulkan_loader_data.cpp
52LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
53
54LOCAL_SHARED_LIBRARIES := libhardware liblog libsync libutils libcutils
55
56LOCAL_MODULE := libvulkan
57include $(BUILD_SHARED_LIBRARY)
58