blob: df2809a011414a72b020f4a3f3ca6f888ee67a7b [file] [log] [blame]
Michael Lentine695f2c22015-09-09 12:39:13 -07001# Copyright 2015 The Android Open Source Project
Mark Lobodzinski0d054fe2015-12-30 08:16:12 -07002# Copyright (C) 2015 Valve Corporation
Michael Lentine695f2c22015-09-09 12:39:13 -07003
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7
8# http://www.apache.org/licenses/LICENSE-2.0
9
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15
16LOCAL_PATH := $(abspath $(call my-dir))
17MY_PATH := $(LOCAL_PATH)
18SRC_DIR := $(LOCAL_PATH)/../../
19
20include $(CLEAR_VARS)
21LOCAL_MODULE := layer_utils
22LOCAL_SRC_FILES += $(SRC_DIR)/layers/vk_layer_config.cpp
23LOCAL_SRC_FILES += $(SRC_DIR)/layers/vk_layer_extension_utils.cpp
Michael Lentine4bc1ec52015-10-14 14:28:26 -050024LOCAL_SRC_FILES += $(SRC_DIR)/layers/vk_layer_utils.cpp
Michael Lentine695f2c22015-09-09 12:39:13 -070025LOCAL_C_INCLUDES += $(SRC_DIR)/include
Michael Lentinea8334b42015-12-09 14:33:52 -080026LOCAL_CPPFLAGS += -DVK_USE_PLATFORM_ANDROID_KHR
Michael Lentinec1814912015-12-08 15:41:43 -080027include $(BUILD_STATIC_LIBRARY)
Michael Lentine695f2c22015-09-09 12:39:13 -070028
29include $(CLEAR_VARS)
Mark Lobodzinski0d054fe2015-12-30 08:16:12 -070030LOCAL_MODULE := VkLayer_basic
Michael Lentine695f2c22015-09-09 12:39:13 -070031LOCAL_SRC_FILES += $(SRC_DIR)/layers/basic.cpp
32LOCAL_SRC_FILES += $(SRC_DIR)/layers/vk_layer_table.cpp
33LOCAL_C_INCLUDES += $(SRC_DIR)/include \
Michael Lentine83ab3412015-11-03 16:20:30 -080034 $(SRC_DIR)/buildAndroid/generated
Michael Lentinec1814912015-12-08 15:41:43 -080035LOCAL_STATIC_LIBRARIES += layer_utils
Michael Lentinea8334b42015-12-09 14:33:52 -080036LOCAL_CPPFLAGS += -DVK_USE_PLATFORM_ANDROID_KHR
Michael Lentine695f2c22015-09-09 12:39:13 -070037LOCAL_LDLIBS := -llog
38include $(BUILD_SHARED_LIBRARY)
39
40include $(CLEAR_VARS)
Mark Lobodzinski0d054fe2015-12-30 08:16:12 -070041LOCAL_MODULE := VkLayer_draw_state
Michael Lentine695f2c22015-09-09 12:39:13 -070042LOCAL_SRC_FILES += $(SRC_DIR)/layers/draw_state.cpp
43LOCAL_SRC_FILES += $(SRC_DIR)/layers/vk_layer_debug_marker_table.cpp
44LOCAL_SRC_FILES += $(SRC_DIR)/layers/vk_layer_table.cpp
45LOCAL_C_INCLUDES += $(SRC_DIR)/include \
Michael Lentine83ab3412015-11-03 16:20:30 -080046 $(SRC_DIR)/buildAndroid/generated \
Jesse Hall4fb40e62015-12-22 21:27:55 -080047 $(SRC_DIR)/loader \
48 $(SRC_DIR)/../glslang/SPIRV
Michael Lentinec1814912015-12-08 15:41:43 -080049LOCAL_STATIC_LIBRARIES += layer_utils
Michael Lentinea8334b42015-12-09 14:33:52 -080050LOCAL_CPPFLAGS += -DVK_USE_PLATFORM_ANDROID_KHR
Michael Lentine695f2c22015-09-09 12:39:13 -070051LOCAL_LDLIBS := -llog
52include $(BUILD_SHARED_LIBRARY)
53
54include $(CLEAR_VARS)
Mark Lobodzinski0d054fe2015-12-30 08:16:12 -070055LOCAL_MODULE := VkLayer_mem_tracker
Michael Lentine695f2c22015-09-09 12:39:13 -070056LOCAL_SRC_FILES += $(SRC_DIR)/layers/mem_tracker.cpp
57LOCAL_SRC_FILES += $(SRC_DIR)/layers/vk_layer_table.cpp
58LOCAL_C_INCLUDES += $(SRC_DIR)/include \
Michael Lentine83ab3412015-11-03 16:20:30 -080059 $(SRC_DIR)/buildAndroid/generated \
60 $(SRC_DIR)/loader
Michael Lentinec1814912015-12-08 15:41:43 -080061LOCAL_STATIC_LIBRARIES += layer_utils
Michael Lentinea8334b42015-12-09 14:33:52 -080062LOCAL_CPPFLAGS += -DVK_USE_PLATFORM_ANDROID_KHR
Michael Lentine695f2c22015-09-09 12:39:13 -070063LOCAL_LDLIBS := -llog
64include $(BUILD_SHARED_LIBRARY)
65
66include $(CLEAR_VARS)
Mark Lobodzinski0d054fe2015-12-30 08:16:12 -070067LOCAL_MODULE := VkLayer_device_limits
Michael Lentine03107b42015-12-11 10:49:51 -080068LOCAL_SRC_FILES += $(SRC_DIR)/layers/device_limits.cpp
69LOCAL_SRC_FILES += $(SRC_DIR)/layers/vk_layer_debug_marker_table.cpp
Cody Northropabb573b2016-01-26 10:53:28 -070070LOCAL_SRC_FILES += $(SRC_DIR)/layers/vk_layer_table.cpp
Michael Lentine03107b42015-12-11 10:49:51 -080071LOCAL_C_INCLUDES += $(SRC_DIR)/include \
72 $(SRC_DIR)/buildAndroid/generated \
73 $(SRC_DIR)/loader
74LOCAL_STATIC_LIBRARIES += layer_utils
75LOCAL_CPPFLAGS += -DVK_USE_PLATFORM_ANDROID_KHR
76LOCAL_LDLIBS := -llog
77include $(BUILD_SHARED_LIBRARY)
78
79include $(CLEAR_VARS)
Mark Lobodzinski0d054fe2015-12-30 08:16:12 -070080LOCAL_MODULE := VkLayer_image
Michael Lentine695f2c22015-09-09 12:39:13 -070081LOCAL_SRC_FILES += $(SRC_DIR)/layers/image.cpp
82LOCAL_SRC_FILES += $(SRC_DIR)/layers/vk_layer_table.cpp
83LOCAL_C_INCLUDES += $(SRC_DIR)/include \
Michael Lentine83ab3412015-11-03 16:20:30 -080084 $(SRC_DIR)/buildAndroid/generated \
85 $(SRC_DIR)/loader
Michael Lentinec1814912015-12-08 15:41:43 -080086LOCAL_STATIC_LIBRARIES += layer_utils
Michael Lentinea8334b42015-12-09 14:33:52 -080087LOCAL_CPPFLAGS += -DVK_USE_PLATFORM_ANDROID_KHR
Michael Lentine695f2c22015-09-09 12:39:13 -070088LOCAL_LDLIBS := -llog
89include $(BUILD_SHARED_LIBRARY)
90
91include $(CLEAR_VARS)
Mark Lobodzinski0d054fe2015-12-30 08:16:12 -070092LOCAL_MODULE := VkLayer_param_checker
Michael Lentine695f2c22015-09-09 12:39:13 -070093LOCAL_SRC_FILES += $(SRC_DIR)/layers/param_checker.cpp
94LOCAL_SRC_FILES += $(SRC_DIR)/layers/vk_layer_debug_marker_table.cpp
95LOCAL_SRC_FILES += $(SRC_DIR)/layers/vk_layer_table.cpp
96LOCAL_C_INCLUDES += $(SRC_DIR)/include \
Michael Lentine83ab3412015-11-03 16:20:30 -080097 $(SRC_DIR)/buildAndroid/generated \
98 $(SRC_DIR)/loader
Michael Lentinec1814912015-12-08 15:41:43 -080099LOCAL_STATIC_LIBRARIES += layer_utils
Michael Lentinea8334b42015-12-09 14:33:52 -0800100LOCAL_CPPFLAGS += -DVK_USE_PLATFORM_ANDROID_KHR
Michael Lentine695f2c22015-09-09 12:39:13 -0700101LOCAL_LDLIBS := -llog
102include $(BUILD_SHARED_LIBRARY)
103
104include $(CLEAR_VARS)
Mark Lobodzinski0d054fe2015-12-30 08:16:12 -0700105LOCAL_MODULE := VkLayer_generic
Michael Lentine695f2c22015-09-09 12:39:13 -0700106LOCAL_SRC_FILES += $(SRC_DIR)/buildAndroid/generated/generic_layer.cpp
107LOCAL_SRC_FILES += $(SRC_DIR)/layers/vk_layer_table.cpp
108LOCAL_C_INCLUDES += $(SRC_DIR)/include \
Michael Lentine83ab3412015-11-03 16:20:30 -0800109 $(SRC_DIR)/layers \
110 $(SRC_DIR)/buildAndroid/generated \
111 $(SRC_DIR)/loader
Michael Lentinec1814912015-12-08 15:41:43 -0800112LOCAL_STATIC_LIBRARIES += layer_utils
Michael Lentinea8334b42015-12-09 14:33:52 -0800113LOCAL_CPPFLAGS += -DVK_USE_PLATFORM_ANDROID_KHR
Michael Lentine695f2c22015-09-09 12:39:13 -0700114LOCAL_LDLIBS := -llog
115include $(BUILD_SHARED_LIBRARY)
116
117include $(CLEAR_VARS)
Mark Lobodzinski0d054fe2015-12-30 08:16:12 -0700118LOCAL_MODULE := VkLayer_api_dump
Michael Lentine695f2c22015-09-09 12:39:13 -0700119LOCAL_SRC_FILES += $(SRC_DIR)/buildAndroid/generated/api_dump.cpp
120LOCAL_SRC_FILES += $(SRC_DIR)/layers/vk_layer_table.cpp
121LOCAL_C_INCLUDES += $(SRC_DIR)/include \
Michael Lentine83ab3412015-11-03 16:20:30 -0800122 $(SRC_DIR)/layers \
123 $(SRC_DIR)/buildAndroid/generated \
124 $(SRC_DIR)/loader
Michael Lentinec1814912015-12-08 15:41:43 -0800125LOCAL_STATIC_LIBRARIES += layer_utils
Michael Lentinea8334b42015-12-09 14:33:52 -0800126LOCAL_CPPFLAGS += -DVK_USE_PLATFORM_ANDROID_KHR
Michael Lentine695f2c22015-09-09 12:39:13 -0700127LOCAL_LDLIBS := -llog
128include $(BUILD_SHARED_LIBRARY)
129
130include $(CLEAR_VARS)
Mark Lobodzinski0d054fe2015-12-30 08:16:12 -0700131LOCAL_MODULE := VkLayer_object_tracker
132LOCAL_SRC_FILES += $(SRC_DIR)/buildAndroid/generated/object_tracker.cpp
Michael Lentine695f2c22015-09-09 12:39:13 -0700133LOCAL_SRC_FILES += $(SRC_DIR)/layers/vk_layer_table.cpp
134LOCAL_C_INCLUDES += $(SRC_DIR)/include \
Michael Lentine83ab3412015-11-03 16:20:30 -0800135 $(SRC_DIR)/layers \
136 $(SRC_DIR)/buildAndroid/generated \
137 $(SRC_DIR)/loader
Michael Lentinec1814912015-12-08 15:41:43 -0800138LOCAL_STATIC_LIBRARIES += layer_utils
Michael Lentinea8334b42015-12-09 14:33:52 -0800139LOCAL_CPPFLAGS += -DVK_USE_PLATFORM_ANDROID_KHR
Michael Lentine695f2c22015-09-09 12:39:13 -0700140LOCAL_LDLIBS := -llog
141include $(BUILD_SHARED_LIBRARY)
142
143include $(CLEAR_VARS)
Mark Lobodzinski0d054fe2015-12-30 08:16:12 -0700144LOCAL_MODULE := VkLayer_threading
Michael Lentine695f2c22015-09-09 12:39:13 -0700145LOCAL_SRC_FILES += $(SRC_DIR)/buildAndroid/generated/threading.cpp
146LOCAL_SRC_FILES += $(SRC_DIR)/layers/vk_layer_table.cpp
147LOCAL_C_INCLUDES += $(SRC_DIR)/include \
Michael Lentine83ab3412015-11-03 16:20:30 -0800148 $(SRC_DIR)/layers \
149 $(SRC_DIR)/buildAndroid/generated \
150 $(SRC_DIR)/loader
Michael Lentinec1814912015-12-08 15:41:43 -0800151LOCAL_STATIC_LIBRARIES += layer_utils
Michael Lentinea8334b42015-12-09 14:33:52 -0800152LOCAL_CPPFLAGS += -DVK_USE_PLATFORM_ANDROID_KHR
Michael Lentine695f2c22015-09-09 12:39:13 -0700153LOCAL_LDLIBS := -llog
154include $(BUILD_SHARED_LIBRARY)
Michael Lentine83ab3412015-11-03 16:20:30 -0800155
156include $(CLEAR_VARS)
Mark Lobodzinski0d054fe2015-12-30 08:16:12 -0700157LOCAL_MODULE := VkLayerValidationTests
Michael Lentine83ab3412015-11-03 16:20:30 -0800158LOCAL_SRC_FILES += $(SRC_DIR)/tests/layer_validation_tests.cpp \
159 $(SRC_DIR)/tests/vktestbinding.cpp \
160 $(SRC_DIR)/tests/vktestframeworkandroid.cpp \
161 $(SRC_DIR)/tests/vkrenderframework.cpp
162LOCAL_C_INCLUDES += $(SRC_DIR)/include \
163 $(SRC_DIR)/layers \
164 $(SRC_DIR)/libs \
165 $(SRC_DIR)/icd/common
Michael Lentinec1814912015-12-08 15:41:43 -0800166LOCAL_STATIC_LIBRARIES := googletest_main layer_utils
Michael Lentinea8334b42015-12-09 14:33:52 -0800167LOCAL_CPPFLAGS += -DVK_USE_PLATFORM_ANDROID_KHR
Michael Lentine83ab3412015-11-03 16:20:30 -0800168LOCAL_LDLIBS := -lvulkan
169include $(BUILD_EXECUTABLE)
170
171$(call import-module,third_party/googletest)