[Android] buildsystem: Generate medialib debug symbols

Hugo Beauzée-Luyssen git at videolan.org
Thu Jul 22 07:27:18 UTC 2021


vlc-android | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Wed Jul 21 14:27:09 2021 +0200| [64c210e0581196c240f0f528b6db813777f63925] | committer: Hugo Beauzée-Luyssen

buildsystem: Generate medialib debug symbols

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

 buildsystem/compile-medialibrary.sh | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/buildsystem/compile-medialibrary.sh b/buildsystem/compile-medialibrary.sh
index ae3d266b6..1862f8943 100755
--- a/buildsystem/compile-medialibrary.sh
+++ b/buildsystem/compile-medialibrary.sh
@@ -120,9 +120,11 @@ cd ${SRC_DIR}
 #############
 
 if [ "$RELEASE" = "1" ]; then
-  MEDIALIBRARY_MODE=release
+  MEDIALIBRARY_NDEBUG=true
+  MEDIALIBRARY_OPTIMIZATION=3
 else
-  MEDIALIBRARY_MODE=debug
+  MEDIALIBRARY_NDEBUG=false
+  MEDIALIBRARY_OPTIMIZATION=0
 fi
 
 cd ${MEDIALIBRARY_BUILD_DIR}
@@ -130,7 +132,10 @@ cd ${MEDIALIBRARY_BUILD_DIR}
 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/" \
-    meson --buildtype=${MEDIALIBRARY_MODE} \
+    meson \
+        -Ddebug=true \
+        -Doptimization=${MEDIALIBRARY_OPTIMIZATION} \
+        -Db_ndebug=${MEDIALIBRARY_NDEBUG} \
         -Ddefault_library=static \
         --cross-file ${SRC_DIR}/buildsystem/crossfiles/${ANDROID_ABI}.crossfile \
         -Dlibjpeg_prefix="$SRC_DIR/vlc/contrib/$TARGET_TUPLE/" \



More information about the Android mailing list