summaryrefslogtreecommitdiff
path: root/deps/uv/android-configure
diff options
context:
space:
mode:
Diffstat (limited to 'deps/uv/android-configure')
-rwxr-xr-xdeps/uv/android-configure5
1 files changed, 4 insertions, 1 deletions
diff --git a/deps/uv/android-configure b/deps/uv/android-configure
index 7ffc035c1b..b5c11cd40c 100755
--- a/deps/uv/android-configure
+++ b/deps/uv/android-configure
@@ -2,17 +2,20 @@
export TOOLCHAIN=$PWD/android-toolchain
mkdir -p $TOOLCHAIN
+API=${3:-24}
$1/build/tools/make-standalone-toolchain.sh \
--toolchain=arm-linux-androideabi-4.9 \
--arch=arm \
--install-dir=$TOOLCHAIN \
- --platform=android-21
+ --platform=android-$API \
+ --force
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 CFLAGS="-D__ANDROID_API__=$API"
if [[ $2 == 'gyp' ]]
then