Merge remote-tracking branch 'upstream/v0.10'
[platform/upstream/nodejs.git] / android-configure
1 #!/bin/bash
2
3 export TOOLCHAIN=$PWD/android-toolchain
4 mkdir -p $TOOLCHAIN
5 $1/build/tools/make-standalone-toolchain.sh \
6     --toolchain=arm-linux-androideabi-4.7 \
7     --arch=arm \
8     --install-dir=$TOOLCHAIN \
9     --platform=android-9
10 export PATH=$TOOLCHAIN/bin:$PATH
11 export AR=arm-linux-androideabi-ar
12 export CC=arm-linux-androideabi-gcc
13 export CXX=arm-linux-androideabi-g++
14 export LINK=arm-linux-androideabi-g++
15
16 ./configure \
17     --without-snapshot \
18     --dest-cpu=arm \
19     --dest-os=android