Permalink
Browse files

android crosscompile script, use android-ndk-r7b but favor generic an…

…droid-ndk (sym-link)
  • Loading branch information...
1 parent b31f188 commit bf03a3c4db9550f890e7ea5b0b46962ecaa66a92 @sgothel sgothel committed Mar 6, 2012
Showing with 18 additions and 6 deletions.
  1. +18 −6 make/scripts/make.gluegen.all.android-armv7-cross.sh
@@ -15,12 +15,24 @@ echo ANDROID_SDK_HOME $ANDROID_SDK_HOME
echo NDK_ROOT $NDK_ROOT
if [ -z "$NDK_ROOT" ] ; then
- if [ -e /usr/local/android-ndk-r7 ] ; then
- NDK_ROOT=/usr/local/android-ndk-r7
- elif [ -e /opt-linux-x86/android-ndk-r7 ] ; then
- NDK_ROOT=/opt-linux-x86/android-ndk-r7
- elif [ -e /opt/android-ndk-r7 ] ; then
- NDK_ROOT=/opt/android-ndk-r7
+ #
+ # Generic android-ndk
+ #
+ if [ -e /usr/local/android-ndk ] ; then
+ NDK_ROOT=/usr/local/android-ndk
+ elif [ -e /opt-linux-x86/android-ndk ] ; then
+ NDK_ROOT=/opt-linux-x86/android-ndk
+ elif [ -e /opt/android-ndk ] ; then
+ NDK_ROOT=/opt/android-ndk
+ #
+ # Specific android-ndk-r7b
+ #
+ elif [ -e /usr/local/android-ndk-r7b ] ; then
+ NDK_ROOT=/usr/local/android-ndk-r7b
+ elif [ -e /opt-linux-x86/android-ndk-r7b ] ; then
+ NDK_ROOT=/opt-linux-x86/android-ndk-r7b
+ elif [ -e /opt/android-ndk-r7b ] ; then
+ NDK_ROOT=/opt/android-ndk-r7b
else
echo NDK_ROOT is not specified and does not exist in default locations
exit 1

0 comments on commit bf03a3c

Please sign in to comment.