2018-01-28 19:56:22 +00:00
|
|
|
#!/bin/sh
|
|
|
|
set -e
|
2013-02-18 20:38:33 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# See: http://boinc.berkeley.edu/trac/wiki/AndroidBuildClient#
|
|
|
|
#
|
|
|
|
|
|
|
|
# Script to setup Android toolchain
|
2013-01-16 18:17:50 +00:00
|
|
|
|
2017-03-29 09:08:02 +00:00
|
|
|
export NDK_ROOT="${NDK_ROOT:-$HOME/NVPACK/android-ndk-r10e}"
|
|
|
|
export ANDROID_TC="${ANDROID_TC:-$HOME/android-tc}"
|
|
|
|
export ANDROID_TC_ARM="${ANDROID_TC_ARM:-$ANDROID_TC/arm}"
|
2013-01-16 18:17:50 +00:00
|
|
|
|
2018-01-28 19:56:22 +00:00
|
|
|
if [ ! -d "$ANDROID_TC_ARM/arm-linux-androideabi" ]; then
|
2018-09-04 12:40:09 +00:00
|
|
|
"$NDK_ROOT/build/tools/make-standalone-toolchain.sh" --verbose --platform=android-19 --arch=arm --stl=libc++ --install-dir="$ANDROID_TC_ARM" "$@"
|
2013-01-16 18:17:50 +00:00
|
|
|
fi
|