diff options
author | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2012-05-04 12:51:34 +0100 |
---|---|---|
committer | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2012-05-07 14:15:07 +0100 |
commit | 2d748f0e03ccf2117e46a4b31e9ad06a18f99fb4 (patch) | |
tree | 364dec23a24573966e17301d6a98931c198fb2a2 | |
parent | 5b9be38644d00f948d315cabf8f6e0df80ca33d9 (diff) |
Define _TP_COMPILATION when compiling library and tests (but not examples)
This will switch off single-inclusion checks. We don't want to use
telepathy-glib/telepathy-glib.h within the library since it'll trigger
mass recompilation whenever any header changes.
For the examples, it seems acceptable to use the meta-header so that
the examples will be exemplary.
Reviewed-by: Xavier Claessens <xavier.claessens@collabora.co.uk>
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=49384
-rw-r--r-- | telepathy-glib/Makefile.am | 6 | ||||
-rw-r--r-- | tests/Makefile.am | 1 | ||||
-rw-r--r-- | tests/dbus/Makefile.am | 1 | ||||
-rw-r--r-- | tests/lib/Makefile.am | 4 |
4 files changed, 11 insertions, 1 deletions
diff --git a/telepathy-glib/Makefile.am b/telepathy-glib/Makefile.am index 30efdb618..33e1a42a3 100644 --- a/telepathy-glib/Makefile.am +++ b/telepathy-glib/Makefile.am @@ -303,8 +303,12 @@ libtelepathy_glib_internal_la_SOURCES = \ util.c \ util-internal.h -AM_CFLAGS = \ +AM_CPPFLAGS = \ -DG_LOG_DOMAIN=\"tp-glib\" \ + -D_TP_COMPILATION \ + $(NULL) + +AM_CFLAGS = \ $(ERROR_CFLAGS) \ @DBUS_CFLAGS@ \ @GLIB_CFLAGS@ \ diff --git a/tests/Makefile.am b/tests/Makefile.am index 63abac55a..0be106911 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -142,6 +142,7 @@ LDADD = \ AM_CPPFLAGS = \ -I${top_srcdir} -I${top_builddir} \ + -D_TP_COMPILATION \ -D_TP_IGNORE_DEPRECATIONS \ $(GLIB_CFLAGS) \ $(DBUS_CFLAGS) \ diff --git a/tests/dbus/Makefile.am b/tests/dbus/Makefile.am index b1c77a941..79d89ec91 100644 --- a/tests/dbus/Makefile.am +++ b/tests/dbus/Makefile.am @@ -263,6 +263,7 @@ check-local: check-coding-style AM_CPPFLAGS = \ -I${top_srcdir} -I${top_builddir} \ + -D_TP_COMPILATION \ -D_TP_IGNORE_DEPRECATIONS \ $(GLIB_CFLAGS) \ $(DBUS_CFLAGS) \ diff --git a/tests/lib/Makefile.am b/tests/lib/Makefile.am index 8fad58a4b..4068f6f86 100644 --- a/tests/lib/Makefile.am +++ b/tests/lib/Makefile.am @@ -80,6 +80,10 @@ check_c_sources = *.c include $(top_srcdir)/tools/check-coding-style.mk check-local: check-coding-style +AM_CPPFLAGS = \ + -D_TP_COMPILATION \ + $(NULL) + AM_CFLAGS = \ $(ERROR_CFLAGS) \ $(DBUS_CFLAGS) \ |