andorid prj_env is sourced from other projects
authorBen Doumenc <bdoumenc@gmail.com>
Sun, 5 May 2013 15:44:32 +0000 (17:44 +0200)
committerBen Doumenc <bdoumenc@gmail.com>
Sun, 5 May 2013 15:44:32 +0000 (17:44 +0200)
android/prj_env

index ae90c8d..1906cd5 100644 (file)
@@ -1,7 +1,9 @@
 
-export PATH=$PATH:$PRJ_DIR/android-sdk-linux/tools:$PRJ_DIR/android-sdk-linux/platform-tools
-export ANDROIDSDK=$PRJ_DIR/android-sdk-linux/
-export ANDROIDNDK=$PRJ_DIR/android-ndk-r8/
+ANDROID_ROOT=$(dirname $(readlink -f $BASH_SOURCE))
+
+export PATH=$PATH:$ANDROID_ROOT/android-sdk-linux/tools:$ANDROID_ROOT/android-sdk-linux/platform-tools
+export ANDROIDSDK=$ANDROID_ROOT/android-sdk-linux/
+export ANDROIDNDK=$ANDROID_ROOT/android-ndk-r8/
 export ANDROIDNDKVER=r8
 export ANDROIDAPI=9