summaryrefslogtreecommitdiff
path: root/build-android/jni/Android.mk
diff options
context:
space:
mode:
Diffstat (limited to 'build-android/jni/Android.mk')
-rw-r--r--build-android/jni/Android.mk23
1 files changed, 23 insertions, 0 deletions
diff --git a/build-android/jni/Android.mk b/build-android/jni/Android.mk
index a9b49d32..d88fe55f 100644
--- a/build-android/jni/Android.mk
+++ b/build-android/jni/Android.mk
@@ -185,4 +185,27 @@ LOCAL_CPPFLAGS += -DVK_USE_PLATFORM_ANDROID_KHR --include=$(SRC_DIR)/common/vulk
LOCAL_LDLIBS := -llog
include $(BUILD_EXECUTABLE)
+# Note: The following module is similar in name to the executable, but differs so that loader won't enumerate the resulting .so
+include $(CLEAR_VARS)
+LOCAL_MODULE := VulkanLayerValidationTests
+LOCAL_SRC_FILES += $(SRC_DIR)/tests/layer_validation_tests.cpp \
+ $(SRC_DIR)/tests/vktestbinding.cpp \
+ $(SRC_DIR)/tests/vktestframeworkandroid.cpp \
+ $(SRC_DIR)/tests/vkrenderframework.cpp \
+ $(SRC_DIR)/common/vulkan_wrapper.cpp
+LOCAL_C_INCLUDES += $(SRC_DIR)/include \
+ $(SRC_DIR)/layers \
+ $(SRC_DIR)/libs \
+ $(SRC_DIR)/common \
+ $(SRC_DIR)/icd/common \
+ $(SRC_DIR)/external/shaderc/libshaderc/include
+
+LOCAL_STATIC_LIBRARIES := googletest_main layer_utils
+LOCAL_SHARED_LIBRARIES += shaderc-prebuilt glslang-prebuilt OGLCompiler-prebuilt OSDependent-prebuilt HLSL-prebuilt shaderc_util-prebuilt SPIRV-prebuilt SPIRV-Tools-prebuilt
+LOCAL_CPPFLAGS += -DVK_USE_PLATFORM_ANDROID_KHR -DVALIDATION_APK --include=$(SRC_DIR)/common/vulkan_wrapper.h
+LOCAL_WHOLE_STATIC_LIBRARIES += android_native_app_glue
+LOCAL_LDLIBS := -llog -landroid
+include $(BUILD_SHARED_LIBRARY)
+
+$(call import-module,android/native_app_glue)
$(call import-module,third_party/googletest)