2008-02-05 18:42:09 +01:00
|
|
|
include $(top_srcdir)/Makefile.decl
|
2013-05-29 06:15:55 +02:00
|
|
|
NULL =
|
2008-02-05 18:42:09 +01:00
|
|
|
|
2012-08-27 13:45:08 +02:00
|
|
|
AM_CPPFLAGS = \
|
2013-02-03 04:54:15 +01:00
|
|
|
-g \
|
|
|
|
-DG_LOG_DOMAIN=\"GLib-GObject\" \
|
|
|
|
$(gobject_INCLUDES) \
|
|
|
|
$(GLIB_DEBUG_FLAGS)
|
2008-02-05 18:42:09 +01:00
|
|
|
|
2013-02-26 17:19:51 +01:00
|
|
|
AM_CFLAGS = $(GLIB_WARN_CFLAGS)
|
|
|
|
|
2012-03-08 20:29:18 +01:00
|
|
|
if CROSS_COMPILING
|
|
|
|
glib_genmarshal=$(GLIB_GENMARSHAL)
|
|
|
|
else
|
|
|
|
glib_genmarshal=$(top_builddir)/gobject/glib-genmarshal
|
|
|
|
endif
|
|
|
|
|
2008-02-05 18:42:09 +01:00
|
|
|
noinst_PROGRAMS = $(TEST_PROGS)
|
2010-12-28 05:49:12 +01:00
|
|
|
LDADD = ../libgobject-2.0.la $(top_builddir)/gthread/libgthread-2.0.la $(top_builddir)/glib/libglib-2.0.la
|
2008-02-05 18:42:09 +01:00
|
|
|
|
2011-02-14 05:47:42 +01:00
|
|
|
TEST_PROGS += \
|
2012-09-01 06:20:22 +02:00
|
|
|
qdata \
|
2011-02-14 05:47:42 +01:00
|
|
|
boxed \
|
|
|
|
enums \
|
|
|
|
param \
|
2011-03-02 15:48:40 +01:00
|
|
|
signals \
|
2011-02-14 05:47:42 +01:00
|
|
|
threadtests \
|
|
|
|
dynamictests \
|
|
|
|
binding \
|
|
|
|
properties \
|
|
|
|
reference \
|
2011-06-21 06:52:43 +02:00
|
|
|
ifaceproperties \
|
2013-05-29 06:15:55 +02:00
|
|
|
valuearray \
|
|
|
|
type \
|
|
|
|
$(NULL)
|
2011-02-14 05:47:42 +01:00
|
|
|
|
2012-03-02 18:06:36 +01:00
|
|
|
signals_SOURCES = signals.c marshalers.c
|
2012-03-02 16:16:17 +01:00
|
|
|
|
2012-03-02 18:06:36 +01:00
|
|
|
marshalers.h: Makefile.am marshalers.list
|
2012-03-08 20:29:18 +01:00
|
|
|
$(AM_V_GEN) $(glib_genmarshal) --prefix=test $(srcdir)/marshalers.list --header --valist-marshallers > marshalers.h
|
2012-03-02 16:16:17 +01:00
|
|
|
|
2012-03-02 18:06:36 +01:00
|
|
|
marshalers.c: Makefile.am marshalers.list
|
2012-11-02 00:36:41 +01:00
|
|
|
$(AM_V_GEN) (echo "#include \"marshalers.h\""; $(glib_genmarshal) --prefix=test $(srcdir)/marshalers.list --body --valist-marshallers) > $@.tmp && mv $@.tmp $@
|
2012-03-02 16:16:17 +01:00
|
|
|
|
2012-03-02 18:06:36 +01:00
|
|
|
BUILT_SOURCES = marshalers.h marshalers.c
|
|
|
|
CLEANFILES = marshalers.h marshalers.c
|
|
|
|
|
2010-12-28 05:49:12 +01:00
|
|
|
ifaceproperties_SOURCES = ifaceproperties.c testcommon.h
|
2012-03-02 16:16:17 +01:00
|
|
|
|
2012-03-02 18:06:36 +01:00
|
|
|
EXTRA_DIST += marshalers.list
|
2013-05-20 03:49:51 +02:00
|
|
|
|
|
|
|
if BUILDOPT_INSTALL_TESTS
|
|
|
|
insttestdir = $(pkglibexecdir)/installed-tests
|
|
|
|
insttest_PROGRAMS = $(TEST_PROGS)
|
|
|
|
|
|
|
|
testmetadir = $(datadir)/installed-tests/$(PACKAGE)
|
|
|
|
testmeta_DATA = $(TEST_PROGS:=.test)
|
|
|
|
|
2013-05-24 23:16:44 +02:00
|
|
|
%.test: %$(EXEEXT) Makefile
|
2013-05-20 03:49:51 +02:00
|
|
|
$(AM_V_GEN) (echo '[Test]' > $@.tmp; \
|
|
|
|
echo 'Type=session' >> $@.tmp; \
|
|
|
|
echo 'Exec=env G_TEST_DATA=$(pkglibexecdir)/installed-tests $(pkglibexecdir)/installed-tests/$<' >> $@.tmp; \
|
|
|
|
mv $@.tmp $@)
|
|
|
|
|
|
|
|
|
|
|
|
endif
|