Build tests with extra debug information.
authorTravis Reitter <travis.reitter@collabora.co.uk>
Thu, 25 Aug 2011 21:28:06 +0000 (14:28 -0700)
committerTravis Reitter <travis.reitter@collabora.co.uk>
Thu, 25 Aug 2011 21:48:41 +0000 (14:48 -0700)
Notably, this provides gdb with Vala source file line numbers for
backtraces (which should save a bit of digging through generated C
files).

Gdb still lists generated C line numbers for lines farther up the
stack when there's no obvious Vala line equivalent.

12 files changed:
configure.ac
tests/eds/Makefile.am
tests/folks/Makefile.am
tests/key-file/Makefile.am
tests/lib/Makefile.am
tests/lib/eds/Makefile.am
tests/lib/key-file/Makefile.am
tests/lib/libsocialweb/Makefile.am
tests/lib/tracker/Makefile.am
tests/libsocialweb/Makefile.am
tests/telepathy/Makefile.am
tests/tracker/Makefile.am

index 6249e0f..9b5a082 100644 (file)
@@ -424,6 +424,11 @@ AS_IF([test "x$enable_vala" = "xyes"],
                         $ERROR_INTROSPECTION_SCANNER_ARGS --warn-error"
        ERROR_VALAFLAGS="$ERROR_VALAFLAGS --fatal-warnings"])
 
+m4_if(folks_released, [1], [],
+    [
+        ERROR_VALAFLAGS="$ERROR_VALAFLAGS -g"
+    ])
+
 AC_SUBST([ERROR_INTROSPECTION_SCANNER_ARGS])
 AC_SUBST([ERROR_VALAFLAGS])
 
index 07bc809..54e134c 100644 (file)
@@ -39,6 +39,7 @@ AM_VALAFLAGS = \
        --pkg folks-eds \
        --pkg eds-test \
        --pkg gconf-2.0 \
+       -g \
        $(NULL)
 
 # in order from least to most complex
index cbb895b..a37bd78 100644 (file)
@@ -35,6 +35,7 @@ AM_VALAFLAGS = \
        --pkg folks-test \
        --pkg kf-test \
        --pkg tp-test-contactlist \
+       -g \
        $(NULL)
 
 # in order from least to most complex
index 65cccc7..1e42695 100644 (file)
@@ -26,6 +26,7 @@ AM_VALAFLAGS = \
        --pkg folks \
        --pkg folks-test \
        --pkg kf-test \
+       -g \
        $(NULL)
 
 # in order from least to most complex
index eed9207..428131c 100644 (file)
@@ -35,6 +35,7 @@ libfolks_test_la_VALAFLAGS = \
        --pkg gio-2.0 \
        --library folks-test \
        -H folks-test.h \
+       -g \
        $(NULL)
 
 MAINTAINERCLEANFILES = \
index 3c767ee..cc48639 100644 (file)
@@ -13,6 +13,7 @@ VALAFLAGS += \
        --pkg libedataserver-1.2 \
        --pkg libxml-2.0 \
        --pkg folks-eds \
+       -g \
        $(NULL)
 
 noinst_LTLIBRARIES = libeds-test.la
index 1392588..2bfc3be 100644 (file)
@@ -2,6 +2,7 @@ VALAFLAGS += \
        --library=kf-test \
        --header=kf-test.h \
        --vapidir=. \
+       -g \
        $(NULL)
 
 noinst_LTLIBRARIES = libkf-test.la
index 31180d7..56158a9 100644 (file)
@@ -10,6 +10,7 @@ VALAFLAGS += \
        --pkg folks \
        --pkg libsocialweb-client \
        --pkg folks-libsocialweb \
+       -g \
        $(NULL)
 
 noinst_LTLIBRARIES = libsocialweb-test.la
index 84d7313..8c52165 100644 (file)
@@ -10,6 +10,7 @@ VALAFLAGS += \
        --pkg folks \
        --pkg tracker-sparql-0.10 \
        --pkg folks-tracker \
+       -g \
        $(NULL)
 
 noinst_LTLIBRARIES = libtracker-test.la
index 92c87b5..6c037c7 100644 (file)
@@ -38,6 +38,7 @@ AM_VALAFLAGS = \
        --pkg folks-libsocialweb \
        --pkg libsocialweb-client \
        --pkg libsocialweb-test \
+       -g \
        $(NULL)
 
 # in order from least to most complex
index 3df4f2d..bfc0ba5 100644 (file)
@@ -39,6 +39,7 @@ AM_VALAFLAGS = \
        --pkg folks-telepathy \
        --pkg folks-test \
        --pkg tp-test-contactlist \
+       -g \
        $(NULL)
 
 # in order from least to most complex
index c09a1a3..bb58efd 100644 (file)
@@ -39,6 +39,7 @@ AM_VALAFLAGS = \
        --pkg tracker-sparql-0.10 \
        --pkg gconf-2.0 \
        --pkg tracker-test \
+       -g \
        $(NULL)
 
 # in order from least to most complex