forked from livecode/livecode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathandroid.inc
More file actions
33 lines (28 loc) · 1.12 KB
/
Copy pathandroid.inc
File metadata and controls
33 lines (28 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Android options
ANDROID_NDK=${ANDROID_NDK:-"${HOME}/android/toolchain/android-ndk"}
ANDROID_PLATFORM=${ANDROID_PLATFORM:-android-17}
# Has a full, custom toolchain been specified?
# AR, CC, CXX, LINK, OBJCOPY, RANLIB, STRIP
if [ ! -z "${OBJCOPY}" ] ; then
ANDROID_CC="${CC}"
ANDROID_CXX="${CXX}"
ANDROID_LINK="${LINK}"
else
# Attempt to set up the toolchain automatically
if [ -z "${ANDROID_TOOLCHAIN}" ] ; then
ANDROID_TOOLCHAIN="${HOME}/android/toolchain/standalone/bin/arm-linux-androideabi"
# OpenSSL requires this to be set when cross-compiling for Android
export CROSS_SYSROOT="${HOME}/android/toolchain/standalone/sysroot"
fi
ANDROID_CC_NAME=${ANDROID_CC_NAME:-clang}
ANDROID_CXX_NAME=${ANDROID_CXX_NAME:-clang++}
ANDROID_CC="${ANDROID_TOOLCHAIN}-${ANDROID_CC_NAME}"
ANDROID_CXX="${ANDROID_TOOLCHAIN}-${ANDROID_CXX_NAME}"
ANDROID_LINK="${ANDROID_TOOLCHAIN}-${ANDROID_CXX_NAME}"
export AR="${ANDROID_TOOLCHAIN}-ar"
export OBJCOPY="${ANDROID_TOOLCHAIN}-objcopy"
export RANLIB="${ANDROID_TOOLCHAIN}-ranlib"
export STRIP="${ANDROID_TOOLCHAIN}-strip"
fi
# Android architectures
export ARCHS="armv6"