all: add NDK r12b and set it as default

This commit is contained in:
Daniel Martí 2016-07-13 16:45:05 +01:00
parent 0f708f367c
commit 82d09560c6
9 changed files with 23 additions and 8 deletions

View file

@ -2,6 +2,7 @@ sdk_path = "/home/vagrant/android-sdk"
ndk_paths = {
'r9b': "/home/vagrant/android-ndk/r9b",
'r10e': "/home/vagrant/android-ndk/r10e",
'r12b': "/home/vagrant/android-ndk/r12b",
}
java_paths = {
'8': "/usr/lib/jvm/java-8-openjdk-i386",

View file

@ -30,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