Add default OS X NDK root

The standard NDK installed by Android Studio on OS X lives at $HOME/Library/Android/sdk/ndk-bundle. As this is a well-known location that seems unlikely to change, it makes sense to auto-detect it.
pull/150/head
Matt Lewandowsky 2016-03-24 02:23:36 -07:00
parent 0a1cd8bb97
commit a9e63cd526
1 changed files with 3 additions and 0 deletions

View File

@ -63,6 +63,9 @@ if [ -z "$ANDROID_NDK_ROOT" ]; then
if [ -z "$ANDROID_NDK_ROOT" ]; then
ANDROID_NDK_ROOT=$(find $HOME -maxdepth 1 -type d -name android-ndk-r10* 2>/dev/null | tail -1)
fi
if [ -d "$HOME/Library/Android/sdk/ndk-bundle" ]; then
ANDROID_NDK_ROOT="$HOME/Library/Android/sdk/ndk-bundle"
fi
fi
# Error checking