[Android] compile-libvlc: Build medialibrary in release mode when appropriate
Hugo Beauzée-Luyssen
git at videolan.org
Wed Sep 27 13:47:07 CEST 2017
vlc-android | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Wed Sep 27 13:47:05 2017 +0200| [cd092b1c6b70f7cc8d60e66ce79c6922107385d6] | committer: Hugo Beauzée-Luyssen
compile-libvlc: Build medialibrary in release mode when appropriate
> https://code.videolan.org/videolan/vlc-android/commit/cd092b1c6b70f7cc8d60e66ce79c6922107385d6
---
compile-libvlc.sh | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/compile-libvlc.sh b/compile-libvlc.sh
index 7e5d91013..1a3787432 100755
--- a/compile-libvlc.sh
+++ b/compile-libvlc.sh
@@ -840,11 +840,15 @@ if [ ! -d "build-android-$ANDROID_ABI/" ]; then
fi;
cd "build-android-$ANDROID_ABI/";
+if [ "$RELEASE" = 1 ]; then
+ MEDIALIBRARY_MODE=--enable-release
+fi
if [ ! -e ./config.h -o "$RELEASE" = 1 ]; then
../bootstrap
../configure \
--host=$TARGET_TUPLE \
--disable-shared \
+ ${MEDIALIBRARY_MODE} \
CFLAGS="${VLC_CFLAGS} ${EXTRA_CFLAGS}" \
CXXFLAGS="${VLC_CXXFLAGS} ${EXTRA_CFLAGS} ${EXTRA_CXXFLAGS}" \
CC="clang" \
More information about the Android
mailing list