2016-06-19 20:57:46 +00:00
|
|
|
#/bin/sh
|
|
|
|
|
|
|
|
#
|
|
|
|
# See: http://boinc.berkeley.edu/trac/wiki/AndroidBuildClient#
|
|
|
|
#
|
|
|
|
|
|
|
|
# Script to setup Android toolchain
|
|
|
|
|
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_X86_64="${ANDROID_TC_X86_64:-$ANDROID_TC/x86_64}"
|
2016-06-19 20:57:46 +00:00
|
|
|
|
2017-03-29 09:08:02 +00:00
|
|
|
if [ ! -d $ANDROID_TC_X86_64/x86_64-linux-android ]; then
|
|
|
|
$NDK_ROOT/build/tools/make-standalone-toolchain.sh --platform=android-21 --arch=x86_64 --install-dir=$ANDROID_TC_X86_64
|
2016-06-19 20:57:46 +00:00
|
|
|
fi
|