[Android] compile-medialibrary: Ensure releases are using a medialib tag
Hugo Beauzée-Luyssen
git at videolan.org
Mon Feb 28 13:46:06 UTC 2022
vlc-android | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Mon Feb 28 13:58:33 2022 +0100| [d7c57764d26d590322c1d37ba493fae0047573d9] | committer: Hugo Beauzée-Luyssen
compile-medialibrary: Ensure releases are using a medialib tag
> https://code.videolan.org/videolan/vlc-android/commit/d7c57764d26d590322c1d37ba493fae0047573d9
---
buildsystem/compile-medialibrary.sh | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/buildsystem/compile-medialibrary.sh b/buildsystem/compile-medialibrary.sh
index 00640476b..77ea99dc8 100755
--- a/buildsystem/compile-medialibrary.sh
+++ b/buildsystem/compile-medialibrary.sh
@@ -136,6 +136,11 @@ fi
cd ${MEDIALIBRARY_BUILD_DIR}
+if [ "$RELEASE" = "0" ]; then
+ git describe --exact-match --tags ${MEDIALIBRARY_HASH} > /dev/null || \
+ avlc_checkfail "Release builds must use tags"
+fi
+
if [ ! -d "build-android-$ANDROID_ABI/" -o ! -f "build-android-$ANDROID_ABI/build.ninja" ]; then
PKG_CONFIG_LIBDIR="$SRC_DIR/vlc/build-android-${TARGET_TUPLE}/install/lib/pkgconfig" \
PKG_CONFIG_PATH="$SRC_DIR/medialibrary/prefix/${TARGET_TUPLE}/lib/pkgconfig:$SRC_DIR/vlc/contrib/$TARGET_TUPLE/lib/pkgconfig/" \
More information about the Android
mailing list