export BASE="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" # Directories. export NDK_PATH=~/apps/android-dev/android-ndk-r13b export ANDROID_PREFIX="${NDK_PATH}/build" export ANDROID_TOOL_PREFIX="${NDK_PATH}/build-tools" export ANDROID_TEST_PREFIX="${NDK_PATH}/build-vm" # SDKs and target platforms. export NDK_REL=android-ndk-r13b export SDK_REL=android-sdk-r24.0.2 export NDK_REV=13b 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}"