1 include $(top_srcdir)/glib.mk
3 LDADD = $(top_builddir)/gobject/libgobject-2.0.la $(top_builddir)/glib/libglib-2.0.la
4 AM_CPPFLAGS = $(gmodule_INCLUDES) $(GLIB_DEBUG_FLAGS)
5 DEFS = -DGLIB_DISABLE_DEPRECATION_WARNINGS -DG_LOG_DOMAIN=\"GLib\"
8 # So far, only two gtester-ified cases
14 # These are not yet gtester-ified, so mark them as for 'installed' only so we
15 # don't run them under the framework. We will handle them manually below.
16 installed_test_programs = \
27 # Don't install these ones, and keep them out of 'make check' because they take too long...
30 performance-threaded \
33 # Run the 'installed' tests manually in-tree.
34 # This will cause them to be built even if installed tests are disabled.
35 check_PROGRAMS += $(installed_test_programs) $(installed_test_extra_programs)
36 TESTS += $(installed_test_programs)
38 LIBCHARSET_ALIAS_DIR=$(top_builddir)/glib/libcharset \
40 MALLOC_PERTURB_=$$(($${RANDOM:-256} % 256))
42 accumulator_SOURCES = accumulator.c testmarshal.c testmarshal.h
43 signals_SOURCES = signals.c
44 defaultiface_SOURCES = defaultiface.c testmodule.c testmodule.h
45 dynamictype_SOURCES = dynamictype.c testmodule.c testmodule.h
48 installed_test_programs += timeloop-closure
51 # The marshal test requires running a binary, which means we cannot
52 # build it when cross-compiling
54 glib_genmarshal=$(top_builddir)/gobject/glib-genmarshal
56 testmarshal.h: stamp-testmarshal.h
58 stamp-testmarshal.h: @REBUILD@ testmarshal.list $(glib_genmarshal)
59 $(AM_V_GEN) $(glib_genmarshal) --prefix=test_marshal $(srcdir)/testmarshal.list --header >> xgen-gmh \
60 && (cmp -s xgen-gmh testmarshal.h 2>/dev/null || cp xgen-gmh testmarshal.h) \
61 && rm -f xgen-gmh xgen-gmh~ \
62 && echo timestamp > $@
63 testmarshal.c: @REBUILD@ testmarshal.h testmarshal.list $(glib_genmarshal)
64 $(AM_V_GEN) (echo "#include \"testmarshal.h\""; $(glib_genmarshal) --prefix=test_marshal $(srcdir)/testmarshal.list --body) >> xgen-gmc \
65 && cp xgen-gmc testmarshal.c \
66 && rm -f xgen-gmc xgen-gmc~
68 BUILT_SOURCES += testmarshal.h testmarshal.c
69 CLEANFILES += stamp-testmarshal.h
70 EXTRA_DIST += testcommon.h testmarshal.list
71 BUILT_EXTRA_DIST += testmarshal.h testmarshal.c
72 endif # !CROSS_COMPILING
74 dist-hook: $(BUILT_EXTRA_DIST)
75 files='$(BUILT_EXTRA_DIST)'; \
76 for f in $$files; do \
77 if test -f $$f; then d=.; else d=$(srcdir); fi; \
78 cp $$d/$$f $(distdir) || exit 1; done
81 if test $(srcdir) = .; then :; else \
82 rm -f $(BUILT_EXTRA_DIST); \