summaryrefslogtreecommitdiff
path: root/tests/lib/Makefile.am
blob: 233a7544845339cfe490568be15b72db29330036 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
# Build . first so that backends' test libraries can link to libfolks-test.la
SUBDIRS = \
	. \
	dummy \
	key-file \
	$(NULL)

if ENABLE_TELEPATHY
# Build the contactlist first because autotools fails to recognize the
# dependencies implicitly. There may be a better way to fix this, but then I'd
# have to spend more time working with autotools.
SUBDIRS += \
	telepathy/contactlist \
	telepathy \
	$(NULL)
endif

if ENABLE_LIBSOCIALWEB
SUBDIRS += libsocialweb
endif

if ENABLE_TRACKER
SUBDIRS += tracker
endif

if ENABLE_EDS
SUBDIRS += eds
endif

DIST_SUBDIRS = \
	dummy \
	key-file \
	telepathy \
	eds \
	libsocialweb \
	tracker \
	$(NULL)

noinst_LTLIBRARIES = libfolks-test.la

libfolks_test_la_SOURCES = \
	disconnection-queue.vala \
	haze-remove-directory.c \
	gtestdbus.c \
	gtestdbus.h \
	test-case.vala \
	test-case-helper.c \
	test-utils.vala \
	$(NULL)

libfolks_test_la_CFLAGS = \
	$(AM_CFLAGS) \
	$(ERROR_CFLAGS) \
	$(GLIB_CFLAGS) \
	$(GIO_CFLAGS) \
	$(GEE_CFLAGS) \
	$(DBUS_GLIB_CFLAGS) \
	$(NULL)

libfolks_test_la_CPPFLAGS = \
	$(AM_CPPFLAGS) \
	-I$(top_srcdir) \
	-I$(top_srcdir)/folks \
	-include $(CONFIG_HEADER) \
	-DABS_TOP_SRCDIR=\"${abs_top_srcdir}\" \
	-DABS_TOP_BUILDDIR=\"${abs_top_builddir}\" \
	-DPKGLIBEXECDIR=\"${pkglibexecdir}\" \
	-DPACKAGE_DATADIR=\"${pkgdatadir}\" \
	$(NULL)

libfolks_test_la_LIBADD = \
	$(AM_LIBADD) \
	$(top_builddir)/folks/libfolks.la \
	$(GLIB_LIBS) \
	$(GIO_LIBS) \
	$(GEE_LIBS) \
	$(DBUS_GLIB_LIBS) \
	$(NULL)

libfolks_test_la_VALAFLAGS = \
	$(AM_VALAFLAGS) \
	$(TARGET_VALAFLAGS) \
	$(ERROR_VALAFLAGS) \
	--vapidir=$(abs_top_srcdir)/folks \
	--vapidir=$(abs_top_builddir)/folks \
	--vapidir=$(abs_top_srcdir)/tests/lib \
	--pkg gobject-2.0 \
	--pkg gio-2.0 \
	--pkg gee-0.8 \
	--pkg dbus-glib-1 \
	--pkg folks \
	--pkg build-conf \
	--pkg folks-test-dbus \
	--library folks-test \
	--vapi folks-test.vapi \
	-H folks-test.h \
	-h folks-test-internal.h \
	-g \
	$(NULL)

# According to the following document, this is the best way to ensure that this header
# gets built when compiling the Vala sources to C but before we try to compile
# all the C files (in case of parallel builds):
#     http://www.lug.or.kr/docs/automake/Dependency-Tracking-Evolution.html
BUILT_SOURCES = \
	folks-test-internal.h \
	$(NULL)

# Too hard to add support for this in git.mk.
GITIGNOREFILES = \
	folks-test-internal.h \
	$(NULL)

EXTRA_DIST = \
	folks-test.deps \
	$(NULL)

-include $(top_srcdir)/git.mk