Files
termux-packages/packages/vulkan-validation-layers/0001-no-android.patch
2025-03-23 14:04:05 +00:00

32 lines
1.1 KiB
Diff

--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -41,7 +41,7 @@
# Allow usage of unsafe CRT functions and minimize what Windows.h leaks
add_compile_definitions(_CRT_SECURE_NO_WARNINGS NOMINMAX WIN32_LEAN_AND_MEAN)
-elseif(ANDROID)
+elseif(0 AND ANDROID)
add_compile_definitions(VK_USE_PLATFORM_ANDROID_KHR)
elseif(APPLE)
add_compile_definitions(VK_USE_PLATFORM_METAL_EXT)
--- a/layers/CMakeLists.txt
+++ b/layers/CMakeLists.txt
@@ -435,7 +435,7 @@
endif()
# Both Apple and IOS
target_link_options(vvl PRIVATE -exported_symbols_list ${CMAKE_CURRENT_SOURCE_DIR}/${LAYER_NAME}.exp)
-elseif(ANDROID)
+elseif(0 AND ANDROID)
# Need 16k pages in Android 15
# When we bump our NDK requirement to r28 we can remove
# https://developer.android.com/guide/practices/page-sizes#compile-r28
@@ -496,7 +496,7 @@
target_include_directories(vvl SYSTEM PRIVATE external)
-if (ANDROID)
+if (0 AND ANDROID)
# Required for __android_log_print. Marking as PUBLIC since the tests use __android_log_print as well.
target_link_libraries(VkLayer_utils PUBLIC log)