Merge remote-tracking branch 'upstream/master'

This commit is contained in:
Vindicus999
2026-02-02 02:35:11 +00:00
5 changed files with 21 additions and 7 deletions
+15 -2
View File
@@ -127,7 +127,6 @@ android {
'-DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON', '-DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON',
'-DCMAKE_EXPORT_COMPILE_COMMANDS=ON', '-DCMAKE_EXPORT_COMPILE_COMMANDS=ON',
'-DCMAKE_ANDROID_ASSETS_DIRECTORIES=' + layout.buildDirectory.dir("assets").get().asFile, '-DCMAKE_ANDROID_ASSETS_DIRECTORIES=' + layout.buildDirectory.dir("assets").get().asFile,
'-DCMAKE_ANDROID_LIB_DIRECTORIES=' + layout.buildDirectory.dir("libs").get().asFile,
'-DWIVRN_USE_SYSTEM_BOOST=OFF', '-DWIVRN_USE_SYSTEM_BOOST=OFF',
'-DWIVRN_USE_SYSTEM_FREETYPE=OFF', '-DWIVRN_USE_SYSTEM_FREETYPE=OFF',
'-DWIVRN_USE_ANDROID_BIN_LIBKTX=ON', '-DWIVRN_USE_ANDROID_BIN_LIBKTX=ON',
@@ -202,12 +201,26 @@ android {
initWith debug initWith debug
externalNativeBuild { externalNativeBuild {
cmake { cmake {
arguments '-DUSE_ANDROID_VALIDATION_LAYER=ON' arguments '-DWIVRN_USE_ANDROID_VALIDATION_LAYER=ON'
} }
} }
} }
} }
buildTypes.all { variant ->
sourceSets {
"${variant.name}" {
jniLibs.srcDirs layout.buildDirectory.dir("libs${variant.name.capitalize()}")
}
}
externalNativeBuild{
cmake {
arguments '-DANDROID_LIB_DIRECTORIES=' + layout.buildDirectory.dir("libs${variant.name.capitalize()}").get().asFile
}
}
}
sourceSets { sourceSets {
main { main {
manifest.srcFile 'AndroidManifest.xml' manifest.srcFile 'AndroidManifest.xml'
+3 -3
View File
@@ -194,7 +194,7 @@ khronos_validation.enables = VK_VALIDATION_FEATURE_ENABLE_THREAD_SAFETY_EXT
") ")
endif() endif()
if(USE_ANDROID_VALIDATION_LAYER) if(WIVRN_USE_ANDROID_VALIDATION_LAYER)
set(VVL_VERSION "1.4.321.0") set(VVL_VERSION "1.4.321.0")
if(NOT EXISTS ${FETCHCONTENT_BASE_DIR}/Vulkan-ValidationLayers-${VVL_VERSION}.zip) if(NOT EXISTS ${FETCHCONTENT_BASE_DIR}/Vulkan-ValidationLayers-${VVL_VERSION}.zip)
@@ -213,10 +213,10 @@ if(USE_ANDROID_VALIDATION_LAYER)
file(COPY file(COPY
${FETCHCONTENT_BASE_DIR}/Vulkan-ValidationLayer/android-binaries-${VVL_VERSION}/${CMAKE_ANDROID_ARCH_ABI} ${FETCHCONTENT_BASE_DIR}/Vulkan-ValidationLayer/android-binaries-${VVL_VERSION}/${CMAKE_ANDROID_ARCH_ABI}
DESTINATION ${CMAKE_ANDROID_LIB_DIRECTORIES}) DESTINATION ${ANDROID_LIB_DIRECTORIES})
else() else()
# silence "Manually-specified variables were not used by the project" warning # silence "Manually-specified variables were not used by the project" warning
set(_unused ${CMAKE_ANDROID_LIB_DIRECTORIES}) set(_unused ${ANDROID_LIB_DIRECTORIES})
endif() endif()
+1
View File
@@ -28,6 +28,7 @@
#include <fcntl.h> #include <fcntl.h>
#include <nlohmann/json.hpp> #include <nlohmann/json.hpp>
#include <qqmlintegration.h> #include <qqmlintegration.h>
#include <unistd.h>
namespace namespace
{ {
+1 -1
View File
@@ -58,7 +58,7 @@
# Keep in sync with CMakeLists.txt monado rev # Keep in sync with CMakeLists.txt monado rev
rev = lib.strings.trim (builtins.readFile ./monado-rev); rev = lib.strings.trim (builtins.readFile ./monado-rev);
# Nix will output the correct hash when it doesn't match # Nix will output the correct hash when it doesn't match
hash = "sha256-zU8TLRzd4pb9KzVT/xana6rArcSu31wlCD54p7PJ9UY="; hash = "sha256-Q8yciIwQrRNUCQ5tRUdL67w+5ddbdX/zFtxtLEZ014c=";
}; };
}; };
+1 -1
View File
@@ -1 +1 @@
93d5848d2f5f835fe29291dc7e0f094f3e02de78 c399c3a15cdafc3af19331f1fc2edd7339436847