[Android] Fix build issue with missing env variable

Ludovic Fauvet git at videolan.org
Tue Oct 30 11:03:35 CET 2012


vlc-ports/android | branch: master | Ludovic Fauvet <etix at videolan.org> | Tue Oct 30 12:00:50 2012 +0100| [7e79efdc1138cb5950cb417aa11eba19ec81a85a] | committer: Ludovic Fauvet

Fix build issue with missing env variable

ANDROID_HOME is an alias of ANDROID_SDK

> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=7e79efdc1138cb5950cb417aa11eba19ec81a85a
---

 compile.sh |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/compile.sh b/compile.sh
index f2f32a5..ace45cc 100755
--- a/compile.sh
+++ b/compile.sh
@@ -12,6 +12,9 @@ if [ -z "$ANDROID_NDK" -o -z "$ANDROID_SDK" -o -z "$ANDROID_ABI" ]; then
    echo "ANDROID_ABI should match your ABI: armeabi-v7a, armeabi or ..."
    exit 1
 fi
+
+export ANDROID_HOME=$ANDROID_SDK
+
 # try to detect NDK version
 REL=$(grep -o '^r[0-9]*.*' $ANDROID_NDK/RELEASE.TXT 2>/dev/null|cut -b2-)
 case "$REL" in



More information about the Android mailing list