summaryrefslogtreecommitdiff
path: root/gobject/tests/Makefile.am
blob: ae94d5010863264fc8f86e692bc41cd9df71f954 (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
include $(top_srcdir)/glib-tap.mk

LDADD = ../libgobject-2.0.la $(top_builddir)/glib/libglib-2.0.la
AM_CPPFLAGS = -g $(gobject_INCLUDES) $(GLIB_DEBUG_FLAGS)
DEFS = -DG_LOG_DOMAIN=\"GLib-GObject\"
AM_CFLAGS = $(GLIB_WARN_CFLAGS)

# -----------------------------------------------------------------------------

test_programs = \
	qdata				\
	boxed				\
	enums				\
	param				\
	threadtests			\
	dynamictests			\
	binding				\
	properties			\
	reference			\
	flags				\
	value				\
	type				\
	private				\
	closure				\
	object				\
	signal-handler			\
	$(NULL)

if HAVE_GCC
test_programs += \
	autoptr				\
	$(NULL)
endif

# -----------------------------------------------------------------------------

test_programs += ifaceproperties
ifaceproperties_SOURCES = ifaceproperties.c testcommon.h

# -----------------------------------------------------------------------------

# The marshalers test requires running a binary, so we cannot build it when
# cross-compiling

glib_genmarshal = $(top_builddir)/gobject/glib-genmarshal

test_programs += signals
signals_SOURCES = signals.c
nodist_signals_SOURCES = marshalers.c marshalers.h
signals.o: marshalers.h
CLEANFILES += marshalers.h marshalers.c
EXTRA_DIST += marshalers.list

marshalers.h: $(srcdir)/marshalers.list Makefile.am
	$(AM_V_GEN) $(glib_genmarshal) \
		--prefix=test \
		--valist-marshallers \
		--output=$@ \
		--quiet \
		--header \
		$<

marshalers.c: $(srcdir)/marshalers.list marshalers.h Makefile.am
	$(AM_V_GEN) $(glib_genmarshal) \
		--prefix=test \
		--valist-marshallers \
		--include-header=marshalers.h \
		--output=$@ \
		--quiet \
		--body \
		$<