From 86a23e8ad99f5c55a0e9fb9be42f454d08620ec7 Mon Sep 17 00:00:00 2001 From: Thomas Guillem Date: Sat, 27 Feb 2016 12:05:14 +0100 Subject: [PATCH] add an option to only build LibVLC --- compile.sh | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/compile.sh b/compile.sh index 6699fd848..6d24686e4 100755 --- a/compile.sh +++ b/compile.sh @@ -17,6 +17,7 @@ while [ $# -gt 0 ]; do echo "Use -s to set your keystore file and -p for the password" echo "Use -t to get an AndroidTv build" echo "Use -c to get a ChromeOS build" + echo "Use -l to build only LibVLC" exit 0 ;; a|-a) @@ -37,6 +38,10 @@ while [ $# -gt 0 ]; do PASSWORD_KEYSTORE=$2 shift ;; + -l) + BUILD_LIBVLC=1 + shift + ;; run) RUN=1 ;; @@ -194,9 +199,14 @@ else GRADLE_ABI="ARMv7" fi -TARGET="assemble${PLATFORM}${GRADLE_ABI}${BUILDTYPE}" - -PASSWORD_KEYSTORE="$PASSWORD_KEYSTORE" ./gradlew $TARGET +if [ "$BUILD_LIBVLC" = 1 ];then + ./gradlew -p libvlc assemble${BUILDTYPE} + RUN=0 + CHROME_OS=0 +else + TARGET="assemble${PLATFORM}${GRADLE_ABI}${BUILDTYPE}" + PASSWORD_KEYSTORE="$PASSWORD_KEYSTORE" ./gradlew $TARGET +fi ####### # RUN #