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 | 695f2c2 | 2015-09-09 12:39:13 -0700 | [diff] [blame] | 66 | LOCAL_MODULE := VKLayerImage
|
| 67 | LOCAL_SRC_FILES += $(SRC_DIR)/layers/image.cpp
|
| 68 | LOCAL_SRC_FILES += $(SRC_DIR)/layers/vk_layer_table.cpp
|
| 69 | LOCAL_C_INCLUDES += $(SRC_DIR)/include \
|
Michael Lentine | 83ab341 | 2015-11-03 16:20:30 -0800 | [diff] [blame] | 70 | $(SRC_DIR)/buildAndroid/generated \
|
| 71 | $(SRC_DIR)/loader
|
Michael Lentine | c181491 | 2015-12-08 15:41:43 -0800 | [diff] [blame] | 72 | LOCAL_STATIC_LIBRARIES += layer_utils
|
Michael Lentine | a8334b4 | 2015-12-09 14:33:52 -0800 | [diff] [blame] | 73 | LOCAL_CPPFLAGS += -DVK_USE_PLATFORM_ANDROID_KHR
|
Michael Lentine | 695f2c2 | 2015-09-09 12:39:13 -0700 | [diff] [blame] | 74 | LOCAL_LDLIBS := -llog
|
| 75 | include $(BUILD_SHARED_LIBRARY)
|
| 76 |
|
| 77 | include $(CLEAR_VARS)
|
| 78 | LOCAL_MODULE := VKLayerParamChecker
|
| 79 | LOCAL_SRC_FILES += $(SRC_DIR)/layers/param_checker.cpp
|
| 80 | LOCAL_SRC_FILES += $(SRC_DIR)/layers/vk_layer_debug_marker_table.cpp
|
| 81 | LOCAL_SRC_FILES += $(SRC_DIR)/layers/vk_layer_table.cpp
|
| 82 | LOCAL_C_INCLUDES += $(SRC_DIR)/include \
|
Michael Lentine | 83ab341 | 2015-11-03 16:20:30 -0800 | [diff] [blame] | 83 | $(SRC_DIR)/buildAndroid/generated \
|
| 84 | $(SRC_DIR)/loader
|
Michael Lentine | c181491 | 2015-12-08 15:41:43 -0800 | [diff] [blame] | 85 | LOCAL_STATIC_LIBRARIES += layer_utils
|
Michael Lentine | a8334b4 | 2015-12-09 14:33:52 -0800 | [diff] [blame] | 86 | LOCAL_CPPFLAGS += -DVK_USE_PLATFORM_ANDROID_KHR
|
Michael Lentine | 695f2c2 | 2015-09-09 12:39:13 -0700 | [diff] [blame] | 87 | LOCAL_LDLIBS := -llog
|
| 88 | include $(BUILD_SHARED_LIBRARY)
|
| 89 |
|
| 90 | include $(CLEAR_VARS)
|
| 91 | LOCAL_MODULE := VKLayerGeneric
|
| 92 | LOCAL_SRC_FILES += $(SRC_DIR)/buildAndroid/generated/generic_layer.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)/layers \
|
| 96 | $(SRC_DIR)/buildAndroid/generated \
|
| 97 | $(SRC_DIR)/loader
|
Michael Lentine | c181491 | 2015-12-08 15:41:43 -0800 | [diff] [blame] | 98 | LOCAL_STATIC_LIBRARIES += layer_utils
|
Michael Lentine | a8334b4 | 2015-12-09 14:33:52 -0800 | [diff] [blame] | 99 | LOCAL_CPPFLAGS += -DVK_USE_PLATFORM_ANDROID_KHR
|
Michael Lentine | 695f2c2 | 2015-09-09 12:39:13 -0700 | [diff] [blame] | 100 | LOCAL_LDLIBS := -llog
|
| 101 | include $(BUILD_SHARED_LIBRARY)
|
| 102 |
|
| 103 | include $(CLEAR_VARS)
|
| 104 | LOCAL_MODULE := VKLayerAPIDump
|
| 105 | LOCAL_SRC_FILES += $(SRC_DIR)/buildAndroid/generated/api_dump.cpp
|
| 106 | LOCAL_SRC_FILES += $(SRC_DIR)/layers/vk_layer_table.cpp
|
| 107 | LOCAL_C_INCLUDES += $(SRC_DIR)/include \
|
Michael Lentine | 83ab341 | 2015-11-03 16:20:30 -0800 | [diff] [blame] | 108 | $(SRC_DIR)/layers \
|
| 109 | $(SRC_DIR)/buildAndroid/generated \
|
| 110 | $(SRC_DIR)/loader
|
Michael Lentine | c181491 | 2015-12-08 15:41:43 -0800 | [diff] [blame] | 111 | LOCAL_STATIC_LIBRARIES += layer_utils
|
Michael Lentine | a8334b4 | 2015-12-09 14:33:52 -0800 | [diff] [blame] | 112 | LOCAL_CPPFLAGS += -DVK_USE_PLATFORM_ANDROID_KHR
|
Michael Lentine | 695f2c2 | 2015-09-09 12:39:13 -0700 | [diff] [blame] | 113 | LOCAL_LDLIBS := -llog
|
| 114 | include $(BUILD_SHARED_LIBRARY)
|
| 115 |
|
| 116 | include $(CLEAR_VARS)
|
| 117 | LOCAL_MODULE := VKLayerObjectTracker
|
| 118 | LOCAL_SRC_FILES += $(SRC_DIR)/buildAndroid/generated/object_track.cpp
|
| 119 | LOCAL_SRC_FILES += $(SRC_DIR)/layers/vk_layer_table.cpp
|
| 120 | LOCAL_C_INCLUDES += $(SRC_DIR)/include \
|
Michael Lentine | 83ab341 | 2015-11-03 16:20:30 -0800 | [diff] [blame] | 121 | $(SRC_DIR)/layers \
|
| 122 | $(SRC_DIR)/buildAndroid/generated \
|
| 123 | $(SRC_DIR)/loader
|
Michael Lentine | c181491 | 2015-12-08 15:41:43 -0800 | [diff] [blame] | 124 | LOCAL_STATIC_LIBRARIES += layer_utils
|
Michael Lentine | a8334b4 | 2015-12-09 14:33:52 -0800 | [diff] [blame] | 125 | LOCAL_CPPFLAGS += -DVK_USE_PLATFORM_ANDROID_KHR
|
Michael Lentine | 695f2c2 | 2015-09-09 12:39:13 -0700 | [diff] [blame] | 126 | LOCAL_LDLIBS := -llog
|
| 127 | include $(BUILD_SHARED_LIBRARY)
|
| 128 |
|
| 129 | include $(CLEAR_VARS)
|
| 130 | LOCAL_MODULE := VKLayerThreading
|
| 131 | LOCAL_SRC_FILES += $(SRC_DIR)/buildAndroid/generated/threading.cpp
|
| 132 | LOCAL_SRC_FILES += $(SRC_DIR)/layers/vk_layer_table.cpp
|
| 133 | LOCAL_C_INCLUDES += $(SRC_DIR)/include \
|
Michael Lentine | 83ab341 | 2015-11-03 16:20:30 -0800 | [diff] [blame] | 134 | $(SRC_DIR)/layers \
|
| 135 | $(SRC_DIR)/buildAndroid/generated \
|
| 136 | $(SRC_DIR)/loader
|
Michael Lentine | c181491 | 2015-12-08 15:41:43 -0800 | [diff] [blame] | 137 | LOCAL_STATIC_LIBRARIES += layer_utils
|
Michael Lentine | a8334b4 | 2015-12-09 14:33:52 -0800 | [diff] [blame] | 138 | LOCAL_CPPFLAGS += -DVK_USE_PLATFORM_ANDROID_KHR
|
Michael Lentine | 695f2c2 | 2015-09-09 12:39:13 -0700 | [diff] [blame] | 139 | LOCAL_LDLIBS := -llog
|
| 140 | include $(BUILD_SHARED_LIBRARY)
|
Michael Lentine | 83ab341 | 2015-11-03 16:20:30 -0800 | [diff] [blame] | 141 |
|
| 142 | include $(CLEAR_VARS)
|
| 143 | LOCAL_MODULE := VKLayerValidationTests
|
| 144 | LOCAL_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
|
| 148 | LOCAL_C_INCLUDES += $(SRC_DIR)/include \
|
| 149 | $(SRC_DIR)/layers \
|
| 150 | $(SRC_DIR)/libs \
|
| 151 | $(SRC_DIR)/icd/common
|
Michael Lentine | c181491 | 2015-12-08 15:41:43 -0800 | [diff] [blame] | 152 | LOCAL_STATIC_LIBRARIES := googletest_main layer_utils
|
Michael Lentine | a8334b4 | 2015-12-09 14:33:52 -0800 | [diff] [blame] | 153 | LOCAL_CPPFLAGS += -DVK_USE_PLATFORM_ANDROID_KHR
|
Michael Lentine | 83ab341 | 2015-11-03 16:20:30 -0800 | [diff] [blame] | 154 | LOCAL_LDLIBS := -lvulkan
|
| 155 | include $(BUILD_EXECUTABLE)
|
| 156 |
|
| 157 | $(call import-module,third_party/googletest)
|