Skip to content

Commit

Permalink
Update build-filament.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
mrousavy committed Feb 21, 2024
1 parent d68653d commit 3bfcf75
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions package/scripts/build-filament.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,14 @@ echo "Building Filament for Android ($target)"
mkdir -p out/android-build-release-aarch64
cd out/android-build-release-aarch64
cmake -G Ninja \
-DFILAMENT_ENABLE_LTO=ON \ # Enable link-time optimizations if supported by the compiler
-DFILAMENT_BUILD_FILAMAT=OFF \ # Build filamat and JNI buildings
-DFILAMENT_SUPPORTS_OPENGL=ON \ # Include the OpenGL backend
-DFILAMENT_SUPPORTS_METAL=OFF \ # Include the Metal backend
-DFILAMENT_SUPPORTS_VULKAN=OFF \ # Include the Vulkan backend
-DFILAMENT_INSTALL_BACKEND_TEST=OFF \ # Install the backend test library so it can be consumed on iOS
-DFILAMENT_USE_EXTERNAL_GLES3=OFF \ # Experimental: Compile Filament against OpenGL ES 3
-DFILAMENT_USE_SWIFTSHADER=OFF \ # Compile Filament against SwiftShader
-DFILAMENT_SKIP_SAMPLES=ON \ # Don't build sample apps
-DFILAMENT_ENABLE_LTO=ON \
-DFILAMENT_BUILD_FILAMAT=OFF \
-DFILAMENT_SUPPORTS_OPENGL=ON \
-DFILAMENT_SUPPORTS_METAL=OFF \
-DFILAMENT_SUPPORTS_VULKAN=OFF \
-DFILAMENT_USE_EXTERNAL_GLES3=OFF \
-DFILAMENT_USE_SWIFTSHADER=OFF \
-DFILAMENT_SKIP_SAMPLES=ON \
-DCMAKE_TOOLCHAIN_FILE=../../build/toolchain-aarch64-linux-android.cmake \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=../android-release/filament \
Expand Down

0 comments on commit 3bfcf75

Please sign in to comment.