Download the NDK only the first time

This commit is contained in:
Benjamin Deroche 2019-10-28 16:06:21 +01:00
parent 7ee36a177a
commit 0d0899bc0d

View File

@ -14,12 +14,14 @@ else
exit 1
fi
export FILENAME=$NDK_VERSION-$HOST_PLATFORM.zip
if [ ! -d "/tmp/${NDK_VERSION}" ] ; then
export FILENAME=$NDK_VERSION-$HOST_PLATFORM.zip
(cd '/tmp' \
&& wget http://dl.google.com/android/repository/$FILENAME -O $FILENAME \
&& unzip -q $FILENAME) || exit 1
unset FILENAME
(cd '/tmp' \
&& wget http://dl.google.com/android/repository/$FILENAME -O $FILENAME \
&& unzip -q $FILENAME) || exit 1
unset FILENAME
fi
function _build_arch {
export ANDROID_NDK_ROOT="/tmp/${NDK_VERSION}"