summaryrefslogtreecommitdiff
path: root/deps/cares/android-configure
diff options
context:
space:
mode:
Diffstat (limited to 'deps/cares/android-configure')
-rwxr-xr-xdeps/cares/android-configure21
1 files changed, 21 insertions, 0 deletions
diff --git a/deps/cares/android-configure b/deps/cares/android-configure
new file mode 100755
index 0000000000..5299e5c718
--- /dev/null
+++ b/deps/cares/android-configure
@@ -0,0 +1,21 @@
+#!/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
+export OS=android
+
+if [ $2 -a $2 == 'gyp' ]
+ then
+ ./gyp_cares -DOS=android -Dtarget_arch=arm
+fi