blob: f8d9371355d7cdf7d8a2abc388f14285d775e4e5 [file] [log] [blame]
Michael Lentine695f2c22015-09-09 12:39:13 -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
15LOCAL_PATH := $(abspath $(call my-dir))
16MY_PATH := $(LOCAL_PATH)
17SRC_DIR := $(LOCAL_PATH)/../../
18
19include $(CLEAR_VARS)
20LOCAL_MODULE := layer_utils
21LOCAL_SRC_FILES += $(SRC_DIR)/layers/vk_layer_config.cpp
22LOCAL_SRC_FILES += $(SRC_DIR)/layers/vk_layer_extension_utils.cpp
Michael Lentine4bc1ec52015-10-14 14:28:26 -050023LOCAL_SRC_FILES += $(SRC_DIR)/layers/vk_layer_utils.cpp
Michael Lentine695f2c22015-09-09 12:39:13 -070024LOCAL_C_INCLUDES += $(SRC_DIR)/include
Michael Lentinea8334b42015-12-09 14:33:52 -080025LOCAL_CPPFLAGS += -DVK_USE_PLATFORM_ANDROID_KHR
Michael Lentinec1814912015-12-08 15:41:43 -080026include $(BUILD_STATIC_LIBRARY)
Michael Lentine695f2c22015-09-09 12:39:13 -070027
28include $(CLEAR_VARS)
29LOCAL_MODULE := VKLayerBasic
30LOCAL_SRC_FILES += $(SRC_DIR)/layers/basic.cpp
31LOCAL_SRC_FILES += $(SRC_DIR)/layers/vk_layer_table.cpp
32LOCAL_C_INCLUDES += $(SRC_DIR)/include \
Michael Lentine83ab3412015-11-03 16:20:30 -080033 $(SRC_DIR)/buildAndroid/generated
Michael Lentinec1814912015-12-08 15:41:43 -080034LOCAL_STATIC_LIBRARIES += layer_utils
Michael Lentinea8334b42015-12-09 14:33:52 -080035LOCAL_CPPFLAGS += -DVK_USE_PLATFORM_ANDROID_KHR
Michael Lentine695f2c22015-09-09 12:39:13 -070036LOCAL_LDLIBS := -llog
37include $(BUILD_SHARED_LIBRARY)
38
39include $(CLEAR_VARS)
40LOCAL_MODULE := VKLayerDrawState
41LOCAL_SRC_FILES += $(SRC_DIR)/layers/draw_state.cpp
42LOCAL_SRC_FILES += $(SRC_DIR)/layers/vk_layer_debug_marker_table.cpp
43LOCAL_SRC_FILES += $(SRC_DIR)/layers/vk_layer_table.cpp
44LOCAL_C_INCLUDES += $(SRC_DIR)/include \
Michael Lentine83ab3412015-11-03 16:20:30 -080045 $(SRC_DIR)/buildAndroid/generated \
Jesse Hall4fb40e62015-12-22 21:27:55 -080046 $(SRC_DIR)/loader \
47 $(SRC_DIR)/../glslang/SPIRV
Michael Lentinec1814912015-12-08 15:41:43 -080048LOCAL_STATIC_LIBRARIES += layer_utils
Michael Lentinea8334b42015-12-09 14:33:52 -080049LOCAL_CPPFLAGS += -DVK_USE_PLATFORM_ANDROID_KHR
Michael Lentine695f2c22015-09-09 12:39:13 -070050LOCAL_LDLIBS := -llog
51include $(BUILD_SHARED_LIBRARY)
52
53include $(CLEAR_VARS)
54LOCAL_MODULE := VKLayerMemTracker
55LOCAL_SRC_FILES += $(SRC_DIR)/layers/mem_tracker.cpp
56LOCAL_SRC_FILES += $(SRC_DIR)/layers/vk_layer_table.cpp
57LOCAL_C_INCLUDES += $(SRC_DIR)/include \
Michael Lentine83ab3412015-11-03 16:20:30 -080058 $(SRC_DIR)/buildAndroid/generated \
59 $(SRC_DIR)/loader
Michael Lentinec1814912015-12-08 15:41:43 -080060LOCAL_STATIC_LIBRARIES += layer_utils
Michael Lentinea8334b42015-12-09 14:33:52 -080061LOCAL_CPPFLAGS += -DVK_USE_PLATFORM_ANDROID_KHR
Michael Lentine695f2c22015-09-09 12:39:13 -070062LOCAL_LDLIBS := -llog
63include $(BUILD_SHARED_LIBRARY)
64
65include $(CLEAR_VARS)
Michael Lentine03107b42015-12-11 10:49:51 -080066LOCAL_MODULE := VKLayerDeviceLimits
67LOCAL_SRC_FILES += $(SRC_DIR)/layers/device_limits.cpp
68LOCAL_SRC_FILES += $(SRC_DIR)/layers/vk_layer_debug_marker_table.cpp
69LOCAL_C_INCLUDES += $(SRC_DIR)/include \
70 $(SRC_DIR)/buildAndroid/generated \
71 $(SRC_DIR)/loader
72LOCAL_STATIC_LIBRARIES += layer_utils
73LOCAL_CPPFLAGS += -DVK_USE_PLATFORM_ANDROID_KHR
74LOCAL_LDLIBS := -llog
75include $(BUILD_SHARED_LIBRARY)
76
77include $(CLEAR_VARS)
Michael Lentine695f2c22015-09-09 12:39:13 -070078LOCAL_MODULE := VKLayerImage
79LOCAL_SRC_FILES += $(SRC_DIR)/layers/image.cpp
80LOCAL_SRC_FILES += $(SRC_DIR)/layers/vk_layer_table.cpp
81LOCAL_C_INCLUDES += $(SRC_DIR)/include \
Michael Lentine83ab3412015-11-03 16:20:30 -080082 $(SRC_DIR)/buildAndroid/generated \
83 $(SRC_DIR)/loader
Michael Lentinec1814912015-12-08 15:41:43 -080084LOCAL_STATIC_LIBRARIES += layer_utils
Michael Lentinea8334b42015-12-09 14:33:52 -080085LOCAL_CPPFLAGS += -DVK_USE_PLATFORM_ANDROID_KHR
Michael Lentine695f2c22015-09-09 12:39:13 -070086LOCAL_LDLIBS := -llog
87include $(BUILD_SHARED_LIBRARY)
88
89include $(CLEAR_VARS)
90LOCAL_MODULE := VKLayerParamChecker
91LOCAL_SRC_FILES += $(SRC_DIR)/layers/param_checker.cpp
92LOCAL_SRC_FILES += $(SRC_DIR)/layers/vk_layer_debug_marker_table.cpp
93LOCAL_SRC_FILES += $(SRC_DIR)/layers/vk_layer_table.cpp
94LOCAL_C_INCLUDES += $(SRC_DIR)/include \
Michael Lentine83ab3412015-11-03 16:20:30 -080095 $(SRC_DIR)/buildAndroid/generated \
96 $(SRC_DIR)/loader
Michael Lentinec1814912015-12-08 15:41:43 -080097LOCAL_STATIC_LIBRARIES += layer_utils
Michael Lentinea8334b42015-12-09 14:33:52 -080098LOCAL_CPPFLAGS += -DVK_USE_PLATFORM_ANDROID_KHR
Michael Lentine695f2c22015-09-09 12:39:13 -070099LOCAL_LDLIBS := -llog
100include $(BUILD_SHARED_LIBRARY)
101
102include $(CLEAR_VARS)
103LOCAL_MODULE := VKLayerGeneric
104LOCAL_SRC_FILES += $(SRC_DIR)/buildAndroid/generated/generic_layer.cpp
105LOCAL_SRC_FILES += $(SRC_DIR)/layers/vk_layer_table.cpp
106LOCAL_C_INCLUDES += $(SRC_DIR)/include \
Michael Lentine83ab3412015-11-03 16:20:30 -0800107 $(SRC_DIR)/layers \
108 $(SRC_DIR)/buildAndroid/generated \
109 $(SRC_DIR)/loader
Michael Lentinec1814912015-12-08 15:41:43 -0800110LOCAL_STATIC_LIBRARIES += layer_utils
Michael Lentinea8334b42015-12-09 14:33:52 -0800111LOCAL_CPPFLAGS += -DVK_USE_PLATFORM_ANDROID_KHR
Michael Lentine695f2c22015-09-09 12:39:13 -0700112LOCAL_LDLIBS := -llog
113include $(BUILD_SHARED_LIBRARY)
114
115include $(CLEAR_VARS)
116LOCAL_MODULE := VKLayerAPIDump
117LOCAL_SRC_FILES += $(SRC_DIR)/buildAndroid/generated/api_dump.cpp
118LOCAL_SRC_FILES += $(SRC_DIR)/layers/vk_layer_table.cpp
119LOCAL_C_INCLUDES += $(SRC_DIR)/include \
Michael Lentine83ab3412015-11-03 16:20:30 -0800120 $(SRC_DIR)/layers \
121 $(SRC_DIR)/buildAndroid/generated \
122 $(SRC_DIR)/loader
Michael Lentinec1814912015-12-08 15:41:43 -0800123LOCAL_STATIC_LIBRARIES += layer_utils
Michael Lentinea8334b42015-12-09 14:33:52 -0800124LOCAL_CPPFLAGS += -DVK_USE_PLATFORM_ANDROID_KHR
Michael Lentine695f2c22015-09-09 12:39:13 -0700125LOCAL_LDLIBS := -llog
126include $(BUILD_SHARED_LIBRARY)
127
128include $(CLEAR_VARS)
129LOCAL_MODULE := VKLayerObjectTracker
130LOCAL_SRC_FILES += $(SRC_DIR)/buildAndroid/generated/object_track.cpp
131LOCAL_SRC_FILES += $(SRC_DIR)/layers/vk_layer_table.cpp
132LOCAL_C_INCLUDES += $(SRC_DIR)/include \
Michael Lentine83ab3412015-11-03 16:20:30 -0800133 $(SRC_DIR)/layers \
134 $(SRC_DIR)/buildAndroid/generated \
135 $(SRC_DIR)/loader
Michael Lentinec1814912015-12-08 15:41:43 -0800136LOCAL_STATIC_LIBRARIES += layer_utils
Michael Lentinea8334b42015-12-09 14:33:52 -0800137LOCAL_CPPFLAGS += -DVK_USE_PLATFORM_ANDROID_KHR
Michael Lentine695f2c22015-09-09 12:39:13 -0700138LOCAL_LDLIBS := -llog
139include $(BUILD_SHARED_LIBRARY)
140
141include $(CLEAR_VARS)
142LOCAL_MODULE := VKLayerThreading
143LOCAL_SRC_FILES += $(SRC_DIR)/buildAndroid/generated/threading.cpp
144LOCAL_SRC_FILES += $(SRC_DIR)/layers/vk_layer_table.cpp
145LOCAL_C_INCLUDES += $(SRC_DIR)/include \
Michael Lentine83ab3412015-11-03 16:20:30 -0800146 $(SRC_DIR)/layers \
147 $(SRC_DIR)/buildAndroid/generated \
148 $(SRC_DIR)/loader
Michael Lentinec1814912015-12-08 15:41:43 -0800149LOCAL_STATIC_LIBRARIES += layer_utils
Michael Lentinea8334b42015-12-09 14:33:52 -0800150LOCAL_CPPFLAGS += -DVK_USE_PLATFORM_ANDROID_KHR
Michael Lentine695f2c22015-09-09 12:39:13 -0700151LOCAL_LDLIBS := -llog
152include $(BUILD_SHARED_LIBRARY)
Michael Lentine83ab3412015-11-03 16:20:30 -0800153
154include $(CLEAR_VARS)
155LOCAL_MODULE := VKLayerValidationTests
156LOCAL_SRC_FILES += $(SRC_DIR)/tests/layer_validation_tests.cpp \
157 $(SRC_DIR)/tests/vktestbinding.cpp \
158 $(SRC_DIR)/tests/vktestframeworkandroid.cpp \
159 $(SRC_DIR)/tests/vkrenderframework.cpp
160LOCAL_C_INCLUDES += $(SRC_DIR)/include \
161 $(SRC_DIR)/layers \
162 $(SRC_DIR)/libs \
163 $(SRC_DIR)/icd/common
Michael Lentinec1814912015-12-08 15:41:43 -0800164LOCAL_STATIC_LIBRARIES := googletest_main layer_utils
Michael Lentinea8334b42015-12-09 14:33:52 -0800165LOCAL_CPPFLAGS += -DVK_USE_PLATFORM_ANDROID_KHR
Michael Lentine83ab3412015-11-03 16:20:30 -0800166LOCAL_LDLIBS := -lvulkan
167include $(BUILD_EXECUTABLE)
168
169$(call import-module,third_party/googletest)