mirror of https://github.com/BOINC/boinc.git
17 lines
510 B
Bash
Executable File
17 lines
510 B
Bash
Executable File
#!/bin/sh
|
|
set -e
|
|
|
|
#
|
|
# See: http://boinc.berkeley.edu/trac/wiki/AndroidBuildClient#
|
|
#
|
|
|
|
# Script to setup Android toolchain
|
|
|
|
export NDK_ROOT="${NDK_ROOT:-$HOME/NVPACK/android-ndk-r10e}"
|
|
export ANDROID_TC="${ANDROID_TC:-$HOME/android-tc}"
|
|
export ANDROID_TC_X86="${ANDROID_TC_X86:-$ANDROID_TC/x86}"
|
|
|
|
if [ ! -d "${ANDROID_TC_X86}/i686-linux-android" ]; then
|
|
"${NDK_ROOT}/build/tools/make-standalone-toolchain.sh" --verbose --platform=android-19 --arch=x86 --stl=libc++ --install-dir="${ANDROID_TC_X86}" "$@"
|
|
fi
|