chiark / gitweb /
all: add NDK r12b and set it as default
[fdroidserver.git] / buildserver / provision-android-ndk
index 9d4a54c0ba2fb32ee75ccb577f3f9e5e74598cdc..030b01594d47035bc989e81366541480c3d15d34 100644 (file)
@@ -1,6 +1,7 @@
 #!/bin/bash
 #
 
+echo $0
 set -e
 
 NDK_BASE=$1
@@ -29,5 +30,15 @@ if [ ! -e $NDK_BASE/r10e ]; then
     mv android-ndk-r10e r10e
 fi
 
+if [ ! -e $NDK_BASE/r12b ]; then
+    if [ `uname -m` == 'x86_64' ] ; then
+       SUFFIX='_64'
+    else
+       SUFFIX=''
+    fi
+    7zr x /vagrant/cache/android-ndk-r12b-linux-x86$SUFFIX.bin > /dev/null
+    mv android-ndk-r12b r12b
+fi
+
 chmod -R a+rX $NDK_BASE/
 find $NDK_BASE/ -type f -executable -print0 | xargs -0 chmod a+x