[Android] build: always dump dbg symbols
Thomas Guillem
git at videolan.org
Tue Dec 1 17:06:49 CET 2015
vlc-ports/android | branch: master | Thomas Guillem <thomas at gllm.fr> | Tue Dec 1 16:08:25 2015 +0100| [6afa9521621556da7b71216c90a8e8d90fb5ed81] | committer: Thomas Guillem
build: always dump dbg symbols
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=6afa9521621556da7b71216c90a8e8d90fb5ed81
---
compile-libvlc.sh | 29 ++++++++++++++---------------
1 file changed, 14 insertions(+), 15 deletions(-)
diff --git a/compile-libvlc.sh b/compile-libvlc.sh
index 8ebb8f5..09ede97 100755
--- a/compile-libvlc.sh
+++ b/compile-libvlc.sh
@@ -675,18 +675,17 @@ $ANDROID_NDK/ndk-build -C libvlc \
checkfail "ndk-build failed"
-if [ "$RELEASE" = 1 ]; then
- DBG_LIB_DIR=libvlc/jni/obj/local/${ANDROID_ABI}
- OUT_LIB_DIR=libvlc/jni/libs/${ANDROID_ABI}
- VERSION=$(grep "android:versionName" vlc-android/AndroidManifest.xml|cut -d\" -f 2)
- OUT_DBG_DIR=.dbg/${ANDROID_ABI}/$VERSION
-
- mkdir -p $OUT_DBG_DIR
-
- for lib in ${DBG_LIB_DIR}/*.so; do
- ${CROSS_COMPILE}objcopy --only-keep-debug "$lib" "$OUT_DBG_DIR/`basename $lib.dbg`"; \
- done
- for lib in ${OUT_LIB_DIR}/*.so; do
- ${CROSS_COMPILE}objcopy --add-gnu-debuglink="$OUT_DBG_DIR/`basename $lib.dbg`" "$lib" ; \
- done
-fi
+DBG_LIB_DIR=libvlc/jni/obj/local/${ANDROID_ABI}
+OUT_LIB_DIR=libvlc/jni/libs/${ANDROID_ABI}
+VERSION=$(grep "android:versionName" vlc-android/AndroidManifest.xml|cut -d\" -f 2)
+OUT_DBG_DIR=.dbg/${ANDROID_ABI}/$VERSION
+
+echo "Dumping dbg symbols info ${OUT_DBG_DIR}"
+
+mkdir -p $OUT_DBG_DIR
+for lib in ${DBG_LIB_DIR}/*.so; do
+ ${CROSS_COMPILE}objcopy --only-keep-debug "$lib" "$OUT_DBG_DIR/`basename $lib.dbg`"; \
+done
+for lib in ${OUT_LIB_DIR}/*.so; do
+ ${CROSS_COMPILE}objcopy --add-gnu-debuglink="$OUT_DBG_DIR/`basename $lib.dbg`" "$lib" ; \
+done
More information about the Android
mailing list