[Android] Allow a build TV

Jean-Baptiste Kempf git at videolan.org
Fri Feb 6 17:42:54 CET 2015


vlc-ports/android | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Fri Feb  6 17:42:32 2015 +0100| [df0ae30f454124bf9e16bb1916dd8f14112b460d] | committer: Jean-Baptiste Kempf

Allow a build TV

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

 compile.sh |   17 +++++++++++++++--
 1 file changed, 15 insertions(+), 2 deletions(-)

diff --git a/compile.sh b/compile.sh
index ef954f5..e9b34c8 100755
--- a/compile.sh
+++ b/compile.sh
@@ -23,6 +23,9 @@ while [ $# -gt 0 ]; do
             ANDROID_ABI=$2
             shift
             ;;
+        -t)
+            ANDROID_TV=1
+            ;;
         -r|release|--release)
             RELEASE=1
             ;;
@@ -152,11 +155,21 @@ fi
 ##################
 
 if [ "$RELEASE" = 1 ]; then
-    ./gradlew assembleVanillaRelease
+    if [ "$ANDROID_TV" = 1 ]; then
+        TARGET="assembleTvRelease"
+    else
+        TARGET="assembleVanillaRelease"
+    fi
 else
-    ./gradlew assembleVanillaDebug
+    if [ "$ANDROID_TV" = 1 ]; then
+        TARGET="assembleTvDebug"
+    else
+        TARGET="assembleVanillaDebug"
+    fi
 fi
 
+./gradlew $TARGET
+
 #######
 # RUN #
 #######



More information about the Android mailing list