1# Default values used by several dev-scripts. 2# 3 4# Current list of platform levels we support 5# 6# Note: levels 6 and 7 are omitted since they have the same native 7# APIs as level 5. Same for levels 10, 11 and 12 8# 9API_LEVELS="3 4 5 8 9 14" 10 11# Default ABIs for the target prebuilt binaries. 12PREBUILT_ABIS="armeabi armeabi-v7a x86" 13 14# Location of the STLport sources, relative to the NDK root directory 15STLPORT_SUBDIR=sources/cxx-stl/stlport 16 17# Location of the GAbi++ sources, relative to the NDK root directory 18GABIXX_SUBDIR=sources/cxx-stl/gabi++ 19 20# Location of the GNU libstdc++ headers and libraries, relative to the NDK 21# root directory. 22GNUSTL_SUBDIR=sources/cxx-stl/gnu-libstdc++ 23 24# The date to use when downloading toolchain sources from android.git.kernel.org 25# Leave it empty for tip of tree. 26TOOLCHAIN_GIT_DATE=2011-02-23 27 28DEFAULT_GCC_VERSION=4.4.3 29DEFAULT_BINUTILS_VERSION=2.20.1 30DEFAULT_GDB_VERSION=6.6 31DEFAULT_MPFR_VERSION=2.4.1 32DEFAULT_GMP_VERSION=4.2.4 33 34# Default platform to build target binaries against. 35DEFAULT_PLATFORM=android-9 36 37# The list of default CPU architectures we support 38DEFAULT_ARCHS="arm x86" 39 40# Default toolchain names and prefix 41# 42# This is used by get_default_toolchain_name_for_arch and get_default_toolchain_prefix_for_arch 43# defined below 44DEFAULT_ARCH_TOOLCHAIN_arm=arm-linux-androideabi-$DEFAULT_GCC_VERSION 45DEFAULT_ARCH_TOOLCHAIN_PREFIX_arm=arm-linux-androideabi 46 47DEFAULT_ARCH_TOOLCHAIN_x86=x86-$DEFAULT_GCC_VERSION 48DEFAULT_ARCH_TOOLCHAIN_PREFIX_x86=i686-android-linux 49 50# The list of default host NDK systems we support 51DEFAULT_SYSTEMS="linux-x86 windows darwin-x86" 52 53# Return default NDK ABI for a given architecture name 54# $1: Architecture name 55# Out: ABI name 56get_default_abi_for_arch () 57{ 58 local RET 59 case $1 in 60 arm) 61 RET="armeabi" 62 ;; 63 x86) 64 RET="x86" 65 ;; 66 *) 67 2> echo "ERROR: Unsupported architecture name: $1, use one of: arm x86" 68 exit 1 69 ;; 70 esac 71 echo "$RET" 72} 73 74 75# Retrieve the list of default ABIs supported by a given architecture 76# $1: Architecture name 77# Out: space-separated list of ABI names 78get_default_abis_for_arch () 79{ 80 local RET 81 case $1 in 82 arm) 83 RET="armeabi armeabi-v7a" 84 ;; 85 x86) 86 RET="x86" 87 ;; 88 *) 89 2> echo "ERROR: Unsupported architecture name: $1, use one of: arm x86" 90 exit 1 91 ;; 92 esac 93 echo "$RET" 94} 95 96 97# Return the default name for a given architecture 98# $1: Architecture name 99# Out: default arch-specific toolchain name (e.g. arm-linux-androideabi-$GCC_VERSION) 100# Return empty for unknown arch 101get_default_toolchain_name_for_arch () 102{ 103 eval echo "\$DEFAULT_ARCH_TOOLCHAIN_$1" 104} 105 106# Return the default toolchain program prefix for a given architecture 107# $1: Architecture name 108# Out: default arch-specific toolchain prefix (e.g. arm-linux-androideabi) 109# Return empty for unknown arch 110get_default_toolchain_prefix_for_arch () 111{ 112 eval echo "\$DEFAULT_ARCH_TOOLCHAIN_PREFIX_$1" 113} 114 115