boinc/android/ndk_common.sh

29 lines
1006 B
Bash
Raw Normal View History

2022-04-16 22:11:01 +00:00
#!/bin/sh
export NDK_VERSION=21d
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
}