Last active
September 3, 2022 08:23
-
-
Save roscopecoltran/43861414fbf341adac3b6fa05e7fad08 to your computer and use it in GitHub Desktop.
Download Android NDK Tools / Direct Links
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# current workstation architecture (values: MACOSX, MACOSX32, MACOSX64, LINUX, LINUX32, LINUX64, WIN32, WIN64) | |
WORKSTATION_ACTIVE_ARCH="MACOSX" | |
# android ndk (revision version, workstation arch, install prefix path) | |
ANDROID_NDK_VERSION="r10e" | |
ANDROID_NDK_PLATFORM="darwin" | |
ANDROID_NDK_PLATFORM_ARCH="x86_64" | |
# possible value: (for linux: /home/username, for darwin: /Users/UserName, for win: dude I have not used windows during at least 10 years) | |
# nb. ~ = alias /Users/UserName on Darwin | |
ANDROID_NDKS_PREFIX_PATH="~" | |
# download specific revision function | |
function download_android_ndk_tarball | |
{ | |
ANDROID_NDK_TARGET_VERSION=$1 | |
ANDROID_NDK_TARGET_PLATFORM=$2 | |
ANDROID_NDK_TARGET_PLATFORM_ARCH=$3 | |
DESTINATION_PREFIX_PATH=$4 | |
# eg. wget -nc -d https://dl.google.com/android/repository/android-ndk-r14-darwin-x86_64.zip | |
echo "wget -nc -d ${DESTINATION_PREFIX_PATH} https://dl.google.com/android/repository/android-ndk-${ANDROID_NDK_TARGET_VERSION}-${ANDROID_NDK_TARGET_PLATFORM}-${ANDROID_NDK_TARGET_PLATFORM_ARCH}.zip" | |
echo "export ANDROID_NDK_${ANDROID_NDK_VERSION}=\"$ANDROID_NDKS_PREFIX_PATH/android-ndk-${ANDROID_NDK_VERSION}\"" | |
# echo "export ANDROID_NDK_${ANDROID_NDK_VERSION}=\"$ANDROID_NDKS_PREFIX_PATH/android-ndk-${ANDROID_NDK_VERSION}\"" >> ~/.bash_profile | |
} | |
download_android_ndk_tarball ${ANDROID_NDK_VERSION} ${ANDROID_NDK_PLATFORM} ${ANDROID_NDKS_PREFIX_PATH} | |
# alias dl_latest_ndk=download_tarball latest | |
# all available direct links exported to env vars | |
## ndk_r14 (March 2017) | |
ANDROID_NDK_r14_WIN32="https://dl.google.com/android/repository/android-ndk-r14-windows-x86.zip" | |
ANDROID_NDK_r14_WIN64="https://dl.google.com/android/repository/android-ndk-r14-windows-x86_64.zip" | |
ANDROID_NDK_r14_MACOSX="https://dl.google.com/android/repository/android-ndk-r14-darwin-x86_64.zip" | |
ANDROID_NDK_r14_LINUX="https://dl.google.com/android/repository/android-ndk-r14-linux-x86_64.zip" | |
## ndk_r13b (Oct 2016) | |
ANDROID_NDK_r13b_WIN32="https://dl.google.com/android/repository/android-ndk-r13b-windows-x86.zip" | |
ANDROID_NDK_r13b_WIN64="https://dl.google.com/android/repository/android-ndk-r13b-windows-x86_64.zip" | |
ANDROID_NDK_r13b_MACOSX="https://dl.google.com/android/repository/android-ndk-r13b-darwin-x86_64.zip" | |
ANDROID_NDK_r13b_LINUX="https://dl.google.com/android/repository/android-ndk-r13b-linux-x86_64.zip" | |
## ndk_r13 (Sept 2016) | |
ANDROID_NDK_r13_WIN32="https://dl.google.com/android/repository/android-ndk-r13-windows-x86.zip" | |
ANDROID_NDK_r13_WIN64="https://dl.google.com/android/repository/android-ndk-r13-windows-x86_64.zip" | |
ANDROID_NDK_r13_MACOSX="https://dl.google.com/android/repository/android-ndk-r13-darwin-x86_64.zip" | |
ANDROID_NDK_r13_LINUX="https://dl.google.com/android/repository/android-ndk-r13-linux-x86_64.zip" | |
## ndk_r12 (June 2016) | |
ANDROID_NDK_r12_WIN32="http://dl.google.com/android/repository/android-ndk-r12b-windows-x86.zip" | |
ANDROID_NDK_r12_WIN64="http://dl.google.com/android/repository/android-ndk-r12b-windows-x86_64.zip" | |
ANDROID_NDK_r12_MACOSX64="http://dl.google.com/android/repository/android-ndk-r12b-darwin-x86_64.zip" | |
ANDROID_NDK_r12_LINUX64="http://dl.google.com/android/repository/android-ndk-r12b-linux-x86_64.zip" | |
## ndk_r11c (March 2016) | |
ANDROID_NDK_r11c_WIN32="http://dl.google.com/android/repository/android-ndk-r11c-windows-x86.zip" | |
ANDROID_NDK_r11c_WIN64="http://dl.google.com/android/repository/android-ndk-r11c-windows-x86_64.zip" | |
ANDROID_NDK_r11c_MACOSX64="http://dl.google.com/android/repository/android-ndk-r11c-darwin-x86_64.zip" | |
ANDROID_NDK_r11c_LINUX64="http://dl.google.com/android/repository/android-ndk-r11c-linux-x86_64.zip" | |
## ndk_r11b (March 2016) | |
ANDROID_NDK_r11b_WIN32="http://dl.google.com/android/repository/android-ndk-r11b-windows-x86.zip" | |
ANDROID_NDK_r11b_WIN64="http://dl.google.com/android/repository/android-ndk-r11b-windows-x86_64.zip" | |
ANDROID_NDK_r11b_MACOSX64="http://dl.google.com/android/repository/android-ndk-r11b-darwin-x86_64.zip" | |
ANDROID_NDK_r11b_LINUX64="http://dl.google.com/android/repository/android-ndk-r11b-linux-x86_64.zip" | |
## ndk_r11 (March 2016) | |
ANDROID_NDK_r11_WIN32="http://dl.google.com/android/repository/android-ndk-r11-windows-x86.zip" | |
ANDROID_NDK_r11_WIN64="http://dl.google.com/android/repository/android-ndk-r11-windows-x86_64.zip" | |
ANDROID_NDK_r11_MACOSX64="http://dl.google.com/android/repository/android-ndk-r11-darwin-x86_64.zip" | |
ANDROID_NDK_r11_LINUX64="http://dl.google.com/android/repository/android-ndk-r11-linux-x86_64.zip" | |
## ndk_r10e (Jan 2015) | |
ANDROID_NDK_r10e_WIN32="http://dl.google.com/android/ndk/android-ndk-r10e-windows-x86.exe | |
ANDROID_NDK_r10e_WIN64="http://dl.google.com/android/ndk/android-ndk-r10e-windows-x86_64.exe | |
ANDROID_NDK_r10e_MACOSX64="http://dl.google.com/android/ndk/android-ndk-r10e-darwin-x86_64.bin | |
ANDROID_NDK_r10e_MACOSX32="http://dl.google.com/android/ndk/android-ndk-r10e-darwin-x86.bin | |
ANDROID_NDK_r10e_LINUX32="http://dl.google.com/android/ndk/android-ndk-r10e-linux-x86.bin | |
ANDROID_NDK_r10e_LINUX64="http://dl.google.com/android/ndk/android-ndk-r10e-linux-x86_64.bin | |
## ndk_r10d (December 2014) | |
ANDROID_NDK_r10d_WIN32="http://dl.google.com/android/ndk/android-ndk-r10d-windows-x86.exe | |
ANDROID_NDK_r10d_WIN64="http://dl.google.com/android/ndk/android-ndk-r10d-windows-x86_64.exe | |
ANDROID_NDK_r10d_MACOSX64="http://dl.google.com/android/ndk/android-ndk-r10d-darwin-x86_64.bin | |
ANDROID_NDK_r10d_MACOSX32="http://dl.google.com/android/ndk/android-ndk-r10d-darwin-x86.bin | |
ANDROID_NDK_r10d_LINUX32="http://dl.google.com/android/ndk/android-ndk-r10d-linux-x86.bin | |
ANDROID_NDK_r10d_LINUX64="http://dl.google.com/android/ndk/android-ndk-r10d-linux-x86_64.bin | |
## ndk_r10c (October 2014) | |
ANDROID_NDK_r10c_WIN32="http://dl.google.com/android/ndk/android-ndk-r10c-windows-x86.exe | |
ANDROID_NDK_r10c_WIN64="http://dl.google.com/android/ndk/android-ndk-r10c-windows-x86_64.exe | |
ANDROID_NDK_r10c_MACOSX32="http://dl.google.com/android/ndk/android-ndk-r10c-darwin-x86.bin | |
ANDROID_NDK_r10c_MACOSX64="http://dl.google.com/android/ndk/android-ndk-r10c-darwin-x86_64.bin | |
ANDROID_NDK_r10c_LINUX32="http://dl.google.com/android/ndk/android-ndk-r10c-linux-x86.bin | |
ANDROID_NDK_r10c_LINUX64="http://dl.google.com/android/ndk/android-ndk-r10c-linux-x86_64.bin | |
## ndk_r10b (September 2014) | |
ANDROID_NDK_r10b_WIN32="http://dl.google.com/android/ndk/android-ndk32-r10b-windows-x86.zip" | |
ANDROID_NDK_r10b_WIN64="http://dl.google.com/android/ndk/android-ndk32-r10b-windows-x86_64.zip" | |
ANDROID_NDK_r10b_MACOSX32="http://dl.google.com/android/ndk/android-ndk32-r10b-darwin-x86.tar.bz2 | |
ANDROID_NDK_r10b_MACOSX64="http://dl.google.com/android/ndk/android-ndk32-r10b-darwin-x86_64.tar.bz2 | |
ANDROID_NDK_r10b_LINUX32="http://dl.google.com/android/ndk/android-ndk32-r10b-linux-x86.tar.bz2 | |
ANDROID_NDK_r10b_LINUX64="http://dl.google.com/android/ndk/android-ndk32-r10b-linux-x86_64.tar.bz2 | |
## ndk_r10 (July 2014) | |
ANDROID_NDK_r10_WIN32="http://dl.google.com/android/ndk/android-ndk32-r10-windows-x86.zip" | |
ANDROID_NDK_r10_WIN64="http://dl.google.com/android/ndk/android-ndk32-r10-windows-x86_64zip | |
ANDROID_NDK_r10_MACOSX32="http://dl.google.com/android/ndk/android-ndk32-r10-darwin-x86.tar.bz2 | |
ANDROID_NDK_r10_MACOSX64="http://dl.google.com/android/ndk/android-ndk32-r10-darwin-x86_64.tar.bz2 | |
ANDROID_NDK_r10_LINUX32="http://dl.google.com/android/ndk/android-ndk32-r10-linux-x86.tar.bz2 | |
ANDROID_NDK_r10_LINUX64="http://dl.google.com/android/ndk/android-ndk32-r10-linux-x86_64.tar.bz2 | |
## ndk_r9d (March 2014) | |
ANDROID_NDK_r9d_WIN32="http://dl.google.com/android/ndk/android-ndk-r9d-windows-x86.zip" | |
ANDROID_NDK_r9d_WIN64="http://dl.google.com/android/ndk/android-ndk-r9d-windows-x86_64.zip" | |
ANDROID_NDK_r9d_MACOSX32="http://dl.google.com/android/ndk/android-ndk-r9d-darwin-x86.tar.bz2 | |
ANDROID_NDK_r9d_MACOSX64="http://dl.google.com/android/ndk/android-ndk-r9d-darwin-x86_64.tar.bz2 | |
ANDROID_NDK_r9d_LINUX32="http://dl.google.com/android/ndk/android-ndk-r9d-linux-x86.tar.bz2 | |
ANDROID_NDK_r9d_LINUX64="http://dl.google.com/android/ndk/android-ndk-r9d-linux-x86_64.tar.bz2 | |
## ndk_r9c(December 2013) | |
ANDROID_NDK__WIN32="http://dl.google.com/android/ndk/android-ndk-r9c-windows-x86.zip" | |
ANDROID_NDK__WIN64="http://dl.google.com/android/ndk/android-ndk-r9c-windows-x86_64.zip" | |
ANDROID_NDK__MACOSX32="http://dl.google.com/android/ndk/android-ndk-r9c-darwin-x86.tar.bz2 | |
ANDROID_NDK__MACOSX64="http://dl.google.com/android/ndk/android-ndk-r9c-darwin-x86_64.tar.bz2 | |
ANDROID_NDK__LINUX32="http://dl.google.com/android/ndk/android-ndk-r9c-linux-x86.tar.bz2 | |
ANDROID_NDK__LINUX64="http://dl.google.com/android/ndk/android-ndk-r9c-linux-x86_64.tar.bz2 | |
## ndk_r9b (October 2013) | |
ANDROID_NDK_r9b_WIN32="http://dl.google.com/android/ndk/android-ndk-r9b-windows-x86.zip" | |
ANDROID_NDK_r9b_WIN64="http://dl.google.com/android/ndk/android-ndk-r9b-windows-x86_64.zip" | |
ANDROID_NDK_r9b_MACOSX32="http://dl.google.com/android/ndk/android-ndk-r9b-darwin-x86.tar.bz2 | |
ANDROID_NDK_r9b_MACOSX64="http://dl.google.com/android/ndk/android-ndk-r9b-darwin-x86_64.tar.bz2 | |
ANDROID_NDK_r9b_LINUX32="http://dl.google.com/android/ndk/android-ndk-r9b-linux-x86.tar.bz2 | |
ANDROID_NDK_r9b_LINUX64="http://dl.google.com/android/ndk/android-ndk-r9b-linux-x86_64.tar.bz2 | |
## ndk_r9 (July 2013) | |
ANDROID_NDK_r9_WIN32="http://dl.google.com/android/ndk/android-ndk-r9-windows-x86.zip" | |
ANDROID_NDK_r9_WIN64="http://dl.google.com/android/ndk/android-ndk-r9-windows-x86_64.zip" | |
ANDROID_NDK_r9_MACOSX32="http://dl.google.com/android/ndk/android-ndk-r9-darwin-x86.tar.bz2 | |
ANDROID_NDK_r9_MACOSX64="http://dl.google.com/android/ndk/android-ndk-r9-darwin-x86_64.tar.bz2 | |
ANDROID_NDK_r9_LINUX32="http://dl.google.com/android/ndk/android-ndk-r9-linux-x86.tar.bz2 | |
ANDROID_NDK_r9_LINUX64="http://dl.google.com/android/ndk/android-ndk-r9-linux-x86_64.tar.bz2 | |
## ndk_r8e (March 2013) | |
ANDROID_NDK_r8e_WIN32="http://dl.google.com/android/ndk/android-ndk-r8e-windows-x86.zip" | |
ANDROID_NDK_r8e_WIN64="http://dl.google.com/android/ndk/android-ndk-r8e-windows-x86_64.zip" | |
ANDROID_NDK_r8e_MACOSX32="http://dl.google.com/android/ndk/android-ndk-r8e-darwin-x86.tar.bz2 | |
ANDROID_NDK_r8e_MACOSX64="http://dl.google.com/android/ndk/android-ndk-r8e-darwin-x86_64.tar.bz2 | |
ANDROID_NDK_r8e_LINUX32="http://dl.google.com/android/ndk/android-ndk-r8e-linux-x86.tar.bz2 | |
ANDROID_NDK_r8e_LINUX64="http://dl.google.com/android/ndk/android-ndk-r8e-linux-x86_64.tar.bz2 | |
Note : | |
NDK r8e is the first NDK with 32bit and 64bit releases. The prior ones were all 32bit and didn't have any suffix, so r8b would be: | |
## ndk_r8d (December 2012) | |
ANDROID_NDK_r8d_WIN32="https://dl.google.com/android/ndk/android-ndk-r8d-windows.zip" | |
ANDROID_NDK_r8d_MACOSX32="http://dl.google.com/android/ndk/android-ndk-r8d-darwin-x86.tar.bz2 | |
ANDROID_NDK_r8d_LINUX32="http://dl.google.com/android/ndk/android-ndk-r8d-linux-x86.tar.bz2 | |
## ndk_r8C (November 2012) | |
ANDROID_NDK_r8C_WIN32="https://dl.google.com/android/ndk/android-ndk-r8C-windows.zip" | |
ANDROID_NDK_r8C_MACOSX32="http://dl.google.com/android/ndk/android-ndk-r8C-darwin-x86.tar.bz2 | |
ANDROID_NDK_r8C_LINUX32="http://dl.google.com/android/ndk/android-ndk-r8C-linux-x86.tar.bz2 | |
## ndk_r8b (July 2012) | |
ANDROID_NDK_r8b_WIN32="https://dl.google.com/android/ndk/android-ndk-r8b-windows.zip" | |
ANDROID_NDK_r8b_MACOSX32="http://dl.google.com/android/ndk/android-ndk-r8b-darwin-x86.tar.bz2 | |
ANDROID_NDK_r8b_LINUX32="http://dl.google.com/android/ndk/android-ndk-r8b-linux-x86.tar.bz2 | |
## ndk_r8 (May 2012) | |
ANDROID_NDK_r8_WIN32="https://dl.google.com/android/ndk/android-ndk-r8-windows.zip" | |
ANDROID_NDK_r8_MACOSX32="http://dl.google.com/android/ndk/android-ndk-r8-darwin-x86.tar.bz2 | |
ANDROID_NDK_r8_LINUX32="http://dl.google.com/android/ndk/android-ndk-r8-linux-x86.tar.bz2 | |
## ndk_r7c (April 2012) | |
ANDROID_NDK_r7c_WIN32="https://dl.google.com/android/ndk/android-ndk-r7c-windows.zip" | |
ANDROID_NDK_r7c_MACOSX32="http://dl.google.com/android/ndk/android-ndk-r7c-darwin-x86.tar.bz2 | |
ANDROID_NDK_r7c_LINUX32="http://dl.google.com/android/ndk/android-ndk-r7c-linux-x86.tar.bz2 | |
## ndk_r7b (February 2012) | |
ANDROID_NDK_r7b_WIN32="https://dl.google.com/android/ndk/android-ndk-r7b-windows.zip" | |
ANDROID_NDK_r7b_MACOSX32="http://dl.google.com/android/ndk/android-ndk-r7b-darwin-x86.tar.bz2 | |
ANDROID_NDK_r7b_LINUX32="http://dl.google.com/android/ndk/android-ndk-r7b-linux-x86.tar.bz2 | |
## ndk_r7 (November 2011) | |
ANDROID_NDK_r7_WIN32="https://dl.google.com/android/ndk/android-ndk-r7-windows.zip" | |
ANDROID_NDK_r7_MACOSX32="http://dl.google.com/android/ndk/android-ndk-r7-darwin-x86.tar.bz2 | |
ANDROID_NDK_r7_LINUX32="http://dl.google.com/android/ndk/android-ndk-r7-linux-x86.tar.bz2 | |
## ndk_r6b (August 2011) | |
ANDROID_NDK_r6b_WIN32="https://dl.google.com/android/ndk/android-ndk-r6b-windows.zip" | |
ANDROID_NDK_r6b_MACOSX32="http://dl.google.com/android/ndk/android-ndk-r6b-darwin-x86.tar.bz2 | |
ANDROID_NDK_r6b_LINUX32="http://dl.google.com/android/ndk/android-ndk-r6b-linux-x86.tar.bz2 | |
## ndk_r6 (July 2011) | |
ANDROID_NDK_r6_WIN32="https://dl.google.com/android/ndk/android-ndk-r6-windows.zip" | |
ANDROID_NDK_r6_MACOSX32="http://dl.google.com/android/ndk/android-ndk-r6-darwin-x86.tar.bz2 | |
ANDROID_NDK_r6_LINUX32="http://dl.google.com/android/ndk/android-ndk-r6-linux-x86.tar.bz2 | |
## ndk_r5c (June 2011) | |
ANDROID_NDK_r5c_WIN32="https://dl.google.com/android/ndk/android-ndk-r5c-windows.zip" | |
ANDROID_NDK_r5c_MACOSX32="http://dl.google.com/android/ndk/android-ndk-r5c-darwin-x86.tar.bz2 | |
ANDROID_NDK_r5c_LINUX32="http://dl.google.com/android/ndk/android-ndk-r5c-linux-x86.tar.bz2 | |
## ndk_r5b (January 2011) | |
ANDROID_NDK_r5b_WIN32="https://dl.google.com/android/ndk/android-ndk-r5b-windows.zip" | |
ANDROID_NDK_r5b_MACOSX32="http://dl.google.com/android/ndk/android-ndk-r5b-darwin-x86.tar.bz2 | |
ANDROID_NDK_r5b_LINUX32="http://dl.google.com/android/ndk/android-ndk-r5b-linux-x86.tar.bz2 | |
## ndk_r5 (December 2010) | |
ANDROID_NDK_r5_WIN32="https://dl.google.com/android/ndk/android-ndk-r5-windows.zip" | |
ANDROID_NDK_r5_MACOSX32="http://dl.google.com/android/ndk/android-ndk-r5-darwin-x86.tar.bz2 | |
ANDROID_NDK_r5_LINUX32="http://dl.google.com/android/ndk/android-ndk-r5-linux-x86.tar.bz2 | |
## ndk_r4b (June 2010) | |
ANDROID_NDK_r4b_WIN32="https://dl.google.com/android/ndk/android-ndk-r4b-windows.zip" | |
ANDROID_NDK_r4b_MACOSX32="http://dl.google.com/android/ndk/android-ndk-r4b-darwin-x86.zip" | |
ANDROID_NDK_r4b_LINUX32="http://dl.google.com/android/ndk/android-ndk-r4b-linux-x86.zip" | |
## ndk_r4 (may 2010) | |
ANDROID_NDK_r4_WIN32="https://dl.google.com/android/ndk/android-ndk-r4-windows.zip" | |
ANDROID_NDK_r4_MACOSX32="http://dl.google.com/android/ndk/android-ndk-r4-darwin-x86.zip" | |
ANDROID_NDK_r4_LINUX32="http://dl.google.com/android/ndk/android-ndk-r4-linux-x86.zip" | |
## ndk_r3 (March 2010) | |
ANDROID_NDK_r3_WIN32="https://dl.google.com/android/ndk/android-ndk-r3-windows.zip" | |
ANDROID_NDK_r3_MACOSX32="http://dl.google.com/android/ndk/android-ndk-r3-darwin-x86.zip" | |
ANDROID_NDK_r3_LINUX32="http://dl.google.com/android/ndk/android-ndk-r3-linux-x86.zip" | |
## nds_r2 (September 2009) | |
# No Ndk Download link found . If you have link please share with other developers | |
## nds_r1 (June 2009) | |
# No Ndk Download link found. If you have link please share with other developers. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment