; Cross-compilation to arm64-v8a Android using the NDK toolchain.
; Adjust the SDK/NDK paths below to your installation.
; SDL2 must be built for Android first, see android/README.md

[binaries]
c = '/home/berkybear/Android/Sdk/ndk/26.3.11579264/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android26-clang'
cpp = '/home/berkybear/Android/Sdk/ndk/26.3.11579264/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android26-clang++'
ar = '/home/berkybear/Android/Sdk/ndk/26.3.11579264/toolchains/llvm/prebuilt/linux-x86_64/bin/llvm-ar'
strip = '/home/berkybear/Android/Sdk/ndk/26.3.11579264/toolchains/llvm/prebuilt/linux-x86_64/bin/llvm-strip'
; Use an unwrapped pkg-config: the nix-shell wrapper injects the build
; machine's own package paths, which must not leak into the cross build.
pkg-config = '/usr/bin/pkg-config'

[properties]
; Exclusive pkg-config search path for host-machine (Android) dependencies,
; so the build-machine's own SDL2 can never leak into the cross build.
pkg_config_libdir = '/home/berkybear/Homeworld/android/sdl-prefix-arm64/lib/pkgconfig'

[host_machine]
system = 'android'
cpu_family = 'aarch64'
cpu = 'aarch64'
endian = 'little'
