[go: nahoru, domu]

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 \
233e654dc68a954b150c141c4a2e96418883bd7c9bChia-I Wu	-DVK_NO_PROTOTYPES \
24715b86ac7d0853131b375ff786c87d8d87a762a1Jesse Hall	-std=c99 -fvisibility=hidden -fstrict-aliasing \
25715b86ac7d0853131b375ff786c87d8d87a762a1Jesse Hall	-Weverything -Werror \
26715b86ac7d0853131b375ff786c87d8d87a762a1Jesse Hall	-Wno-padded \
27517274a29e50522a11e65107bb2c0d5b123aa7d5Jesse Hall	-Wno-switch-enum \
28715b86ac7d0853131b375ff786c87d8d87a762a1Jesse Hall	-Wno-undef
29715b86ac7d0853131b375ff786c87d8d87a762a1Jesse Hall#LOCAL_CFLAGS += -DLOG_NDEBUG=0
3080523e2e39c29b06ab40573468dde43a9867f487Jesse HallLOCAL_CPPFLAGS := -std=c++14 \
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 \
459d51816145b008b7b4b091a8c90faf30ba0394e4Chia-I Wu	driver.cpp \
46eb7db124e46da9a9210cf868353f5ea79502ffecChia-I Wu	driver_gen.cpp \
4780523e2e39c29b06ab40573468dde43a9867f487Jesse Hall	layers_extensions.cpp \
48b7c4e3b7c97c952ba26f061d74d2038e6c94e689Jesse Hall	stubhal.cpp \
491c69b9e33e34c6aef571b8383bdb7e2b3a5e0849Michael Lentine	swapchain.cpp \
501c69b9e33e34c6aef571b8383bdb7e2b3a5e0849Michael Lentine	vulkan_loader_data.cpp
5104f4f4746481571148eaf3aaf768ee5c6dccec9dJesse HallLOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
5204f4f4746481571148eaf3aaf768ee5c6dccec9dJesse Hall
531a7eb59c2a7907ea4c4925c6d13d66e53fb60339Jesse HallLOCAL_STATIC_LIBRARIES := libziparchive
541a7eb59c2a7907ea4c4925c6d13d66e53fb60339Jesse HallLOCAL_SHARED_LIBRARIES := libhardware libsync libbase liblog libutils libcutils libz
5504f4f4746481571148eaf3aaf768ee5c6dccec9dJesse Hall
5604f4f4746481571148eaf3aaf768ee5c6dccec9dJesse HallLOCAL_MODULE := libvulkan
5704f4f4746481571148eaf3aaf768ee5c6dccec9dJesse Hallinclude $(BUILD_SHARED_LIBRARY)
58