diff --git a/CMakeLists.txt b/CMakeLists.txt index 9d2d072c..06bc222b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -253,14 +253,14 @@ FetchContent_Declare(libktx EXCLUDE_FROM_ALL SYSTEM URL https://github.co FetchContent_Declare(implot EXCLUDE_FROM_ALL SYSTEM URL https://github.com/epezent/implot/archive/3da8bd34299965d3b0ab124df743fe3e076fa222.zip URL_HASH SHA256=e9b439a94aa6f09fcf12ed9c2cd784efe5e99e96242122aa683e690b29f7a59f) file(GLOB IMGUI_PATCHES CONFIGURE_DEPENDS patches/imgui/*) -FetchContent_Declare(imgui EXCLUDE_FROM_ALL SYSTEM URL https://github.com/ocornut/imgui/archive/refs/tags/v1.92.4.tar.gz - URL_HASH SHA256=0e175d4d941112532549b418ced0bd546abe9024ecb9b5f431f8a67a2197b0ba +FetchContent_Declare(imgui EXCLUDE_FROM_ALL SYSTEM URL https://github.com/ocornut/imgui/archive/refs/tags/v1.92.5.tar.gz + URL_HASH SHA256=0eb50fe9aeba1a51f96b5843c7f630a32ed2e9362d693c61b87e4fa870cf826d PATCH_COMMAND ${CMAKE_CURRENT_LIST_DIR}/patches/apply.sh ${IMGUI_PATCHES} ) FetchContent_Declare(uni-algo EXCLUDE_FROM_ALL SYSTEM URL https://github.com/uni-algo/uni-algo/archive/v1.2.0.tar.gz URL_HASH SHA256=f2a1539cd8635bc6088d05144a73ecfe7b4d74ee0361fabed6f87f9f19e74ca9) -FetchContent_Declare(entt EXCLUDE_FROM_ALL SYSTEM URL https://github.com/skypjack/entt/archive/refs/tags/v3.15.0.tar.gz - URL_HASH SHA256=01466fcbf77618a79b62891510c0bbf25ac2804af5751c84982b413852234d66) +FetchContent_Declare(entt EXCLUDE_FROM_ALL SYSTEM URL https://github.com/skypjack/entt/archive/refs/tags/v3.16.0.tar.gz + URL_HASH SHA256=7d7b4037b737992342049ffab14f22fa10243e01664f8c3a0657aa247ac52f71) FetchContent_Declare(curl EXCLUDE_FROM_ALL SYSTEM URL https://github.com/curl/curl/releases/download/curl-8_17_0/curl-8.17.0.tar.xz URL_HASH SHA256=955f6e729ad6b3566260e8fef68620e76ba3c31acf0a18524416a185acf77992) FetchContent_Declare(spirv-reflect EXCLUDE_FROM_ALL SYSTEM URL https://github.com/KhronosGroup/SPIRV-Reflect/archive/refs/tags/vulkan-sdk-1.4.328.1.tar.gz diff --git a/client/CMakeLists.txt b/client/CMakeLists.txt index 245b432e..1fb0b874 100644 --- a/client/CMakeLists.txt +++ b/client/CMakeLists.txt @@ -65,6 +65,15 @@ if(ANDROID) target_compile_definitions(wivrn PRIVATE -DXR_USE_PLATFORM_ANDROID -DVK_USE_PLATFORM_ANDROID_KHR) target_link_options(wivrn PRIVATE -Wl,--undefined=ANativeActivity_onCreate) + target_link_options(wivrn + PRIVATE + -Wl,--version-script,${CMAKE_CURRENT_SOURCE_DIR}/android/exported_symbols.txt + # This causes the linker to emit an error when a version script names a + # symbol that is not found, rather than silently ignoring that line. + -Wl,--no-undefined-version + ) + set_target_properties(wivrn PROPERTIES LINK_DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/android/exported_symbols.txt) + file(GLOB PLATFORM_SOURCE CONFIGURE_DEPENDS "android/*.cpp" "audio/android/*.cpp" diff --git a/client/android/exported_symbols.txt b/client/android/exported_symbols.txt new file mode 100644 index 00000000..39460295 --- /dev/null +++ b/client/android/exported_symbols.txt @@ -0,0 +1,10 @@ +LIBAPP { + global: + ANativeActivity_onCreate; + android_main; + Java_org_meumeu_wivrn_BroadcastReceiver_onReceive; + Java_org_meumeu_wivrn_MainActivity_onRequestPermissionsResult; + Java_org_meumeu_wivrn_MainActivity_onActivityResult; + local: + *; +}; diff --git a/patches/monado/0005-Replace-distortion-with-foveation.patch b/patches/monado/0005-Replace-distortion-with-foveation.patch index f4fadc2c..b6860c0f 100644 --- a/patches/monado/0005-Replace-distortion-with-foveation.patch +++ b/patches/monado/0005-Replace-distortion-with-foveation.patch @@ -27,7 +27,7 @@ index 1ba5ec438..eb068f5fc 100644 SHADER_HEADERS SPIRV_VERSION - 1.0 # Currently targeting Vulkan 1.0 -+ 1.3 # Currently targeting Vulkan 1.3 ++ 1.6 # Currently targeting Vulkan 1.3 SOURCES ${SHADERS} )