[Android] Include gdb files in debug builds

Geoffrey Métais git at videolan.org
Thu Feb 12 15:41:58 CET 2015


vlc-ports/android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Thu Feb 12 15:41:27 2015 +0100| [4af9afed671e8765800184fbfb50f437ea1dd2c7] | committer: Geoffrey Métais

Include gdb files in debug builds

> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=4af9afed671e8765800184fbfb50f437ea1dd2c7
---

 libvlc/build.gradle      |    8 ++++++++
 vlc-android/build.gradle |    1 +
 2 files changed, 9 insertions(+)

diff --git a/libvlc/build.gradle b/libvlc/build.gradle
index 2ff0c7b..32b0c5e 100644
--- a/libvlc/build.gradle
+++ b/libvlc/build.gradle
@@ -31,6 +31,14 @@ android {
     }
 }
 
+/*
+ * Include GDB files into apk
+ */
+afterEvaluate {
+    Sync packageTask = project.getTasks().findByName("packageReleaseJniLibs")
+    packageTask.include(['**/gdbserver', '**/gdb.setup'])
+}
+
 class BuildNative extends Exec {}
 
 tasks.withType(BuildNative){
diff --git a/vlc-android/build.gradle b/vlc-android/build.gradle
index 02234f4..8ff0897 100644
--- a/vlc-android/build.gradle
+++ b/vlc-android/build.gradle
@@ -77,6 +77,7 @@ android {
         }
         debug {
             applicationIdSuffix ".debug"
+            jniDebuggable true
         }
     }
     productFlavors {



More information about the Android mailing list