2022-04-16 22:11:01 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2022-05-20 15:43:21 +00:00
|
|
|
export NDK_VERSION=22b
|
2022-04-16 22:11:01 +00:00
|
|
|
export NDK_ARMV6_VERSION=15c
|
|
|
|
export NDK_ROOT=$BUILD_DIR/android-ndk-r${NDK_VERSION}
|
|
|
|
export NDK_ARMV6_ROOT=$BUILD_DIR/android-ndk-r${NDK_ARMV6_VERSION}
|
|
|
|
|
|
|
|
createNDKFolder()
|
|
|
|
{
|
2022-05-13 21:24:05 +00:00
|
|
|
ndk_filename=android-ndk-r${NDK_VERSION}-linux-x86_64.zip
|
2022-04-16 22:11:01 +00:00
|
|
|
rm -rf "$BUILD_DIR/android-ndk-r${NDK_VERSION}"
|
2022-05-13 21:24:05 +00:00
|
|
|
echo Downloading $ndk_filename
|
|
|
|
wget -c --no-verbose -O /tmp/$ndk_filename https://dl.google.com/android/repository/$ndk_filename
|
|
|
|
echo Extracting $ndk_filename
|
|
|
|
unzip -qq /tmp/$ndk_filename -d $BUILD_DIR
|
|
|
|
echo Finished extracting of $ndk_filename
|
2022-04-16 22:11:01 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
createNDKARMV6Folder()
|
|
|
|
{
|
2022-05-13 21:24:05 +00:00
|
|
|
ndk_filename="android-ndk-r${NDK_ARMV6_VERSION}-linux-x86_64.zip"
|
2022-04-16 22:11:01 +00:00
|
|
|
rm -rf "$BUILD_DIR/android-ndk-r${NDK_ARMV6_VERSION}"
|
2022-05-13 21:24:05 +00:00
|
|
|
echo Downloading $ndk_filename
|
|
|
|
wget -c --no-verbose -O /tmp/$ndk_filename https://dl.google.com/android/repository/$ndk_filename
|
|
|
|
echo Extracting $ndk_filename
|
|
|
|
unzip -qq /tmp/$ndk_filename -d $BUILD_DIR
|
|
|
|
echo Finished extracting of $ndk_filename
|
2022-04-16 22:11:01 +00:00
|
|
|
}
|