glib/gobject/tests/Makefile.am
Emmanuele Bassi f7643a7df7 Re-enable signal tests when cross-compiling
The glib-genmarshal tool has been rewritten in Python, which means we
can run it when cross-compiling.

https://bugzilla.gnome.org/show_bug.cgi?id=784528
2017-07-10 16:47:48 +01:00

65 lines
1.5 KiB
Makefile

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 \
value \
type \
private \
closure \
object \
signal-handler \
$(NULL)
# -----------------------------------------------------------------------------
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 \
$<