summaryrefslogtreecommitdiff
path: root/tests/lib
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2012-05-04 12:51:34 +0100
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2012-05-07 14:15:07 +0100
commit2d748f0e03ccf2117e46a4b31e9ad06a18f99fb4 (patch)
tree364dec23a24573966e17301d6a98931c198fb2a2 /tests/lib
parent5b9be38644d00f948d315cabf8f6e0df80ca33d9 (diff)
downloadtelepathy-glib-2d748f0e03ccf2117e46a4b31e9ad06a18f99fb4.tar.gz
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
Diffstat (limited to 'tests/lib')
-rw-r--r--tests/lib/Makefile.am4
1 files changed, 4 insertions, 0 deletions
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) \