[Android] add an option to only build LibVLC
Thomas Guillem
git at videolan.org
Sat Feb 27 12:09:15 CET 2016
vlc-android | branch: master | Thomas Guillem <thomas at gllm.fr> | Sat Feb 27 12:05:14 2016 +0100| [86a23e8ad99f5c55a0e9fb9be42f454d08620ec7] | committer: Thomas Guillem
add an option to only build LibVLC
> https://code.videolan.org/videolan/vlc-android/commit/86a23e8ad99f5c55a0e9fb9be42f454d08620ec7
---
compile.sh | 16 +++++++++++++---
1 file changed, 13 insertions(+), 3 deletions(-)
diff --git a/compile.sh b/compile.sh
index 6699fd8..6d24686 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 #
More information about the Android
mailing list