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