blob: 1526711f1a0e0aad181281d20da997aeac051477 [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
70LOCAL_C_INCLUDES += $(SRC_DIR)/include \
71 $(SRC_DIR)/buildAndroid/generated \
72 $(SRC_DIR)/loader
73LOCAL_STATIC_LIBRARIES += layer_utils
74LOCAL_CPPFLAGS += -DVK_USE_PLATFORM_ANDROID_KHR
75LOCAL_LDLIBS := -llog
76include $(BUILD_SHARED_LIBRARY)
77
78include $(CLEAR_VARS)
Mark Lobodzinski0d054fe2015-12-30 08:16:12 -070079LOCAL_MODULE := VkLayer_image
Michael Lentine695f2c22015-09-09 12:39:13 -070080LOCAL_SRC_FILES += $(SRC_DIR)/layers/image.cpp
81LOCAL_SRC_FILES += $(SRC_DIR)/layers/vk_layer_table.cpp
82LOCAL_C_INCLUDES += $(SRC_DIR)/include \
Michael Lentine83ab3412015-11-03 16:20:30 -080083 $(SRC_DIR)/buildAndroid/generated \
84 $(SRC_DIR)/loader
Michael Lentinec1814912015-12-08 15:41:43 -080085LOCAL_STATIC_LIBRARIES += layer_utils
Michael Lentinea8334b42015-12-09 14:33:52 -080086LOCAL_CPPFLAGS += -DVK_USE_PLATFORM_ANDROID_KHR
Michael Lentine695f2c22015-09-09 12:39:13 -070087LOCAL_LDLIBS := -llog
88include $(BUILD_SHARED_LIBRARY)
89
90include $(CLEAR_VARS)
Mark Lobodzinski0d054fe2015-12-30 08:16:12 -070091LOCAL_MODULE := VkLayer_param_checker
Michael Lentine695f2c22015-09-09 12:39:13 -070092LOCAL_SRC_FILES += $(SRC_DIR)/layers/param_checker.cpp
93LOCAL_SRC_FILES += $(SRC_DIR)/layers/vk_layer_debug_marker_table.cpp
94LOCAL_SRC_FILES += $(SRC_DIR)/layers/vk_layer_table.cpp
95LOCAL_C_INCLUDES += $(SRC_DIR)/include \
Michael Lentine83ab3412015-11-03 16:20:30 -080096 $(SRC_DIR)/buildAndroid/generated \
97 $(SRC_DIR)/loader
Michael Lentinec1814912015-12-08 15:41:43 -080098LOCAL_STATIC_LIBRARIES += layer_utils
Michael Lentinea8334b42015-12-09 14:33:52 -080099LOCAL_CPPFLAGS += -DVK_USE_PLATFORM_ANDROID_KHR
Michael Lentine695f2c22015-09-09 12:39:13 -0700100LOCAL_LDLIBS := -llog
101include $(BUILD_SHARED_LIBRARY)
102
103include $(CLEAR_VARS)
Mark Lobodzinski0d054fe2015-12-30 08:16:12 -0700104LOCAL_MODULE := VkLayer_generic
Michael Lentine695f2c22015-09-09 12:39:13 -0700105LOCAL_SRC_FILES += $(SRC_DIR)/buildAndroid/generated/generic_layer.cpp
106LOCAL_SRC_FILES += $(SRC_DIR)/layers/vk_layer_table.cpp
107LOCAL_C_INCLUDES += $(SRC_DIR)/include \
Michael Lentine83ab3412015-11-03 16:20:30 -0800108 $(SRC_DIR)/layers \
109 $(SRC_DIR)/buildAndroid/generated \
110 $(SRC_DIR)/loader
Michael Lentinec1814912015-12-08 15:41:43 -0800111LOCAL_STATIC_LIBRARIES += layer_utils
Michael Lentinea8334b42015-12-09 14:33:52 -0800112LOCAL_CPPFLAGS += -DVK_USE_PLATFORM_ANDROID_KHR
Michael Lentine695f2c22015-09-09 12:39:13 -0700113LOCAL_LDLIBS := -llog
114include $(BUILD_SHARED_LIBRARY)
115
116include $(CLEAR_VARS)
Mark Lobodzinski0d054fe2015-12-30 08:16:12 -0700117LOCAL_MODULE := VkLayer_api_dump
Michael Lentine695f2c22015-09-09 12:39:13 -0700118LOCAL_SRC_FILES += $(SRC_DIR)/buildAndroid/generated/api_dump.cpp
119LOCAL_SRC_FILES += $(SRC_DIR)/layers/vk_layer_table.cpp
120LOCAL_C_INCLUDES += $(SRC_DIR)/include \
Michael Lentine83ab3412015-11-03 16:20:30 -0800121 $(SRC_DIR)/layers \
122 $(SRC_DIR)/buildAndroid/generated \
123 $(SRC_DIR)/loader
Michael Lentinec1814912015-12-08 15:41:43 -0800124LOCAL_STATIC_LIBRARIES += layer_utils
Michael Lentinea8334b42015-12-09 14:33:52 -0800125LOCAL_CPPFLAGS += -DVK_USE_PLATFORM_ANDROID_KHR
Michael Lentine695f2c22015-09-09 12:39:13 -0700126LOCAL_LDLIBS := -llog
127include $(BUILD_SHARED_LIBRARY)
128
129include $(CLEAR_VARS)
Mark Lobodzinski0d054fe2015-12-30 08:16:12 -0700130LOCAL_MODULE := VkLayer_object_tracker
131LOCAL_SRC_FILES += $(SRC_DIR)/buildAndroid/generated/object_tracker.cpp
Michael Lentine695f2c22015-09-09 12:39:13 -0700132LOCAL_SRC_FILES += $(SRC_DIR)/layers/vk_layer_table.cpp
133LOCAL_C_INCLUDES += $(SRC_DIR)/include \
Michael Lentine83ab3412015-11-03 16:20:30 -0800134 $(SRC_DIR)/layers \
135 $(SRC_DIR)/buildAndroid/generated \
136 $(SRC_DIR)/loader
Michael Lentinec1814912015-12-08 15:41:43 -0800137LOCAL_STATIC_LIBRARIES += layer_utils
Michael Lentinea8334b42015-12-09 14:33:52 -0800138LOCAL_CPPFLAGS += -DVK_USE_PLATFORM_ANDROID_KHR
Michael Lentine695f2c22015-09-09 12:39:13 -0700139LOCAL_LDLIBS := -llog
140include $(BUILD_SHARED_LIBRARY)
141
142include $(CLEAR_VARS)
Mark Lobodzinski0d054fe2015-12-30 08:16:12 -0700143LOCAL_MODULE := VkLayer_threading
Michael Lentine695f2c22015-09-09 12:39:13 -0700144LOCAL_SRC_FILES += $(SRC_DIR)/buildAndroid/generated/threading.cpp
145LOCAL_SRC_FILES += $(SRC_DIR)/layers/vk_layer_table.cpp
146LOCAL_C_INCLUDES += $(SRC_DIR)/include \
Michael Lentine83ab3412015-11-03 16:20:30 -0800147 $(SRC_DIR)/layers \
148 $(SRC_DIR)/buildAndroid/generated \
149 $(SRC_DIR)/loader
Michael Lentinec1814912015-12-08 15:41:43 -0800150LOCAL_STATIC_LIBRARIES += layer_utils
Michael Lentinea8334b42015-12-09 14:33:52 -0800151LOCAL_CPPFLAGS += -DVK_USE_PLATFORM_ANDROID_KHR
Michael Lentine695f2c22015-09-09 12:39:13 -0700152LOCAL_LDLIBS := -llog
153include $(BUILD_SHARED_LIBRARY)
Michael Lentine83ab3412015-11-03 16:20:30 -0800154
155include $(CLEAR_VARS)
Mark Lobodzinski0d054fe2015-12-30 08:16:12 -0700156LOCAL_MODULE := VkLayerValidationTests
Michael Lentine83ab3412015-11-03 16:20:30 -0800157LOCAL_SRC_FILES += $(SRC_DIR)/tests/layer_validation_tests.cpp \
158 $(SRC_DIR)/tests/vktestbinding.cpp \
159 $(SRC_DIR)/tests/vktestframeworkandroid.cpp \
160 $(SRC_DIR)/tests/vkrenderframework.cpp
161LOCAL_C_INCLUDES += $(SRC_DIR)/include \
162 $(SRC_DIR)/layers \
163 $(SRC_DIR)/libs \
164 $(SRC_DIR)/icd/common
Michael Lentinec1814912015-12-08 15:41:43 -0800165LOCAL_STATIC_LIBRARIES := googletest_main layer_utils
Michael Lentinea8334b42015-12-09 14:33:52 -0800166LOCAL_CPPFLAGS += -DVK_USE_PLATFORM_ANDROID_KHR
Michael Lentine83ab3412015-11-03 16:20:30 -0800167LOCAL_LDLIBS := -lvulkan
168include $(BUILD_EXECUTABLE)
169
170$(call import-module,third_party/googletest)