Update android build scripts.

This commit is contained in:
M 2021-08-31 12:27:30 +03:00
parent 2a0556720c
commit 9d7e465211
10 changed files with 148 additions and 102 deletions

13
scripts/android/config.sh Normal file
View file

@ -0,0 +1,13 @@
#!/bin/sh
export API=21
export WORKDIR=/opt/android
export ANDROID_NDK_ZIP=${WORKDIR}/android-ndk-r20b.zip
export ANDROID_NDK_ROOT=${WORKDIR}/android-ndk-r20b
export ANDROID_NDK_HOME=$ANDROID_NDK_ROOT
export TOOLCHAIN_DIR="${ANDROID_NDK_HOME}/toolchains/llvm/prebuilt/linux-x86_64"
case :${PATH:=${TOOLCHAIN_DIR}/bin}: in
(*:"${TOOLCHAIN_DIR}/bin":*) ;; (*)
export PATH=${TOOLCHAIN_DIR}/bin:$PATH
esac;