blob: 167509d24ad0fee3c9b0b27944943cfbf4116f81 [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 Lentine695f2c22015-09-09 12:39:13 -070066LOCAL_MODULE := VKLayerImage
67LOCAL_SRC_FILES += $(SRC_DIR)/layers/image.cpp
68LOCAL_SRC_FILES += $(SRC_DIR)/layers/vk_layer_table.cpp
69LOCAL_C_INCLUDES += $(SRC_DIR)/include \
Michael Lentine83ab3412015-11-03 16:20:30 -080070 $(SRC_DIR)/buildAndroid/generated \
71 $(SRC_DIR)/loader
Michael Lentinec1814912015-12-08 15:41:43 -080072LOCAL_STATIC_LIBRARIES += layer_utils
Michael Lentinea8334b42015-12-09 14:33:52 -080073LOCAL_CPPFLAGS += -DVK_USE_PLATFORM_ANDROID_KHR
Michael Lentine695f2c22015-09-09 12:39:13 -070074LOCAL_LDLIBS := -llog
75include $(BUILD_SHARED_LIBRARY)
76
77include $(CLEAR_VARS)
78LOCAL_MODULE := VKLayerParamChecker
79LOCAL_SRC_FILES += $(SRC_DIR)/layers/param_checker.cpp
80LOCAL_SRC_FILES += $(SRC_DIR)/layers/vk_layer_debug_marker_table.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)
91LOCAL_MODULE := VKLayerGeneric
92LOCAL_SRC_FILES += $(SRC_DIR)/buildAndroid/generated/generic_layer.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)/layers \
96 $(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)
104LOCAL_MODULE := VKLayerAPIDump
105LOCAL_SRC_FILES += $(SRC_DIR)/buildAndroid/generated/api_dump.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)
117LOCAL_MODULE := VKLayerObjectTracker
118LOCAL_SRC_FILES += $(SRC_DIR)/buildAndroid/generated/object_track.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)
130LOCAL_MODULE := VKLayerThreading
131LOCAL_SRC_FILES += $(SRC_DIR)/buildAndroid/generated/threading.cpp
132LOCAL_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)
Michael Lentine83ab3412015-11-03 16:20:30 -0800141
142include $(CLEAR_VARS)
143LOCAL_MODULE := VKLayerValidationTests
144LOCAL_SRC_FILES += $(SRC_DIR)/tests/layer_validation_tests.cpp \
145 $(SRC_DIR)/tests/vktestbinding.cpp \
146 $(SRC_DIR)/tests/vktestframeworkandroid.cpp \
147 $(SRC_DIR)/tests/vkrenderframework.cpp
148LOCAL_C_INCLUDES += $(SRC_DIR)/include \
149 $(SRC_DIR)/layers \
150 $(SRC_DIR)/libs \
151 $(SRC_DIR)/icd/common
Michael Lentinec1814912015-12-08 15:41:43 -0800152LOCAL_STATIC_LIBRARIES := googletest_main layer_utils
Michael Lentinea8334b42015-12-09 14:33:52 -0800153LOCAL_CPPFLAGS += -DVK_USE_PLATFORM_ANDROID_KHR
Michael Lentine83ab3412015-11-03 16:20:30 -0800154LOCAL_LDLIBS := -lvulkan
155include $(BUILD_EXECUTABLE)
156
157$(call import-module,third_party/googletest)