2013-05-08 14:10:07 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
export TOOLCHAIN=$PWD/android-toolchain
|
|
|
|
mkdir -p $TOOLCHAIN
|
|
|
|
$1/build/tools/make-standalone-toolchain.sh \
|
2015-03-09 04:19:21 +01:00
|
|
|
--toolchain=arm-linux-androideabi-4.9 \
|
2013-05-08 14:10:07 +02:00
|
|
|
--arch=arm \
|
|
|
|
--install-dir=$TOOLCHAIN \
|
|
|
|
--platform=android-9
|
|
|
|
export PATH=$TOOLCHAIN/bin:$PATH
|
2015-03-09 04:19:21 +01:00
|
|
|
export AR=$TOOLCHAIN/bin/arm-linux-androideabi-ar
|
|
|
|
export CC=$TOOLCHAIN/bin/arm-linux-androideabi-gcc
|
|
|
|
export CXX=$TOOLCHAIN/bin/arm-linux-androideabi-g++
|
|
|
|
export LINK=$TOOLCHAIN/bin/arm-linux-androideabi-g++
|
2013-05-08 14:10:07 +02:00
|
|
|
|
|
|
|
./configure \
|
|
|
|
--dest-cpu=arm \
|
|
|
|
--dest-os=android
|