Michael Lentine | 695f2c2 | 2015-09-09 12:39:13 -0700 | [diff] [blame] | 1 | # 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 |
|
| 15 | LOCAL_PATH := $(abspath $(call my-dir))
|
| 16 | MY_PATH := $(LOCAL_PATH)
|
| 17 | SRC_DIR := $(LOCAL_PATH)/../../
|
| 18 |
|
| 19 | include $(CLEAR_VARS)
|
| 20 | LOCAL_MODULE := layer_utils
|
| 21 | LOCAL_SRC_FILES += $(SRC_DIR)/layers/vk_layer_config.cpp
|
| 22 | LOCAL_SRC_FILES += $(SRC_DIR)/layers/vk_layer_extension_utils.cpp
|
Michael Lentine | 4bc1ec5 | 2015-10-14 14:28:26 -0500 | [diff] [blame] | 23 | LOCAL_SRC_FILES += $(SRC_DIR)/layers/vk_layer_utils.cpp
|
Michael Lentine | 695f2c2 | 2015-09-09 12:39:13 -0700 | [diff] [blame] | 24 | LOCAL_C_INCLUDES += $(SRC_DIR)/include
|
Michael Lentine | a8334b4 | 2015-12-09 14:33:52 -0800 | [diff] [blame] | 25 | LOCAL_CPPFLAGS += -DVK_USE_PLATFORM_ANDROID_KHR
|
Michael Lentine | c181491 | 2015-12-08 15:41:43 -0800 | [diff] [blame] | 26 | include $(BUILD_STATIC_LIBRARY)
|
Michael Lentine | 695f2c2 | 2015-09-09 12:39:13 -0700 | [diff] [blame] | 27 |
|
| 28 | include $(CLEAR_VARS)
|
| 29 | LOCAL_MODULE := VKLayerBasic
|
| 30 | LOCAL_SRC_FILES += $(SRC_DIR)/layers/basic.cpp
|
| 31 | LOCAL_SRC_FILES += $(SRC_DIR)/layers/vk_layer_table.cpp
|
| 32 | LOCAL_C_INCLUDES += $(SRC_DIR)/include \
|
Michael Lentine | 83ab341 | 2015-11-03 16:20:30 -0800 | [diff] [blame] | 33 | $(SRC_DIR)/buildAndroid/generated
|
Michael Lentine | c181491 | 2015-12-08 15:41:43 -0800 | [diff] [blame] | 34 | LOCAL_STATIC_LIBRARIES += layer_utils
|
Michael Lentine | a8334b4 | 2015-12-09 14:33:52 -0800 | [diff] [blame] | 35 | LOCAL_CPPFLAGS += -DVK_USE_PLATFORM_ANDROID_KHR
|
Michael Lentine | 695f2c2 | 2015-09-09 12:39:13 -0700 | [diff] [blame] | 36 | LOCAL_LDLIBS := -llog
|
| 37 | include $(BUILD_SHARED_LIBRARY)
|
| 38 |
|
| 39 | include $(CLEAR_VARS)
|
| 40 | LOCAL_MODULE := VKLayerDrawState
|
| 41 | LOCAL_SRC_FILES += $(SRC_DIR)/layers/draw_state.cpp
|
| 42 | LOCAL_SRC_FILES += $(SRC_DIR)/layers/vk_layer_debug_marker_table.cpp
|
| 43 | LOCAL_SRC_FILES += $(SRC_DIR)/layers/vk_layer_table.cpp
|
| 44 | LOCAL_C_INCLUDES += $(SRC_DIR)/include \
|
Michael Lentine | 83ab341 | 2015-11-03 16:20:30 -0800 | [diff] [blame] | 45 | $(SRC_DIR)/buildAndroid/generated \
|
Jesse Hall | 4fb40e6 | 2015-12-22 21:27:55 -0800 | [diff] [blame] | 46 | $(SRC_DIR)/loader \
|
| 47 | $(SRC_DIR)/../glslang/SPIRV
|
Michael Lentine | c181491 | 2015-12-08 15:41:43 -0800 | [diff] [blame] | 48 | LOCAL_STATIC_LIBRARIES += layer_utils
|
Michael Lentine | a8334b4 | 2015-12-09 14:33:52 -0800 | [diff] [blame] | 49 | LOCAL_CPPFLAGS += -DVK_USE_PLATFORM_ANDROID_KHR
|
Michael Lentine | 695f2c2 | 2015-09-09 12:39:13 -0700 | [diff] [blame] | 50 | LOCAL_LDLIBS := -llog
|
| 51 | include $(BUILD_SHARED_LIBRARY)
|
| 52 |
|
| 53 | include $(CLEAR_VARS)
|
| 54 | LOCAL_MODULE := VKLayerMemTracker
|
| 55 | LOCAL_SRC_FILES += $(SRC_DIR)/layers/mem_tracker.cpp
|
| 56 | LOCAL_SRC_FILES += $(SRC_DIR)/layers/vk_layer_table.cpp
|
| 57 | LOCAL_C_INCLUDES += $(SRC_DIR)/include \
|
Michael Lentine | 83ab341 | 2015-11-03 16:20:30 -0800 | [diff] [blame] | 58 | $(SRC_DIR)/buildAndroid/generated \
|
| 59 | $(SRC_DIR)/loader
|
Michael Lentine | c181491 | 2015-12-08 15:41:43 -0800 | [diff] [blame] | 60 | LOCAL_STATIC_LIBRARIES += layer_utils
|
Michael Lentine | a8334b4 | 2015-12-09 14:33:52 -0800 | [diff] [blame] | 61 | LOCAL_CPPFLAGS += -DVK_USE_PLATFORM_ANDROID_KHR
|
Michael Lentine | 695f2c2 | 2015-09-09 12:39:13 -0700 | [diff] [blame] | 62 | LOCAL_LDLIBS := -llog
|
| 63 | include $(BUILD_SHARED_LIBRARY)
|
| 64 |
|
| 65 | include $(CLEAR_VARS)
|
Michael Lentine | 03107b4 | 2015-12-11 10:49:51 -0800 | [diff] [blame^] | 66 | LOCAL_MODULE := VKLayerDeviceLimits
|
| 67 | LOCAL_SRC_FILES += $(SRC_DIR)/layers/device_limits.cpp
|
| 68 | LOCAL_SRC_FILES += $(SRC_DIR)/layers/vk_layer_debug_marker_table.cpp
|
| 69 | LOCAL_C_INCLUDES += $(SRC_DIR)/include \
|
| 70 | $(SRC_DIR)/buildAndroid/generated \
|
| 71 | $(SRC_DIR)/loader
|
| 72 | LOCAL_STATIC_LIBRARIES += layer_utils
|
| 73 | LOCAL_CPPFLAGS += -DVK_USE_PLATFORM_ANDROID_KHR
|
| 74 | LOCAL_LDLIBS := -llog
|
| 75 | include $(BUILD_SHARED_LIBRARY)
|
| 76 |
|
| 77 | include $(CLEAR_VARS)
|
Michael Lentine | 695f2c2 | 2015-09-09 12:39:13 -0700 | [diff] [blame] | 78 | LOCAL_MODULE := VKLayerImage
|
| 79 | LOCAL_SRC_FILES += $(SRC_DIR)/layers/image.cpp
|
| 80 | LOCAL_SRC_FILES += $(SRC_DIR)/layers/vk_layer_table.cpp
|
| 81 | LOCAL_C_INCLUDES += $(SRC_DIR)/include \
|
Michael Lentine | 83ab341 | 2015-11-03 16:20:30 -0800 | [diff] [blame] | 82 | $(SRC_DIR)/buildAndroid/generated \
|
| 83 | $(SRC_DIR)/loader
|
Michael Lentine | c181491 | 2015-12-08 15:41:43 -0800 | [diff] [blame] | 84 | LOCAL_STATIC_LIBRARIES += layer_utils
|
Michael Lentine | a8334b4 | 2015-12-09 14:33:52 -0800 | [diff] [blame] | 85 | LOCAL_CPPFLAGS += -DVK_USE_PLATFORM_ANDROID_KHR
|
Michael Lentine | 695f2c2 | 2015-09-09 12:39:13 -0700 | [diff] [blame] | 86 | LOCAL_LDLIBS := -llog
|
| 87 | include $(BUILD_SHARED_LIBRARY)
|
| 88 |
|
| 89 | include $(CLEAR_VARS)
|
| 90 | LOCAL_MODULE := VKLayerParamChecker
|
| 91 | LOCAL_SRC_FILES += $(SRC_DIR)/layers/param_checker.cpp
|
| 92 | LOCAL_SRC_FILES += $(SRC_DIR)/layers/vk_layer_debug_marker_table.cpp
|
| 93 | LOCAL_SRC_FILES += $(SRC_DIR)/layers/vk_layer_table.cpp
|
| 94 | LOCAL_C_INCLUDES += $(SRC_DIR)/include \
|
Michael Lentine | 83ab341 | 2015-11-03 16:20:30 -0800 | [diff] [blame] | 95 | $(SRC_DIR)/buildAndroid/generated \
|
| 96 | $(SRC_DIR)/loader
|
Michael Lentine | c181491 | 2015-12-08 15:41:43 -0800 | [diff] [blame] | 97 | LOCAL_STATIC_LIBRARIES += layer_utils
|
Michael Lentine | a8334b4 | 2015-12-09 14:33:52 -0800 | [diff] [blame] | 98 | LOCAL_CPPFLAGS += -DVK_USE_PLATFORM_ANDROID_KHR
|
Michael Lentine | 695f2c2 | 2015-09-09 12:39:13 -0700 | [diff] [blame] | 99 | LOCAL_LDLIBS := -llog
|
| 100 | include $(BUILD_SHARED_LIBRARY)
|
| 101 |
|
| 102 | include $(CLEAR_VARS)
|
| 103 | LOCAL_MODULE := VKLayerGeneric
|
| 104 | LOCAL_SRC_FILES += $(SRC_DIR)/buildAndroid/generated/generic_layer.cpp
|
| 105 | LOCAL_SRC_FILES += $(SRC_DIR)/layers/vk_layer_table.cpp
|
| 106 | LOCAL_C_INCLUDES += $(SRC_DIR)/include \
|
Michael Lentine | 83ab341 | 2015-11-03 16:20:30 -0800 | [diff] [blame] | 107 | $(SRC_DIR)/layers \
|
| 108 | $(SRC_DIR)/buildAndroid/generated \
|
| 109 | $(SRC_DIR)/loader
|
Michael Lentine | c181491 | 2015-12-08 15:41:43 -0800 | [diff] [blame] | 110 | LOCAL_STATIC_LIBRARIES += layer_utils
|
Michael Lentine | a8334b4 | 2015-12-09 14:33:52 -0800 | [diff] [blame] | 111 | LOCAL_CPPFLAGS += -DVK_USE_PLATFORM_ANDROID_KHR
|
Michael Lentine | 695f2c2 | 2015-09-09 12:39:13 -0700 | [diff] [blame] | 112 | LOCAL_LDLIBS := -llog
|
| 113 | include $(BUILD_SHARED_LIBRARY)
|
| 114 |
|
| 115 | include $(CLEAR_VARS)
|
| 116 | LOCAL_MODULE := VKLayerAPIDump
|
| 117 | LOCAL_SRC_FILES += $(SRC_DIR)/buildAndroid/generated/api_dump.cpp
|
| 118 | LOCAL_SRC_FILES += $(SRC_DIR)/layers/vk_layer_table.cpp
|
| 119 | LOCAL_C_INCLUDES += $(SRC_DIR)/include \
|
Michael Lentine | 83ab341 | 2015-11-03 16:20:30 -0800 | [diff] [blame] | 120 | $(SRC_DIR)/layers \
|
| 121 | $(SRC_DIR)/buildAndroid/generated \
|
| 122 | $(SRC_DIR)/loader
|
Michael Lentine | c181491 | 2015-12-08 15:41:43 -0800 | [diff] [blame] | 123 | LOCAL_STATIC_LIBRARIES += layer_utils
|
Michael Lentine | a8334b4 | 2015-12-09 14:33:52 -0800 | [diff] [blame] | 124 | LOCAL_CPPFLAGS += -DVK_USE_PLATFORM_ANDROID_KHR
|
Michael Lentine | 695f2c2 | 2015-09-09 12:39:13 -0700 | [diff] [blame] | 125 | LOCAL_LDLIBS := -llog
|
| 126 | include $(BUILD_SHARED_LIBRARY)
|
| 127 |
|
| 128 | include $(CLEAR_VARS)
|
| 129 | LOCAL_MODULE := VKLayerObjectTracker
|
| 130 | LOCAL_SRC_FILES += $(SRC_DIR)/buildAndroid/generated/object_track.cpp
|
| 131 | LOCAL_SRC_FILES += $(SRC_DIR)/layers/vk_layer_table.cpp
|
| 132 | LOCAL_C_INCLUDES += $(SRC_DIR)/include \
|
Michael Lentine | 83ab341 | 2015-11-03 16:20:30 -0800 | [diff] [blame] | 133 | $(SRC_DIR)/layers \
|
| 134 | $(SRC_DIR)/buildAndroid/generated \
|
| 135 | $(SRC_DIR)/loader
|
Michael Lentine | c181491 | 2015-12-08 15:41:43 -0800 | [diff] [blame] | 136 | LOCAL_STATIC_LIBRARIES += layer_utils
|
Michael Lentine | a8334b4 | 2015-12-09 14:33:52 -0800 | [diff] [blame] | 137 | LOCAL_CPPFLAGS += -DVK_USE_PLATFORM_ANDROID_KHR
|
Michael Lentine | 695f2c2 | 2015-09-09 12:39:13 -0700 | [diff] [blame] | 138 | LOCAL_LDLIBS := -llog
|
| 139 | include $(BUILD_SHARED_LIBRARY)
|
| 140 |
|
| 141 | include $(CLEAR_VARS)
|
| 142 | LOCAL_MODULE := VKLayerThreading
|
| 143 | LOCAL_SRC_FILES += $(SRC_DIR)/buildAndroid/generated/threading.cpp
|
| 144 | LOCAL_SRC_FILES += $(SRC_DIR)/layers/vk_layer_table.cpp
|
| 145 | LOCAL_C_INCLUDES += $(SRC_DIR)/include \
|
Michael Lentine | 83ab341 | 2015-11-03 16:20:30 -0800 | [diff] [blame] | 146 | $(SRC_DIR)/layers \
|
| 147 | $(SRC_DIR)/buildAndroid/generated \
|
| 148 | $(SRC_DIR)/loader
|
Michael Lentine | c181491 | 2015-12-08 15:41:43 -0800 | [diff] [blame] | 149 | LOCAL_STATIC_LIBRARIES += layer_utils
|
Michael Lentine | a8334b4 | 2015-12-09 14:33:52 -0800 | [diff] [blame] | 150 | LOCAL_CPPFLAGS += -DVK_USE_PLATFORM_ANDROID_KHR
|
Michael Lentine | 695f2c2 | 2015-09-09 12:39:13 -0700 | [diff] [blame] | 151 | LOCAL_LDLIBS := -llog
|
| 152 | include $(BUILD_SHARED_LIBRARY)
|
Michael Lentine | 83ab341 | 2015-11-03 16:20:30 -0800 | [diff] [blame] | 153 |
|
| 154 | include $(CLEAR_VARS)
|
| 155 | LOCAL_MODULE := VKLayerValidationTests
|
| 156 | LOCAL_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
|
| 160 | LOCAL_C_INCLUDES += $(SRC_DIR)/include \
|
| 161 | $(SRC_DIR)/layers \
|
| 162 | $(SRC_DIR)/libs \
|
| 163 | $(SRC_DIR)/icd/common
|
Michael Lentine | c181491 | 2015-12-08 15:41:43 -0800 | [diff] [blame] | 164 | LOCAL_STATIC_LIBRARIES := googletest_main layer_utils
|
Michael Lentine | a8334b4 | 2015-12-09 14:33:52 -0800 | [diff] [blame] | 165 | LOCAL_CPPFLAGS += -DVK_USE_PLATFORM_ANDROID_KHR
|
Michael Lentine | 83ab341 | 2015-11-03 16:20:30 -0800 | [diff] [blame] | 166 | LOCAL_LDLIBS := -lvulkan
|
| 167 | include $(BUILD_EXECUTABLE)
|
| 168 |
|
| 169 | $(call import-module,third_party/googletest)
|