mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-08 10:26:16 +01:00
4b2d92a864
This makes it more useful as an autocleanup func. Also, add a minimal test of g_value_init/g_value_reset/g_value_unset. https://bugzilla.gnome.org/show_bug.cgi?id=755766
55 lines
1.5 KiB
Makefile
55 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
|
|
|
|
if !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: Makefile.am marshalers.list
|
|
$(AM_V_GEN) $(glib_genmarshal) --prefix=test $(srcdir)/marshalers.list --header --valist-marshallers > marshalers.h
|
|
|
|
marshalers.c: Makefile.am marshalers.h marshalers.list
|
|
$(AM_V_GEN) (echo "#include \"marshalers.h\""; $(glib_genmarshal) --prefix=test $(srcdir)/marshalers.list --body --valist-marshallers) > $@.tmp && mv $@.tmp $@
|
|
|
|
endif # !CROSS_COMPILING
|