From 41abd36e3316db76d5e69c256e4595b7e51ac0dd Mon Sep 17 00:00:00 2001 From: Guillaume Meunier Date: Sat, 25 Oct 2025 22:49:04 +0200 Subject: [PATCH] Don't compress GLB files by default --- .github/workflows/APK-Release.yml | 2 +- .github/workflows/Build.yml | 2 +- CMakeLists.txt | 2 +- build.gradle | 4 +++- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/APK-Release.yml b/.github/workflows/APK-Release.yml index 930ab397..130be36b 100644 --- a/.github/workflows/APK-Release.yml +++ b/.github/workflows/APK-Release.yml @@ -71,7 +71,7 @@ jobs: sudo rm /usr/local/bin/cmake "${ANDROID_SDK_ROOT}/cmdline-tools/latest/bin/sdkmanager" --install "cmake;3.30.3" chmod +x gradlew - ./gradlew -Psuffix=".github.nightly" -Pwivrn_css=images/wivrn-nightly.css -Pwivrn_app_name="WiVRn Nightly" assemble${{ matrix.hmd }}${{ matrix.buildtype }} + ./gradlew -Psuffix=".github.nightly" -Pwivrn_css=images/wivrn-nightly.css -Pwivrn_app_name="WiVRn Nightly" -Pwivrn_compress_glb=ON assemble${{ matrix.hmd }}${{ matrix.buildtype }} - name: Prepare before archiving artifacts run: | diff --git a/.github/workflows/Build.yml b/.github/workflows/Build.yml index 1ec0a4f3..6b987a83 100644 --- a/.github/workflows/Build.yml +++ b/.github/workflows/Build.yml @@ -407,7 +407,7 @@ jobs: echo Using stylesheet $CSS and name $APPNAME chmod +x gradlew - ./gradlew -Pwivrn_version=$VERSION -Pwivrn_versionCode=$VERSION_CODE -Psuffix=$SUFFIX -Pwivrn_css=$CSS -Pwivrn_app_name="$APPNAME" assemble${{ matrix.hmd }}${{ matrix.buildtype }} + ./gradlew -Pwivrn_version=$VERSION -Pwivrn_versionCode=$VERSION_CODE -Psuffix=$SUFFIX -Pwivrn_css=$CSS -Pwivrn_app_name="$APPNAME" -Pwivrn_compress_glb=ON assemble${{ matrix.hmd }}${{ matrix.buildtype }} - name: Upload build dir uses: actions/upload-artifact@v4 diff --git a/CMakeLists.txt b/CMakeLists.txt index 6102733a..53dd0d46 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -27,7 +27,7 @@ option(WIVRN_USE_SYSTEM_FREETYPE "Use system FreeType" ON) option(WIVRN_USE_SYSTEM_BOOST "Use system Boost headers" ON) option(WIVRN_USE_SYSTEM_OPENXR "Use system OpenXR headers" ON) option(WIVRN_USE_SYSTEMD "Use libsystemd" ON) -option(WIVRN_COMPRESS_GLB "Compress textures in GLB files with gltf-transform" ON) +option(WIVRN_COMPRESS_GLB "Compress textures in GLB files with gltf-transform" OFF) option(WIVRN_USE_ANDROID_VALIDATION_LAYER "Download the android version of the Vulkan validation layer" OFF) option(WIVRN_BUILD_CLIENT "Build WiVRn client" OFF) option(WIVRN_BUILD_SERVER "Build WiVRn server" ON) diff --git a/build.gradle b/build.gradle index f4512f7a..96960c01 100644 --- a/build.gradle +++ b/build.gradle @@ -114,6 +114,7 @@ android { versionCode = project.hasProperty('wivrn_versionCode') ? wivrn_versionCode.toInteger() : 1 def showImguiDemo = project.hasProperty('wivrn_show_imgui_demo') ? wivrn_show_imgui_demo : 'OFF' def showDebugMenu = project.hasProperty('wivrn_show_debug_menu') ? wivrn_show_debug_menu : 'OFF' + def compressGlb = project.hasProperty('wivrn_compress_glb') ? wivrn_compress_glb : 'OFF' externalNativeBuild { def css = project.hasProperty('wivrn_css') ? project.wivrn_css: "images/wivrn-local.css" @@ -134,7 +135,8 @@ android { '-DWIVRN_WERROR=ON', '-DWIVRN_SHOW_IMGUI_DEMO_WINDOW=' + showImguiDemo, '-DWIVRN_CLIENT_DEBUG_MENU=' + showDebugMenu, - '-DWIVRN_CSS=' + css + '-DWIVRN_CSS=' + css, + '-DWIVRN_COMPRESS_GLB=' + compressGlb resValue "string", "app_name", project.hasProperty('wivrn_app_name') ? project.wivrn_app_name : "WiVRn Local" } }