|
Packit |
ae235b |
include $(top_srcdir)/glib.mk
|
|
Packit |
ae235b |
|
|
Packit |
ae235b |
LDADD = $(top_builddir)/gobject/libgobject-2.0.la $(top_builddir)/glib/libglib-2.0.la
|
|
Packit |
ae235b |
AM_CPPFLAGS = $(gmodule_INCLUDES) $(GLIB_DEBUG_FLAGS)
|
|
Packit |
ae235b |
DEFS = -DGLIB_DISABLE_DEPRECATION_WARNINGS -DG_LOG_DOMAIN=\"GLib\"
|
|
Packit |
ae235b |
AM_CFLAGS = -g
|
|
Packit |
ae235b |
|
|
Packit |
ae235b |
# So far, only two gtester-ified cases
|
|
Packit |
ae235b |
test_programs = \
|
|
Packit |
ae235b |
gvalue-test \
|
|
Packit |
ae235b |
paramspec-test \
|
|
Packit |
ae235b |
$(NULL)
|
|
Packit |
ae235b |
|
|
Packit |
ae235b |
# These are not yet gtester-ified, so mark them as for 'installed' only so we
|
|
Packit |
ae235b |
# don't run them under the framework. We will handle them manually below.
|
|
Packit |
ae235b |
installed_test_programs = \
|
|
Packit |
ae235b |
deftype \
|
|
Packit |
ae235b |
accumulator \
|
|
Packit |
ae235b |
defaultiface \
|
|
Packit |
ae235b |
dynamictype \
|
|
Packit |
ae235b |
override \
|
|
Packit |
ae235b |
signals \
|
|
Packit |
ae235b |
singleton \
|
|
Packit |
ae235b |
references \
|
|
Packit |
ae235b |
testgobject \
|
|
Packit |
ae235b |
$(NULL)
|
|
Packit |
ae235b |
|
|
Packit |
ae235b |
# Don't install these ones, and keep them out of 'make check' because they take too long...
|
|
Packit |
ae235b |
noinst_PROGRAMS += \
|
|
Packit |
ae235b |
performance \
|
|
Packit |
ae235b |
performance-threaded \
|
|
Packit |
ae235b |
$(NULL)
|
|
Packit |
ae235b |
|
|
Packit |
ae235b |
# Run the 'installed' tests manually in-tree.
|
|
Packit |
ae235b |
# This will cause them to be built even if installed tests are disabled.
|
|
Packit |
ae235b |
check_PROGRAMS += $(installed_test_programs) $(installed_test_extra_programs)
|
|
Packit |
ae235b |
TESTS += $(installed_test_programs)
|
|
Packit |
ae235b |
AM_TESTS_ENVIRONMENT = \
|
|
Packit |
ae235b |
LIBCHARSET_ALIAS_DIR=$(top_builddir)/glib/libcharset \
|
|
Packit |
ae235b |
MALLOC_CHECK_=2 \
|
|
Packit |
ae235b |
MALLOC_PERTURB_=$$(($${RANDOM:-256} % 256))
|
|
Packit |
ae235b |
|
|
Packit |
ae235b |
accumulator_SOURCES = accumulator.c testmarshal.c testmarshal.h
|
|
Packit |
ae235b |
signals_SOURCES = signals.c
|
|
Packit |
ae235b |
defaultiface_SOURCES = defaultiface.c testmodule.c testmodule.h
|
|
Packit |
ae235b |
dynamictype_SOURCES = dynamictype.c testmodule.c testmodule.h
|
|
Packit |
ae235b |
testgobject_SOURCES = testgobject.c
|
|
Packit |
ae235b |
|
|
Packit |
ae235b |
if ENABLE_TIMELOOP
|
|
Packit |
ae235b |
installed_test_programs += timeloop-closure
|
|
Packit |
ae235b |
endif
|
|
Packit |
ae235b |
|
|
Packit |
ae235b |
# The marshal test requires running a binary, which means we cannot
|
|
Packit |
ae235b |
# build it when cross-compiling
|
|
Packit |
ae235b |
if !CROSS_COMPILING
|
|
Packit |
ae235b |
glib_genmarshal=$(top_builddir)/gobject/glib-genmarshal
|
|
Packit |
ae235b |
|
|
Packit |
ae235b |
testmarshal.h: stamp-testmarshal.h
|
|
Packit |
ae235b |
@true
|
|
Packit |
ae235b |
stamp-testmarshal.h: testmarshal.list $(glib_genmarshal)
|
|
Packit |
ae235b |
$(AM_V_GEN) $(glib_genmarshal) --prefix=test_marshal $(srcdir)/testmarshal.list --header >> xgen-gmh \
|
|
Packit |
ae235b |
&& (cmp -s xgen-gmh testmarshal.h 2>/dev/null || cp xgen-gmh testmarshal.h) \
|
|
Packit |
ae235b |
&& rm -f xgen-gmh xgen-gmh~ \
|
|
Packit |
ae235b |
&& echo timestamp > $@
|
|
Packit |
ae235b |
testmarshal.c: testmarshal.h testmarshal.list $(glib_genmarshal)
|
|
Packit |
ae235b |
$(AM_V_GEN) (echo "#include \"testmarshal.h\""; $(glib_genmarshal) --prefix=test_marshal $(srcdir)/testmarshal.list --body) >> xgen-gmc \
|
|
Packit |
ae235b |
&& cp xgen-gmc testmarshal.c \
|
|
Packit |
ae235b |
&& rm -f xgen-gmc xgen-gmc~
|
|
Packit |
ae235b |
|
|
Packit |
ae235b |
BUILT_SOURCES += testmarshal.h testmarshal.c
|
|
Packit |
ae235b |
CLEANFILES += stamp-testmarshal.h
|
|
Packit |
ae235b |
EXTRA_DIST += testcommon.h testmarshal.list
|
|
Packit |
ae235b |
BUILT_EXTRA_DIST += testmarshal.h testmarshal.c
|
|
Packit |
ae235b |
endif # !CROSS_COMPILING
|
|
Packit |
ae235b |
|
|
Packit |
ae235b |
dist-hook: $(BUILT_EXTRA_DIST)
|
|
Packit |
ae235b |
files='$(BUILT_EXTRA_DIST)'; \
|
|
Packit |
ae235b |
for f in $$files; do \
|
|
Packit |
ae235b |
if test -f $$f; then d=.; else d=$(srcdir); fi; \
|
|
Packit |
ae235b |
cp $$d/$$f $(distdir) || exit 1; done
|
|
Packit |
ae235b |
|
|
Packit |
ae235b |
distclean-local:
|
|
Packit |
ae235b |
if test $(srcdir) = .; then :; else \
|
|
Packit |
ae235b |
rm -f $(BUILT_EXTRA_DIST); \
|
|
Packit |
ae235b |
fi
|