Use the scripts/platform_builder.py script to automate builds for different platforms.
iOS (iphoneos):
python3 scripts/platform_builder.py --platform=iphoneos --arch=all
macOS:
python3 scripts/platform_builder.py --platform=macos --arch=all
Linux:
Requires running the setup script first to prepare CMake and LLVM.
sh scripts/setup_linux_cross_compile.sh
python3 scripts/platform_builder.py --platform=linux --arch=all --cmake_dir=$HOME/opt/cmake-3.25.2 --llvm_dir=$HOME/opt/llvm-15.0.6
Android:
Requires running the setup script and providing paths to CMake, LLVM, and the Android NDK.
sh scripts/setup_linux_cross_compile.sh
python3 scripts/platform_builder.py --platform=android --arch=all --cmake_dir=$HOME/opt/cmake-3.25.2 --llvm_dir=$HOME/opt/llvm-15.0.6 --android_ndk_dir=$HOME/opt/ndk-r25b
python3 scripts/platform_builder.py --platform=android --arch=all --cmake_dir=$HOME/opt/cmake-3.25.2 --llvm_dir=$HOME/opt/llvm-15.0.6 --android_ndk_dir=$HOME/opt/ndk-r25b