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
parent
0a1cd8bb97
commit
a9e63cd526
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue