[Android] Set medialibrary to tested HASH on release builds

Geoffrey Métais git at videolan.org
Thu Nov 2 11:09:01 CET 2017


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue Oct 31 15:38:18 2017 +0100| [b1c4f2141a19388547c7041df02d9ccd9cb9a4e5] | committer: Geoffrey Métais

Set medialibrary to tested HASH on release builds

> https://code.videolan.org/videolan/vlc-android/commit/b1c4f2141a19388547c7041df02d9ccd9cb9a4e5
---

 compile-libvlc.sh | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/compile-libvlc.sh b/compile-libvlc.sh
index 7cbd6749e..790bfd605 100755
--- a/compile-libvlc.sh
+++ b/compile-libvlc.sh
@@ -768,9 +768,8 @@ if [ ! -d "${MEDIALIBRARY_MODULE_DIR}/medialibrary" ]; then
     echo -e "\e[1m\e[32mmedialibrary source not found, cloning\e[0m"
     git clone http://code.videolan.org/videolan/medialibrary.git "${SRC_DIR}/medialibrary/medialibrary"
     checkfail "medialibrary source: git clone failed"
-    cd ${SRC_DIR}/medialibrary/medialibrary
+    cd ${MEDIALIBRARY_MODULE_DIR}/medialibrary
     git submodule update --init libvlcpp
-    cd -
 else
     cd ${MEDIALIBRARY_MODULE_DIR}/medialibrary
     if ! git cat-file -e ${MEDIALIBRARY_HASH}; then
@@ -778,9 +777,11 @@ else
       rm -rf ${MEDIALIBRARY_MODULE_DIR}/jni/libs
       rm -rf ${MEDIALIBRARY_MODULE_DIR}/jni/obj
     fi
-    cd ${SRC_DIR}
 fi
-
+if [ "$RELEASE" = 1 ]; then
+    git reset --hard ${MEDIALIBRARY_HASH}
+fi
+cd ${SRC_DIR}
 echo -e "\e[1m\e[36mCFLAGS:            ${CFLAGS}\e[0m"
 echo -e "\e[1m\e[36mEXTRA_CFLAGS:      ${EXTRA_CFLAGS}\e[0m"
 



More information about the Android mailing list