[gitg/vala] Enable vala debugging if requested
- From: Jesse van den Kieboom <jessevdk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gitg/vala] Enable vala debugging if requested
- Date: Fri, 6 Jul 2012 17:37:35 +0000 (UTC)
commit 8a55f2362341dc27090944e3b7540446c05db335
Author: Jesse van den Kieboom <jesse vandenkieboom epfl ch>
Date: Fri Jul 6 19:36:06 2012 +0200
Enable vala debugging if requested
configure.ac | 8 +++++++-
gitg/Makefile.am | 1 +
libgitg-ext/Makefile.am | 2 +-
libgitg-gtk/Makefile.am | 2 +-
libgitg/Makefile.am | 2 +-
5 files changed, 11 insertions(+), 4 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 0cce00b..ec90ee9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -124,14 +124,20 @@ AC_ARG_ENABLE(debug,
[disable debug information [default=yes]])],
[enable_debug=$enableval], [enable_debug=yes])
+GITG_VALAFLAGS="--target-glib 2.32"
+
if test "x$enable_debug" = "xyes"; then
LIBGITG_CFLAGS="$LIBGITG_CFLAGS -g -O0"
+ GITG_VALAFLAGS="$GITG_VALAFLAGS -g --save-temps"
+
AC_DEFINE([ENABLE_DEBUG],[1],[Whether debugging support is enabled])
fi
AC_SUBST(LIBGITG_CFLAGS)
AC_SUBST(LIBGITG_LIBS)
+AC_SUBST(GITG_VALAFLAGS)
+
PKG_CHECK_MODULES(LIBGITG_GTK, [
gtk+-3.0 >= $GTK_REQUIRED_VERSION
])
@@ -216,7 +222,7 @@ GITG_PLUGIN_VALAFLAGS=" \
--pkg gtk+-3.0 \
--pkg libpeas-1.0 \
--pkg gee-1.0 \
- --target-glib 2.32 \
+ \$(GITG_VALAFLAGS) \
--vapidir \$(top_srcdir)/vapi \
--girdir \$(top_builddir)/libgitg \
--girdir \$(top_builddir)/libgitg-gtk \
diff --git a/gitg/Makefile.am b/gitg/Makefile.am
index 8598c7a..3473db6 100644
--- a/gitg/Makefile.am
+++ b/gitg/Makefile.am
@@ -11,6 +11,7 @@ AM_CPPFLAGS = \
VALAFLAGS = \
--vapidir $(top_srcdir)/vapi \
+ $(GITG_VALAFLAGS) \
--pkg config \
--pkg Ggit-1.0 \
--pkg Gitg-1.0 \
diff --git a/libgitg-ext/Makefile.am b/libgitg-ext/Makefile.am
index ad23abf..7f7b5f9 100644
--- a/libgitg-ext/Makefile.am
+++ b/libgitg-ext/Makefile.am
@@ -13,7 +13,7 @@ VALAFLAGS = \
--pkg Gitg-1.0 \
--pkg gio-2.0 \
--pkg gtk+-3.0 \
- --target-glib 2.32 \
+ $(GITG_VALAFLAGS) \
--header libgitg-ext.h \
--includedir libgitg-ext \
--basedir $(top_srcdir) \
diff --git a/libgitg-gtk/Makefile.am b/libgitg-gtk/Makefile.am
index d559910..d97dcc0 100644
--- a/libgitg-gtk/Makefile.am
+++ b/libgitg-gtk/Makefile.am
@@ -25,7 +25,7 @@ VALAFLAGS = \
--pkg Gitg-1.0 \
--pkg gtk+-3.0 \
--pkg gio-2.0 \
- --target-glib 2.32 \
+ $(GITG_VALAFLAGS) \
--header libgitg-gtk.h \
--includedir libgitg-gtk \
--basedir $(top_srcdir) \
diff --git a/libgitg/Makefile.am b/libgitg/Makefile.am
index 8012124..88fd7c2 100644
--- a/libgitg/Makefile.am
+++ b/libgitg/Makefile.am
@@ -19,7 +19,7 @@ INST_H_FILES = \
VALAFLAGS = \
--pkg Ggit-1.0 \
--pkg gio-2.0 \
- --target-glib 2.32 \
+ $(GITG_VALAFLAGS) \
--header libgitg.h \
--includedir libgitg \
--basedir $(top_srcdir) \
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]