-
Notifications
You must be signed in to change notification settings - Fork 69
/
env
63 lines (57 loc) · 2.06 KB
/
env
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
export BASE="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
# Directories.
export ANDROID_PREFIX="${BASE}/build"
export ANDROID_TOOL_PREFIX="${BASE}/build-tools"
export ANDROID_TEST_PREFIX="${BASE}/build-vm"
# SDKs and target platforms.
export NDK_REL=android-ndk-r10d
export SDK_REL=android-sdk-r24.0.2
export NDK_REV=10d
export SDK_REV=24.0.2
export ANDROID_API_LEVEL=21
export ANDROID_PLATFORM=arm
export ANDROID_COMPILER=4.9
export ANDROID_HOST=x86_64-pc-linux-gnu
export ANDROID_AGREE_LICENSE_TERMS=n
# Testing.
export ANDROID_VM_NAME=PythonTesting
export ANDROID_EMULATOR_TESTDIR="/data/py3"
export ANDROID_EMULATOR_OPTIONS=""
#-no-window -no-skin -no-boot-anim"
# Compile flags.
export CFLAGS_EXTRA=""
export CPPFLAGS_EXTRA=""
export CXXFLAGS_EXTRA=""
export LDFLAGS_EXTRA=""
export MAKEOPTS_EXTRA=""
# Python optional modules.
# Available:
# bz2 - enable the bz2 module and the bzip2 codec (builds bzip2).
# lzma - enable the lzma module and the lzma codec (builds xz).
# ssl - enable the ssl module and SSL/TLS support for sockets (builds OpenSSL).
# readline - enable the readline module and command history/the like in the REPL (builds Readline).
# curses - enable the curses module (builds ncursesw).
# sqlite3 - enable the sqlite3 module (builds SQLite).
# gdbm - enable the dbm/gdbm modules (builds GDBM).
export PYTHON_OPTIONAL_MODULES="bz2 lzma ssl"
# Do no touch unless you know what you are doing.
case "${ANDROID_PLATFORM}" in
arm)
export ANDROID_TARGET=arm-linux-androideabi
export ANDROID_TOOLCHAIN="arm-linux-androideabi-${ANDROID_COMPILER}"
;;
mips)
export ANDROID_TARGET=mipsel-linux-android
export ANDROID_TOOLCHAIN="mipsel-linu-android-${ANDROID_COMPILER}"
;;
x86)
export ANDROID_TARGET=i686-linux-android
export ANDROID_TOOLCHAIN="x86-${ANDROID_COMPILER}"
;;
*)
echo "Unknown Android platform: ${ANDROID_PLATFORM}"
exit 1
;;
esac
export BUILD_IDENTIFIER="${NDK_REV}-${ANDROID_API_LEVEL}-${ANDROID_TOOLCHAIN}"
export TEST_IDENTIFIER="${SDK_REV}-${ANDROID_API_LEVEL}-${ANDROID_PLATFORM}"