diff options
Diffstat (limited to 'third-party/libuv/android-configure')
-rwxr-xr-x | third-party/libuv/android-configure | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/third-party/libuv/android-configure b/third-party/libuv/android-configure new file mode 100755 index 0000000000..56625761fd --- /dev/null +++ b/third-party/libuv/android-configure @@ -0,0 +1,20 @@ +#!/bin/bash + +export TOOLCHAIN=$PWD/android-toolchain +mkdir -p $TOOLCHAIN +$1/build/tools/make-standalone-toolchain.sh \ + --toolchain=arm-linux-androideabi-4.7 \ + --arch=arm \ + --install-dir=$TOOLCHAIN \ + --platform=android-9 +export PATH=$TOOLCHAIN/bin:$PATH +export AR=arm-linux-androideabi-ar +export CC=arm-linux-androideabi-gcc +export CXX=arm-linux-androideabi-g++ +export LINK=arm-linux-androideabi-g++ +export PLATFORM=android + +if [ $2 -a $2 == 'gyp' ] + then + ./gyp_uv.py -Dtarget_arch=arm -DOS=android +fi |