[Android] buildsytem: use last libvlcjni build script
Thomas Guillem
git at videolan.org
Mon Jul 10 05:15:20 UTC 2023
vlc-android | branch: master | Thomas Guillem <thomas at gllm.fr> | Thu Jul 6 17:14:02 2023 +0200| [b3f10c731399e2a27ad016890fc81f90db884724] | committer: Thomas Guillem
buildsytem: use last libvlcjni build script
vlc sources are now located in libvlcjni folder, and not on vlc-android.
Adapt the compile-medialibrary.sh with the new libvlcjni changes.
> https://code.videolan.org/videolan/vlc-android/commit/b3f10c731399e2a27ad016890fc81f90db884724
---
buildsystem/compile-medialibrary.sh | 5 +++--
buildsystem/compile.sh | 6 +++---
2 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/buildsystem/compile-medialibrary.sh b/buildsystem/compile-medialibrary.sh
index 258faca22b..57b83ef895 100755
--- a/buildsystem/compile-medialibrary.sh
+++ b/buildsystem/compile-medialibrary.sh
@@ -26,6 +26,7 @@ while [ $# -gt 0 ]; do
shift
done
+SRC_DIR=$PWD
AVLC_SOURCED=1 . libvlcjni/buildsystem/compile-libvlc.sh
################
@@ -170,8 +171,8 @@ avlc_checkfail "medialibrary: build failed"
cd ${SRC_DIR}
-MEDIALIBRARY_LDLIBS="-L$SRC_DIR/libvlcjni/libvlc/jni/libs/${ANDROID_ABI}/ -lvlc \
--L$SRC_DIR/vlc/contrib/$TARGET_TUPLE/lib -ljpeg \
+MEDIALIBRARY_LDLIBS="-L$LIBVLCJNI_SRC_DIR/libvlc/jni/libs/${ANDROID_ABI}/ -lvlc \
+-L$LIBVLCJNI_SRC_DIR/vlc/contrib/$TARGET_TUPLE/lib -ljpeg \
-L${NDK_LIB_DIR} -lc++abi"
$NDK_BUILD -C medialibrary \
diff --git a/buildsystem/compile.sh b/buildsystem/compile.sh
index 57696f7d95..af267d9980 100755
--- a/buildsystem/compile.sh
+++ b/buildsystem/compile.sh
@@ -259,9 +259,9 @@ fi
if [ "$FORCE_VLC_4" = 1 ]; then
- LIBVLCJNI_TESTED_HASH=250488825f41c0a25765471f8872ebe3b39c945d
+ LIBVLCJNI_TESTED_HASH=e3516743837e9e255c4e531bc5262b1f78b43d1a
else
- LIBVLCJNI_TESTED_HASH=599329e36e952d41dfb9ff2ec56ee9854171f6e0
+ LIBVLCJNI_TESTED_HASH=7d377a83e7287eb93070d354ecad30e8c653dc79
fi
LIBVLCJNI_REPOSITORY=https://code.videolan.org/videolan/libvlcjni
@@ -298,7 +298,7 @@ if [ -z "$VLC_SRC_DIR" ]; then
get_vlc_args="${get_vlc_args} --reset"
fi
- ${VLC_LIBJNI_PATH}/buildsystem/get-vlc.sh ${get_vlc_args}
+ (cd ${VLC_LIBJNI_PATH} && ./buildsystem/get-vlc.sh ${get_vlc_args})
fi
# Always clone VLC when using --init since we'll need to package some files
More information about the Android
mailing list