ZONOS3-Mini / host /build_android.sh
mlboydaisuke's picture
Replace the Android runner with a faster one
9b130f3 verified
Raw History Blame Contribute Delete
588 Bytes
#!/bin/sh
set -eu
: "${NDK_BIN:?set NDK_BIN to the NDK LLVM bin directory}"
: "${LITERT_PUBLIC_SRC:?set LITERT_PUBLIC_SRC to the LiteRT source root containing tflite/}"
root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd)
cd "$root"
# Optional output path lets a rebuild be checked alongside the installed runner.
exec "$NDK_BIN/aarch64-linux-android28-clang++" -std=c++17 -O2 -ffp-contract=off \
-Iinclude -I"$LITERT_PUBLIC_SRC" host/main.cpp host/audio.cpp host/graphs.cpp \
-static-libstdc++ -Landroid -lz -ldl -lLiteRt '-Wl,-rpath,$ORIGIN' \
-o "${1:-android/zonos_host}"