Android.mk revision 517274a29e50522a11e65107bb2c0d5b123aa7d5
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
19715b86ac7d0853131b375ff786c87d8d87a762a1Jesse HallLOCAL_CFLAGS := -DLOG_TAG=\"vulkan\" \
20715b86ac7d0853131b375ff786c87d8d87a762a1Jesse Hall	-std=c99 -fvisibility=hidden -fstrict-aliasing \
21715b86ac7d0853131b375ff786c87d8d87a762a1Jesse Hall	-Weverything -Werror \
22715b86ac7d0853131b375ff786c87d8d87a762a1Jesse Hall	-Wno-padded \
23517274a29e50522a11e65107bb2c0d5b123aa7d5Jesse Hall	-Wno-switch-enum \
24715b86ac7d0853131b375ff786c87d8d87a762a1Jesse Hall	-Wno-undef
25715b86ac7d0853131b375ff786c87d8d87a762a1Jesse Hall#LOCAL_CFLAGS += -DLOG_NDEBUG=0
2680523e2e39c29b06ab40573468dde43a9867f487Jesse HallLOCAL_CPPFLAGS := -std=c++14 \
2726cecff368f2edba67d136ce00d27bb55634c0f1Jesse Hall	-fexceptions \
28517274a29e50522a11e65107bb2c0d5b123aa7d5Jesse Hall	-Wno-c99-extensions \
2904f4f4746481571148eaf3aaf768ee5c6dccec9dJesse Hall	-Wno-c++98-compat-pedantic \
3004f4f4746481571148eaf3aaf768ee5c6dccec9dJesse Hall	-Wno-exit-time-destructors \
31517274a29e50522a11e65107bb2c0d5b123aa7d5Jesse Hall	-Wno-global-constructors \
32517274a29e50522a11e65107bb2c0d5b123aa7d5Jesse Hall	-Wno-zero-length-array
3304f4f4746481571148eaf3aaf768ee5c6dccec9dJesse Hall
3404f4f4746481571148eaf3aaf768ee5c6dccec9dJesse HallLOCAL_C_INCLUDES := \
35d7b994a0cfb9054aafc1dadc85085a7d0ef8789aJesse Hall	frameworks/native/vulkan/include \
36d7b994a0cfb9054aafc1dadc85085a7d0ef8789aJesse Hall	system/core/libsync/include
3704f4f4746481571148eaf3aaf768ee5c6dccec9dJesse Hall
3804f4f4746481571148eaf3aaf768ee5c6dccec9dJesse HallLOCAL_SRC_FILES := \
39715b86ac7d0853131b375ff786c87d8d87a762a1Jesse Hall	debug_report.cpp \
401f91d390ac013ea2514a67e12ddb083119d636d7Jesse Hall	dispatch_gen.cpp \
4180523e2e39c29b06ab40573468dde43a9867f487Jesse Hall	layers_extensions.cpp \
42b1352bce9cd82ceaef287b8b3cd7a5c39703a14cJesse Hall	loader.cpp \
431c69b9e33e34c6aef571b8383bdb7e2b3a5e0849Michael Lentine	swapchain.cpp \
441c69b9e33e34c6aef571b8383bdb7e2b3a5e0849Michael Lentine	vulkan_loader_data.cpp
4504f4f4746481571148eaf3aaf768ee5c6dccec9dJesse HallLOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
4604f4f4746481571148eaf3aaf768ee5c6dccec9dJesse Hall
4726cecff368f2edba67d136ce00d27bb55634c0f1Jesse HallLOCAL_SHARED_LIBRARIES := libhardware liblog libsync libutils libcutils
4804f4f4746481571148eaf3aaf768ee5c6dccec9dJesse Hall
4904f4f4746481571148eaf3aaf768ee5c6dccec9dJesse HallLOCAL_MODULE := libvulkan
5004f4f4746481571148eaf3aaf768ee5c6dccec9dJesse Hallinclude $(BUILD_SHARED_LIBRARY)
51