summaryrefslogtreecommitdiffstats
path: root/make/scripts/make.gluegen.all.android-armv7-cross.sh
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2011-07-28 01:32:30 +0200
committerSven Gothel <[email protected]>2011-07-28 01:32:30 +0200
commitb7f833cf07c80a137b54d250f035c9dc56e20988 (patch)
tree7fa74f1b8bac597f50ed736a8ed91355a14b29f5 /make/scripts/make.gluegen.all.android-armv7-cross.sh
parentac4d6a49c9cf615386f20ddced59c33d44dd8c32 (diff)
parent6b3d6b97bdee99d1057be074879ec80d639101e8 (diff)
Merge remote-tracking branch 'rsantina/wip_mobile' into wip_mobile
Diffstat (limited to 'make/scripts/make.gluegen.all.android-armv7-cross.sh')
-rwxr-xr-xmake/scripts/make.gluegen.all.android-armv7-cross.sh22
1 files changed, 20 insertions, 2 deletions
diff --git a/make/scripts/make.gluegen.all.android-armv7-cross.sh b/make/scripts/make.gluegen.all.android-armv7-cross.sh
index a19a092..db69527 100755
--- a/make/scripts/make.gluegen.all.android-armv7-cross.sh
+++ b/make/scripts/make.gluegen.all.android-armv7-cross.sh
@@ -9,14 +9,32 @@ export TARGET_IP=beagle01
export TARGET_ROOT=/projects
export TARGET_ANT_HOME=/usr/share/ant
+export ANDROID_SDK_VERSION=9
+
+if [ $# -eq "0" ] ; then
+ echo "Usage: `basename $0` <ANDROID_SDK_HOME> <NDK_ROOT>"
+ echo "Default: ANDROID_SDK_HOME=/usr/local/android-sdk-linux_x86"
+ echo "Default: NDK_ROOT=/usr/local/android-ndk-r6"
+fi
+
+if [ $# -ge "2" ] ; then
+ANDROID_SDK_HOME=$1
+shift
+NDK_ROOT=$1
+shift
+fi
+
+echo $ANDROID_SDK_HOME
+echo $NDK_ROOT
+
if [ -z "$NDK_ROOT" ] ; then
- NDK_ROOT=/opt-linux-x86/android-ndk-r6
+ NDK_ROOT=/usr/local/android-ndk-r6
fi
export NDK_ROOT
NDK_TOOLCHAIN=$NDK_ROOT/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/arm-linux-androideabi
if [ -z "$ANDROID_SDK_HOME" ] ; then
- ANDROID_SDK_HOME=/opt-linux-x86/android-sdk-linux_x86
+ ANDROID_SDK_HOME=/usr/local/android-sdk-linux_x86
fi
export ANDROID_SDK_HOME