-
-
Notifications
You must be signed in to change notification settings - Fork 3
Build and Development
Harshal Sawant edited this page Feb 5, 2026
·
1 revision
- Android NDK r26 or newer recommended
- CMake 3.18 or newer
- Ninja optional
export ANDROID_NDK=/path/to/android-ndk
./build.sh allexport ANDROID_NDK=/path/to/android-ndk
./build.sh arm64-v8a./build.sh cleanbuild/<ABI>/bin/task_optimizerbin/<ABI>/task_optimizer
-
CTO_ENABLE_WARNINGSdefault ON -
CTO_ENABLE_LTOdefault ON -
CTO_ENABLE_STRIPdefault ON for Android Release builds
To pass options manually:
cmake -S . -B build/arm64-v8a \
-DCMAKE_TOOLCHAIN_FILE="$ANDROID_NDK/build/cmake/android.toolchain.cmake" \
-DANDROID_ABI=arm64-v8a \
-DANDROID_PLATFORM=android-21 \
-DCMAKE_BUILD_TYPE=Release \
-DCTO_ENABLE_LTO=ON