Jon Ashburn | 58048d0 | 2016-03-03 12:03:58 -0700 | [diff] [blame] | 1 | # Copyright 2015 The Android Open Source Project |
| 2 | # Copyright (C) 2015 Valve Corporation |
| 3 | |
| 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 | |
| 16 | LOCAL_PATH := $(abspath $(call my-dir)) |
Jon Ashburn | 58048d0 | 2016-03-03 12:03:58 -0700 | [diff] [blame] | 17 | SRC_DIR := $(LOCAL_PATH)/../../ |
guanghuafan | b79e94a | 2016-03-29 11:08:23 -0700 | [diff] [blame] | 18 | LAYER_DIR := $(LOCAL_PATH)/../generated |
Cody Northrop | 544a42e | 2016-11-03 14:44:55 -0600 | [diff] [blame] | 19 | ANDROID_DIR := $(SRC_DIR)/build-android |
Jon Ashburn | 58048d0 | 2016-03-03 12:03:58 -0700 | [diff] [blame] | 20 | |
| 21 | include $(CLEAR_VARS) |
| 22 | LOCAL_MODULE := layer_utils |
guanghuafan | b79e94a | 2016-03-29 11:08:23 -0700 | [diff] [blame] | 23 | LOCAL_SRC_FILES += $(LAYER_DIR)/common/vk_layer_config.cpp |
| 24 | LOCAL_SRC_FILES += $(LAYER_DIR)/common/vk_layer_extension_utils.cpp |
| 25 | LOCAL_SRC_FILES += $(LAYER_DIR)/common/vk_layer_utils.cpp |
Tobin Ehlis | 37210ea | 2016-03-17 06:48:27 -0600 | [diff] [blame] | 26 | LOCAL_C_INCLUDES += $(SRC_DIR)/include \ |
Cody Northrop | 3118dd0 | 2016-04-07 11:54:50 -0600 | [diff] [blame] | 27 | $(SRC_DIR)/layers \ |
Tobin Ehlis | 37210ea | 2016-03-17 06:48:27 -0600 | [diff] [blame] | 28 | $(SRC_DIR)/loader |
Mike Stroyan | 7194842 | 2016-09-28 14:58:52 -0600 | [diff] [blame] | 29 | LOCAL_CPPFLAGS += -DVK_USE_PLATFORM_ANDROID_KHR -fvisibility=hidden |
Jon Ashburn | 58048d0 | 2016-03-03 12:03:58 -0700 | [diff] [blame] | 30 | include $(BUILD_STATIC_LIBRARY) |
| 31 | |
| 32 | include $(CLEAR_VARS) |
Tobin Ehlis | c96f806 | 2016-03-09 16:12:48 -0700 | [diff] [blame] | 33 | LOCAL_MODULE := VkLayer_core_validation |
guanghuafan | b79e94a | 2016-03-29 11:08:23 -0700 | [diff] [blame] | 34 | LOCAL_SRC_FILES += $(LAYER_DIR)/layer-src/core_validation/core_validation.cpp |
Tobin Ehlis | 0a43bde | 2016-05-03 08:31:08 -0600 | [diff] [blame] | 35 | LOCAL_SRC_FILES += $(LAYER_DIR)/layer-src/core_validation/descriptor_sets.cpp |
Mark Lobodzinski | 42fe5f7 | 2017-01-11 11:36:16 -0700 | [diff] [blame^] | 36 | LOCAL_SRC_FILES += $(LAYER_DIR)/layer-src/core_validation/buffer_validation.cpp |
guanghuafan | b79e94a | 2016-03-29 11:08:23 -0700 | [diff] [blame] | 37 | LOCAL_SRC_FILES += $(LAYER_DIR)/common/vk_layer_table.cpp |
Jon Ashburn | 58048d0 | 2016-03-03 12:03:58 -0700 | [diff] [blame] | 38 | LOCAL_C_INCLUDES += $(SRC_DIR)/include \ |
Cody Northrop | 3118dd0 | 2016-04-07 11:54:50 -0600 | [diff] [blame] | 39 | $(SRC_DIR)/layers \ |
| 40 | $(LAYER_DIR)/include \ |
Jon Ashburn | 58048d0 | 2016-03-03 12:03:58 -0700 | [diff] [blame] | 41 | $(SRC_DIR)/loader \ |
Cody Northrop | 544a42e | 2016-11-03 14:44:55 -0600 | [diff] [blame] | 42 | $(ANDROID_DIR)/external/glslang \ |
| 43 | $(ANDROID_DIR)/external/spirv-tools/include |
Chris Forbes | 7ed191f | 2016-04-28 10:09:11 +1200 | [diff] [blame] | 44 | LOCAL_STATIC_LIBRARIES += layer_utils SPIRV-Tools-prebuilt |
Mike Stroyan | 7194842 | 2016-09-28 14:58:52 -0600 | [diff] [blame] | 45 | LOCAL_CPPFLAGS += -DVK_USE_PLATFORM_ANDROID_KHR -fvisibility=hidden |
Jon Ashburn | 58048d0 | 2016-03-03 12:03:58 -0700 | [diff] [blame] | 46 | LOCAL_LDLIBS := -llog |
Mike Stroyan | 3785284 | 2016-09-27 10:43:13 -0600 | [diff] [blame] | 47 | LOCAL_LDFLAGS += -Wl,-Bsymbolic |
Mike Stroyan | 7194842 | 2016-09-28 14:58:52 -0600 | [diff] [blame] | 48 | LOCAL_LDFLAGS += -Wl,--exclude-libs,ALL |
Jon Ashburn | 58048d0 | 2016-03-03 12:03:58 -0700 | [diff] [blame] | 49 | include $(BUILD_SHARED_LIBRARY) |
| 50 | |
| 51 | include $(CLEAR_VARS) |
Jon Ashburn | 58048d0 | 2016-03-03 12:03:58 -0700 | [diff] [blame] | 52 | LOCAL_MODULE := VkLayer_image |
guanghuafan | b79e94a | 2016-03-29 11:08:23 -0700 | [diff] [blame] | 53 | LOCAL_SRC_FILES += $(LAYER_DIR)/layer-src/image/image.cpp |
| 54 | LOCAL_SRC_FILES += $(LAYER_DIR)/common/vk_layer_table.cpp |
Jon Ashburn | 58048d0 | 2016-03-03 12:03:58 -0700 | [diff] [blame] | 55 | LOCAL_C_INCLUDES += $(SRC_DIR)/include \ |
Cody Northrop | 3118dd0 | 2016-04-07 11:54:50 -0600 | [diff] [blame] | 56 | $(SRC_DIR)/layers \ |
| 57 | $(LAYER_DIR)/include \ |
Jon Ashburn | 58048d0 | 2016-03-03 12:03:58 -0700 | [diff] [blame] | 58 | $(SRC_DIR)/loader |
| 59 | LOCAL_STATIC_LIBRARIES += layer_utils |
Mike Stroyan | 7194842 | 2016-09-28 14:58:52 -0600 | [diff] [blame] | 60 | LOCAL_CPPFLAGS += -DVK_USE_PLATFORM_ANDROID_KHR -fvisibility=hidden |
Jon Ashburn | 58048d0 | 2016-03-03 12:03:58 -0700 | [diff] [blame] | 61 | LOCAL_LDLIBS := -llog |
Mike Stroyan | 3785284 | 2016-09-27 10:43:13 -0600 | [diff] [blame] | 62 | LOCAL_LDFLAGS += -Wl,-Bsymbolic |
Mike Stroyan | 7194842 | 2016-09-28 14:58:52 -0600 | [diff] [blame] | 63 | LOCAL_LDFLAGS += -Wl,--exclude-libs,ALL |
Jon Ashburn | 58048d0 | 2016-03-03 12:03:58 -0700 | [diff] [blame] | 64 | include $(BUILD_SHARED_LIBRARY) |
| 65 | |
| 66 | include $(CLEAR_VARS) |
Mark Lobodzinski | 739391a | 2016-03-17 15:08:18 -0600 | [diff] [blame] | 67 | LOCAL_MODULE := VkLayer_parameter_validation |
guanghuafan | b79e94a | 2016-03-29 11:08:23 -0700 | [diff] [blame] | 68 | LOCAL_SRC_FILES += $(LAYER_DIR)/layer-src/parameter_validation/parameter_validation.cpp |
| 69 | LOCAL_SRC_FILES += $(LAYER_DIR)/common/vk_layer_table.cpp |
Jon Ashburn | 58048d0 | 2016-03-03 12:03:58 -0700 | [diff] [blame] | 70 | LOCAL_C_INCLUDES += $(SRC_DIR)/include \ |
Cody Northrop | 3118dd0 | 2016-04-07 11:54:50 -0600 | [diff] [blame] | 71 | $(LAYER_DIR)/include \ |
Jon Ashburn | 58048d0 | 2016-03-03 12:03:58 -0700 | [diff] [blame] | 72 | $(SRC_DIR)/layers \ |
| 73 | $(SRC_DIR)/loader |
| 74 | LOCAL_STATIC_LIBRARIES += layer_utils |
Mike Stroyan | 7194842 | 2016-09-28 14:58:52 -0600 | [diff] [blame] | 75 | LOCAL_CPPFLAGS += -DVK_USE_PLATFORM_ANDROID_KHR -fvisibility=hidden |
Jon Ashburn | 58048d0 | 2016-03-03 12:03:58 -0700 | [diff] [blame] | 76 | LOCAL_LDLIBS := -llog |
Mike Stroyan | 3785284 | 2016-09-27 10:43:13 -0600 | [diff] [blame] | 77 | LOCAL_LDFLAGS += -Wl,-Bsymbolic |
Mike Stroyan | 7194842 | 2016-09-28 14:58:52 -0600 | [diff] [blame] | 78 | LOCAL_LDFLAGS += -Wl,--exclude-libs,ALL |
Jon Ashburn | 58048d0 | 2016-03-03 12:03:58 -0700 | [diff] [blame] | 79 | include $(BUILD_SHARED_LIBRARY) |
| 80 | |
| 81 | include $(CLEAR_VARS) |
| 82 | LOCAL_MODULE := VkLayer_object_tracker |
guanghuafan | b79e94a | 2016-03-29 11:08:23 -0700 | [diff] [blame] | 83 | LOCAL_SRC_FILES += $(LAYER_DIR)/layer-src/object_tracker/object_tracker.cpp |
| 84 | LOCAL_SRC_FILES += $(LAYER_DIR)/common/vk_layer_table.cpp |
Jon Ashburn | 58048d0 | 2016-03-03 12:03:58 -0700 | [diff] [blame] | 85 | LOCAL_C_INCLUDES += $(SRC_DIR)/include \ |
| 86 | $(SRC_DIR)/layers \ |
Cody Northrop | 3118dd0 | 2016-04-07 11:54:50 -0600 | [diff] [blame] | 87 | $(LAYER_DIR)/include \ |
Jon Ashburn | 58048d0 | 2016-03-03 12:03:58 -0700 | [diff] [blame] | 88 | $(SRC_DIR)/loader |
| 89 | LOCAL_STATIC_LIBRARIES += layer_utils |
Mike Stroyan | 7194842 | 2016-09-28 14:58:52 -0600 | [diff] [blame] | 90 | LOCAL_CPPFLAGS += -DVK_USE_PLATFORM_ANDROID_KHR -fvisibility=hidden |
Jon Ashburn | 58048d0 | 2016-03-03 12:03:58 -0700 | [diff] [blame] | 91 | LOCAL_LDLIBS := -llog |
Mike Stroyan | 3785284 | 2016-09-27 10:43:13 -0600 | [diff] [blame] | 92 | LOCAL_LDFLAGS += -Wl,-Bsymbolic |
Mike Stroyan | 7194842 | 2016-09-28 14:58:52 -0600 | [diff] [blame] | 93 | LOCAL_LDFLAGS += -Wl,--exclude-libs,ALL |
Jon Ashburn | 58048d0 | 2016-03-03 12:03:58 -0700 | [diff] [blame] | 94 | include $(BUILD_SHARED_LIBRARY) |
| 95 | |
| 96 | include $(CLEAR_VARS) |
| 97 | LOCAL_MODULE := VkLayer_threading |
guanghuafan | b79e94a | 2016-03-29 11:08:23 -0700 | [diff] [blame] | 98 | LOCAL_SRC_FILES += $(LAYER_DIR)/layer-src/threading/threading.cpp |
| 99 | LOCAL_SRC_FILES += $(LAYER_DIR)/common/vk_layer_table.cpp |
Jon Ashburn | 58048d0 | 2016-03-03 12:03:58 -0700 | [diff] [blame] | 100 | LOCAL_C_INCLUDES += $(SRC_DIR)/include \ |
| 101 | $(SRC_DIR)/layers \ |
Cody Northrop | 3118dd0 | 2016-04-07 11:54:50 -0600 | [diff] [blame] | 102 | $(LAYER_DIR)/include \ |
Jon Ashburn | 58048d0 | 2016-03-03 12:03:58 -0700 | [diff] [blame] | 103 | $(SRC_DIR)/loader |
| 104 | LOCAL_STATIC_LIBRARIES += layer_utils |
Mike Stroyan | 7194842 | 2016-09-28 14:58:52 -0600 | [diff] [blame] | 105 | LOCAL_CPPFLAGS += -DVK_USE_PLATFORM_ANDROID_KHR -fvisibility=hidden |
Jon Ashburn | 58048d0 | 2016-03-03 12:03:58 -0700 | [diff] [blame] | 106 | LOCAL_LDLIBS := -llog |
Mike Stroyan | 3785284 | 2016-09-27 10:43:13 -0600 | [diff] [blame] | 107 | LOCAL_LDFLAGS += -Wl,-Bsymbolic |
Mike Stroyan | 7194842 | 2016-09-28 14:58:52 -0600 | [diff] [blame] | 108 | LOCAL_LDFLAGS += -Wl,--exclude-libs,ALL |
Jon Ashburn | 58048d0 | 2016-03-03 12:03:58 -0700 | [diff] [blame] | 109 | include $(BUILD_SHARED_LIBRARY) |
| 110 | |
| 111 | include $(CLEAR_VARS) |
| 112 | LOCAL_MODULE := VkLayer_unique_objects |
guanghuafan | b79e94a | 2016-03-29 11:08:23 -0700 | [diff] [blame] | 113 | LOCAL_SRC_FILES += $(LAYER_DIR)/layer-src/unique_objects/unique_objects.cpp |
guanghuafan | b79e94a | 2016-03-29 11:08:23 -0700 | [diff] [blame] | 114 | LOCAL_SRC_FILES += $(LAYER_DIR)/common/vk_layer_table.cpp |
Jon Ashburn | 58048d0 | 2016-03-03 12:03:58 -0700 | [diff] [blame] | 115 | LOCAL_C_INCLUDES += $(SRC_DIR)/include \ |
| 116 | $(SRC_DIR)/layers \ |
Cody Northrop | 3118dd0 | 2016-04-07 11:54:50 -0600 | [diff] [blame] | 117 | $(LAYER_DIR)/include \ |
guanghuafan | 21d07f7 | 2016-03-31 15:31:02 -0700 | [diff] [blame] | 118 | $(SRC_DIR)/loader |
Jon Ashburn | 58048d0 | 2016-03-03 12:03:58 -0700 | [diff] [blame] | 119 | LOCAL_STATIC_LIBRARIES += layer_utils |
Mike Stroyan | 7194842 | 2016-09-28 14:58:52 -0600 | [diff] [blame] | 120 | LOCAL_CPPFLAGS += -DVK_USE_PLATFORM_ANDROID_KHR -fvisibility=hidden |
Jon Ashburn | 58048d0 | 2016-03-03 12:03:58 -0700 | [diff] [blame] | 121 | LOCAL_LDLIBS := -llog |
Mike Stroyan | 3785284 | 2016-09-27 10:43:13 -0600 | [diff] [blame] | 122 | LOCAL_LDFLAGS += -Wl,-Bsymbolic |
Mike Stroyan | 7194842 | 2016-09-28 14:58:52 -0600 | [diff] [blame] | 123 | LOCAL_LDFLAGS += -Wl,--exclude-libs,ALL |
Jon Ashburn | 58048d0 | 2016-03-03 12:03:58 -0700 | [diff] [blame] | 124 | include $(BUILD_SHARED_LIBRARY) |
| 125 | |
| 126 | include $(CLEAR_VARS) |
| 127 | LOCAL_MODULE := VkLayer_swapchain |
guanghuafan | b79e94a | 2016-03-29 11:08:23 -0700 | [diff] [blame] | 128 | LOCAL_SRC_FILES += $(LAYER_DIR)/layer-src/swapchain/swapchain.cpp |
| 129 | LOCAL_SRC_FILES += $(LAYER_DIR)/common/vk_layer_table.cpp |
Jon Ashburn | 58048d0 | 2016-03-03 12:03:58 -0700 | [diff] [blame] | 130 | LOCAL_C_INCLUDES += $(SRC_DIR)/include \ |
Cody Northrop | 3118dd0 | 2016-04-07 11:54:50 -0600 | [diff] [blame] | 131 | $(SRC_DIR)/layers \ |
| 132 | $(LAYER_DIR)/include \ |
guanghuafan | 21d07f7 | 2016-03-31 15:31:02 -0700 | [diff] [blame] | 133 | $(SRC_DIR)/loader |
Jon Ashburn | 58048d0 | 2016-03-03 12:03:58 -0700 | [diff] [blame] | 134 | LOCAL_STATIC_LIBRARIES += layer_utils |
Mike Stroyan | 7194842 | 2016-09-28 14:58:52 -0600 | [diff] [blame] | 135 | LOCAL_CPPFLAGS += -DVK_USE_PLATFORM_ANDROID_KHR -fvisibility=hidden |
Jon Ashburn | 58048d0 | 2016-03-03 12:03:58 -0700 | [diff] [blame] | 136 | LOCAL_LDLIBS := -llog |
Mike Stroyan | 3785284 | 2016-09-27 10:43:13 -0600 | [diff] [blame] | 137 | LOCAL_LDFLAGS += -Wl,-Bsymbolic |
Mike Stroyan | 7194842 | 2016-09-28 14:58:52 -0600 | [diff] [blame] | 138 | LOCAL_LDFLAGS += -Wl,--exclude-libs,ALL |
Jon Ashburn | 58048d0 | 2016-03-03 12:03:58 -0700 | [diff] [blame] | 139 | include $(BUILD_SHARED_LIBRARY) |
| 140 | |
Cody Northrop | 8e54a40 | 2016-03-08 22:25:52 -0700 | [diff] [blame] | 141 | # Pull in prebuilt shaderc |
| 142 | include $(CLEAR_VARS) |
| 143 | LOCAL_MODULE := shaderc-prebuilt |
Cody Northrop | 544a42e | 2016-11-03 14:44:55 -0600 | [diff] [blame] | 144 | LOCAL_SRC_FILES := $(ANDROID_DIR)/external/shaderc/android_test/obj/local/$(TARGET_ARCH_ABI)/libshaderc.a |
Cody Northrop | 8e54a40 | 2016-03-08 22:25:52 -0700 | [diff] [blame] | 145 | include $(PREBUILT_STATIC_LIBRARY) |
| 146 | |
| 147 | include $(CLEAR_VARS) |
| 148 | LOCAL_MODULE := glslang-prebuilt |
Cody Northrop | 544a42e | 2016-11-03 14:44:55 -0600 | [diff] [blame] | 149 | LOCAL_SRC_FILES := $(ANDROID_DIR)/external/shaderc/android_test/obj/local/$(TARGET_ARCH_ABI)/libglslang.a |
Cody Northrop | 8e54a40 | 2016-03-08 22:25:52 -0700 | [diff] [blame] | 150 | include $(PREBUILT_STATIC_LIBRARY) |
| 151 | |
| 152 | include $(CLEAR_VARS) |
| 153 | LOCAL_MODULE := OGLCompiler-prebuilt |
Cody Northrop | 544a42e | 2016-11-03 14:44:55 -0600 | [diff] [blame] | 154 | LOCAL_SRC_FILES := $(ANDROID_DIR)/external/shaderc/android_test/obj/local/$(TARGET_ARCH_ABI)/libOGLCompiler.a |
Cody Northrop | 8e54a40 | 2016-03-08 22:25:52 -0700 | [diff] [blame] | 155 | include $(PREBUILT_STATIC_LIBRARY) |
| 156 | |
| 157 | include $(CLEAR_VARS) |
| 158 | LOCAL_MODULE := OSDependent-prebuilt |
Cody Northrop | 544a42e | 2016-11-03 14:44:55 -0600 | [diff] [blame] | 159 | LOCAL_SRC_FILES := $(ANDROID_DIR)/external/shaderc/android_test/obj/local/$(TARGET_ARCH_ABI)/libOSDependent.a |
Cody Northrop | 8e54a40 | 2016-03-08 22:25:52 -0700 | [diff] [blame] | 160 | include $(PREBUILT_STATIC_LIBRARY) |
| 161 | |
| 162 | include $(CLEAR_VARS) |
Cody Northrop | 2775d79 | 2016-04-14 11:18:30 -0600 | [diff] [blame] | 163 | LOCAL_MODULE := HLSL-prebuilt |
Cody Northrop | 544a42e | 2016-11-03 14:44:55 -0600 | [diff] [blame] | 164 | LOCAL_SRC_FILES := $(ANDROID_DIR)/external/shaderc/android_test/obj/local/$(TARGET_ARCH_ABI)/libHLSL.a |
Cody Northrop | 2775d79 | 2016-04-14 11:18:30 -0600 | [diff] [blame] | 165 | include $(PREBUILT_STATIC_LIBRARY) |
| 166 | |
| 167 | include $(CLEAR_VARS) |
Cody Northrop | 8e54a40 | 2016-03-08 22:25:52 -0700 | [diff] [blame] | 168 | LOCAL_MODULE := shaderc_util-prebuilt |
Cody Northrop | 544a42e | 2016-11-03 14:44:55 -0600 | [diff] [blame] | 169 | LOCAL_SRC_FILES := $(ANDROID_DIR)/external/shaderc/android_test/obj/local/$(TARGET_ARCH_ABI)/libshaderc_util.a |
Cody Northrop | 8e54a40 | 2016-03-08 22:25:52 -0700 | [diff] [blame] | 170 | include $(PREBUILT_STATIC_LIBRARY) |
| 171 | |
| 172 | include $(CLEAR_VARS) |
| 173 | LOCAL_MODULE := SPIRV-prebuilt |
Cody Northrop | 544a42e | 2016-11-03 14:44:55 -0600 | [diff] [blame] | 174 | LOCAL_SRC_FILES := $(ANDROID_DIR)/external/shaderc/android_test/obj/local/$(TARGET_ARCH_ABI)/libSPIRV.a |
Cody Northrop | 8e54a40 | 2016-03-08 22:25:52 -0700 | [diff] [blame] | 175 | include $(PREBUILT_STATIC_LIBRARY) |
| 176 | |
| 177 | include $(CLEAR_VARS) |
| 178 | LOCAL_MODULE := SPIRV-Tools-prebuilt |
Cody Northrop | 544a42e | 2016-11-03 14:44:55 -0600 | [diff] [blame] | 179 | LOCAL_SRC_FILES := $(ANDROID_DIR)/external/shaderc/android_test/obj/local/$(TARGET_ARCH_ABI)/libSPIRV-Tools.a |
Cody Northrop | 8e54a40 | 2016-03-08 22:25:52 -0700 | [diff] [blame] | 180 | include $(PREBUILT_STATIC_LIBRARY) |
| 181 | |
| 182 | include $(CLEAR_VARS) |
Cody Northrop | bc71ca8 | 2016-11-03 14:34:17 -0600 | [diff] [blame] | 183 | LOCAL_MODULE := SPIRV-Tools-opt-prebuilt |
Cody Northrop | 544a42e | 2016-11-03 14:44:55 -0600 | [diff] [blame] | 184 | LOCAL_SRC_FILES := $(ANDROID_DIR)/external/shaderc/android_test/obj/local/$(TARGET_ARCH_ABI)/libSPIRV-Tools-opt.a |
Cody Northrop | bc71ca8 | 2016-11-03 14:34:17 -0600 | [diff] [blame] | 185 | include $(PREBUILT_STATIC_LIBRARY) |
| 186 | |
| 187 | include $(CLEAR_VARS) |
Cody Northrop | 8e54a40 | 2016-03-08 22:25:52 -0700 | [diff] [blame] | 188 | LOCAL_MODULE := VkLayerValidationTests |
| 189 | LOCAL_SRC_FILES += $(SRC_DIR)/tests/layer_validation_tests.cpp \ |
| 190 | $(SRC_DIR)/tests/vktestbinding.cpp \ |
| 191 | $(SRC_DIR)/tests/vktestframeworkandroid.cpp \ |
| 192 | $(SRC_DIR)/tests/vkrenderframework.cpp \ |
Tobin Ehlis | 36f5157 | 2016-04-28 09:00:47 -0600 | [diff] [blame] | 193 | $(SRC_DIR)/common/vulkan_wrapper.cpp |
Cody Northrop | 8e54a40 | 2016-03-08 22:25:52 -0700 | [diff] [blame] | 194 | LOCAL_C_INCLUDES += $(SRC_DIR)/include \ |
| 195 | $(SRC_DIR)/layers \ |
| 196 | $(SRC_DIR)/libs \ |
Tobin Ehlis | 36f5157 | 2016-04-28 09:00:47 -0600 | [diff] [blame] | 197 | $(SRC_DIR)/common \ |
Cody Northrop | 544a42e | 2016-11-03 14:44:55 -0600 | [diff] [blame] | 198 | $(ANDROID_DIR)/external/shaderc/libshaderc/include |
Cody Northrop | 8e54a40 | 2016-03-08 22:25:52 -0700 | [diff] [blame] | 199 | |
| 200 | LOCAL_STATIC_LIBRARIES := googletest_main layer_utils |
Cody Northrop | bc71ca8 | 2016-11-03 14:34:17 -0600 | [diff] [blame] | 201 | LOCAL_SHARED_LIBRARIES += shaderc-prebuilt glslang-prebuilt OGLCompiler-prebuilt OSDependent-prebuilt HLSL-prebuilt shaderc_util-prebuilt SPIRV-prebuilt SPIRV-Tools-prebuilt SPIRV-Tools-opt-prebuilt |
Mike Stroyan | 7194842 | 2016-09-28 14:58:52 -0600 | [diff] [blame] | 202 | LOCAL_CPPFLAGS += -DVK_USE_PLATFORM_ANDROID_KHR -fvisibility=hidden --include=$(SRC_DIR)/common/vulkan_wrapper.h |
Cody Northrop | 8e54a40 | 2016-03-08 22:25:52 -0700 | [diff] [blame] | 203 | LOCAL_LDLIBS := -llog |
Mike Stroyan | 3785284 | 2016-09-27 10:43:13 -0600 | [diff] [blame] | 204 | LOCAL_LDFLAGS += -Wl,-Bsymbolic |
Mike Stroyan | 7194842 | 2016-09-28 14:58:52 -0600 | [diff] [blame] | 205 | LOCAL_LDFLAGS += -Wl,--exclude-libs,ALL |
Cody Northrop | 8e54a40 | 2016-03-08 22:25:52 -0700 | [diff] [blame] | 206 | include $(BUILD_EXECUTABLE) |
| 207 | |
Cody Northrop | 1242dfd | 2016-07-13 17:24:59 -0600 | [diff] [blame] | 208 | # Note: The following module is similar in name to the executable, but differs so that loader won't enumerate the resulting .so |
| 209 | include $(CLEAR_VARS) |
| 210 | LOCAL_MODULE := VulkanLayerValidationTests |
| 211 | LOCAL_SRC_FILES += $(SRC_DIR)/tests/layer_validation_tests.cpp \ |
| 212 | $(SRC_DIR)/tests/vktestbinding.cpp \ |
| 213 | $(SRC_DIR)/tests/vktestframeworkandroid.cpp \ |
| 214 | $(SRC_DIR)/tests/vkrenderframework.cpp \ |
| 215 | $(SRC_DIR)/common/vulkan_wrapper.cpp |
| 216 | LOCAL_C_INCLUDES += $(SRC_DIR)/include \ |
| 217 | $(SRC_DIR)/layers \ |
| 218 | $(SRC_DIR)/libs \ |
| 219 | $(SRC_DIR)/common \ |
Cody Northrop | 544a42e | 2016-11-03 14:44:55 -0600 | [diff] [blame] | 220 | $(ANDROID_DIR)/external/shaderc/libshaderc/include |
Cody Northrop | 1242dfd | 2016-07-13 17:24:59 -0600 | [diff] [blame] | 221 | |
| 222 | LOCAL_STATIC_LIBRARIES := googletest_main layer_utils |
Cody Northrop | bc71ca8 | 2016-11-03 14:34:17 -0600 | [diff] [blame] | 223 | LOCAL_SHARED_LIBRARIES += shaderc-prebuilt glslang-prebuilt OGLCompiler-prebuilt OSDependent-prebuilt HLSL-prebuilt shaderc_util-prebuilt SPIRV-prebuilt SPIRV-Tools-prebuilt SPIRV-Tools-opt-prebuilt |
Mike Stroyan | 7194842 | 2016-09-28 14:58:52 -0600 | [diff] [blame] | 224 | LOCAL_CPPFLAGS += -DVK_USE_PLATFORM_ANDROID_KHR -fvisibility=hidden -DVALIDATION_APK --include=$(SRC_DIR)/common/vulkan_wrapper.h |
Cody Northrop | 1242dfd | 2016-07-13 17:24:59 -0600 | [diff] [blame] | 225 | LOCAL_WHOLE_STATIC_LIBRARIES += android_native_app_glue |
| 226 | LOCAL_LDLIBS := -llog -landroid |
| 227 | include $(BUILD_SHARED_LIBRARY) |
| 228 | |
| 229 | $(call import-module,android/native_app_glue) |
Jon Ashburn | 58048d0 | 2016-03-03 12:03:58 -0700 | [diff] [blame] | 230 | $(call import-module,third_party/googletest) |