blob: f1155ca47bc69c4d6d01c59c80cc7c43fa4900ee [file] [log] [blame]
Jesse Halld02edcb2015-09-08 07:44:48 -07001# 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
Jesse Hall04f4f472015-08-16 19:51:04 -070015LOCAL_PATH:= $(call my-dir)
16include $(CLEAR_VARS)
17
18LOCAL_CLANG := true
Jesse Hallc4eee832016-02-28 20:48:56 -080019LOCAL_SANITIZE := integer
20
Jesse Hall715b86a2016-01-16 16:34:29 -080021LOCAL_CFLAGS := -DLOG_TAG=\"vulkan\" \
Chia-I Wu0c203242016-03-15 13:44:51 +080022 -DVK_USE_PLATFORM_ANDROID_KHR \
Chia-I Wu3e654dc2016-05-20 16:15:06 +080023 -DVK_NO_PROTOTYPES \
Jesse Hall715b86a2016-01-16 16:34:29 -080024 -std=c99 -fvisibility=hidden -fstrict-aliasing \
25 -Weverything -Werror \
26 -Wno-padded \
Jesse Hall517274a2016-02-10 00:07:18 -080027 -Wno-switch-enum \
Chia-I Wu359d8012016-07-22 10:36:33 +080028 -Wno-undef
Pirama Arumuga Nainard2c942f2016-06-28 14:45:29 -070029
Jesse Hall715b86a2016-01-16 16:34:29 -080030#LOCAL_CFLAGS += -DLOG_NDEBUG=0
Jesse Hall80523e22016-01-06 16:47:54 -080031LOCAL_CPPFLAGS := -std=c++14 \
Jesse Hall517274a2016-02-10 00:07:18 -080032 -Wno-c99-extensions \
Jesse Hall04f4f472015-08-16 19:51:04 -070033 -Wno-c++98-compat-pedantic \
34 -Wno-exit-time-destructors \
Jesse Hall517274a2016-02-10 00:07:18 -080035 -Wno-global-constructors \
36 -Wno-zero-length-array
Jesse Hall04f4f472015-08-16 19:51:04 -070037
38LOCAL_C_INCLUDES := \
Jesse Halld7b994a2015-09-07 14:17:37 -070039 frameworks/native/vulkan/include \
40 system/core/libsync/include
Jesse Hall04f4f472015-08-16 19:51:04 -070041
42LOCAL_SRC_FILES := \
Chia-I Wu0c203242016-03-15 13:44:51 +080043 api.cpp \
44 api_gen.cpp \
Jesse Hall715b86a2016-01-16 16:34:29 -080045 debug_report.cpp \
Chia-I Wu9d518162016-03-24 14:55:27 +080046 driver.cpp \
Chia-I Wueb7db122016-03-24 09:11:06 +080047 driver_gen.cpp \
Jesse Hall80523e22016-01-06 16:47:54 -080048 layers_extensions.cpp \
Jesse Hallb7c4e3b2016-04-11 13:51:38 -070049 stubhal.cpp \
Michael Lentine1c69b9e2015-09-14 13:26:59 -050050 swapchain.cpp \
51 vulkan_loader_data.cpp
Jesse Hall04f4f472015-08-16 19:51:04 -070052LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
53
Jesse Hall1a7eb592016-05-01 21:04:40 +020054LOCAL_STATIC_LIBRARIES := libziparchive
55LOCAL_SHARED_LIBRARIES := libhardware libsync libbase liblog libutils libcutils libz
Jesse Hall04f4f472015-08-16 19:51:04 -070056
57LOCAL_MODULE := libvulkan
58include $(BUILD_SHARED_LIBRARY)