2015-12-29 12:44:53 +00:00
|
|
|
include $(top_srcdir)/Makefile.decl
|
|
|
|
|
|
|
|
NULL =
|
|
|
|
|
|
|
|
CLEANFILES =
|
|
|
|
|
|
|
|
TEST_PROGS += test-css-style
|
|
|
|
test_in_files = test-css-style.test.in
|
|
|
|
|
|
|
|
check_PROGRAMS = $(TEST_PROGS)
|
|
|
|
|
|
|
|
test_css_style_CFLAGS = \
|
|
|
|
-I$(top_srcdir) \
|
|
|
|
-I$(top_builddir)/gdk \
|
|
|
|
-I$(top_srcdir)/gdk \
|
|
|
|
$(GTK_DEBUG_FLAGS) \
|
2016-01-03 20:37:40 +00:00
|
|
|
$(GTK_DEP_CFLAGS) \
|
|
|
|
$(NULL)
|
2015-12-29 12:44:53 +00:00
|
|
|
|
|
|
|
test_css_style_LDADD = \
|
2016-10-05 19:38:34 +00:00
|
|
|
$(top_builddir)/gdk/libgdk-4.la \
|
|
|
|
$(top_builddir)/gtk/libgtk-4.la \
|
2016-01-03 20:37:40 +00:00
|
|
|
$(GTK_DEP_LIBS) \
|
|
|
|
$(NULL)
|
2015-12-29 12:44:53 +00:00
|
|
|
|
|
|
|
test_css_style_SOURCES = \
|
2016-01-03 20:37:40 +00:00
|
|
|
test-css-style.c \
|
|
|
|
resources.c \
|
|
|
|
$(NULL)
|
2015-12-29 12:44:53 +00:00
|
|
|
|
|
|
|
test_data = \
|
2016-01-10 19:50:24 +00:00
|
|
|
adjacent-states.ui adjacent-states.css adjacent-states.nodes \
|
2016-01-29 23:23:25 +00:00
|
|
|
colornames.ui colornames.css colornames.nodes \
|
2016-01-10 19:50:24 +00:00
|
|
|
currentcolor.ui currentcolor.css currentcolor.nodes \
|
2016-03-24 12:24:45 +00:00
|
|
|
font.ui font.css font.nodes \
|
2016-01-10 19:50:24 +00:00
|
|
|
gradient.ui gradient.css gradient.nodes \
|
|
|
|
inherit.ui inherit.css inherit.nodes \
|
|
|
|
label.ui label.css label.nodes \
|
|
|
|
nth-child.ui nth-child.css nth-child.nodes \
|
2015-12-29 12:44:53 +00:00
|
|
|
$(NULL)
|
|
|
|
|
2016-01-03 20:37:40 +00:00
|
|
|
BUILT_SOURCES = resources.c
|
|
|
|
|
|
|
|
resource_files = $(shell $(GLIB_COMPILE_RESOURCES) --sourcedir=$(srcdir) --generate-dependencies $(builddir)/test-css-style.gresource.xml)
|
|
|
|
|
|
|
|
resources.c: test-css-style.gresource.xml $(resource_files)
|
|
|
|
$(AM_V_GEN) $(GLIB_COMPILE_RESOURCES) --target=$@ --sourcedir=$(srcdir) --generate-source $(srcdir)/test-css-style.gresource.xml
|
|
|
|
|
|
|
|
EXTRA_DIST += \
|
|
|
|
test-css-style.gresource.xml \
|
|
|
|
$(resource_files) \
|
|
|
|
$(test_in_files) \
|
|
|
|
$(test_data) \
|
|
|
|
$(NULL)
|
2015-12-29 12:44:53 +00:00
|
|
|
|
|
|
|
if BUILDOPT_INSTALL_TESTS
|
|
|
|
insttestdir=$(libexecdir)/installed-tests/$(PACKAGE)/css/style
|
|
|
|
insttest_PROGRAMS = $(TEST_PROGS)
|
|
|
|
insttest_DATA = $(test_data)
|
|
|
|
|
|
|
|
substitutions = \
|
|
|
|
-e s,@libexecdir\@,$(libexecdir),g \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
test_files = $(test_in_files:.test.in=.test)
|
|
|
|
|
|
|
|
$(test_files): %.test: %.test.in
|
2016-01-03 19:33:19 +00:00
|
|
|
$(AM_V_GEN) sed $(substitutions) $< > $@.tmp && mv $@.tmp $@
|
2015-12-29 12:44:53 +00:00
|
|
|
|
2016-01-03 16:59:15 +00:00
|
|
|
EXTRA_DIST += \
|
|
|
|
$(test_files) \
|
|
|
|
$(NULL)
|
2015-12-29 12:44:53 +00:00
|
|
|
|
|
|
|
CLEANFILES += $(test_files)
|
|
|
|
|
|
|
|
testmetadir = $(datadir)/installed-tests/$(PACKAGE)/css/style
|
|
|
|
testmeta_DATA = $(test_files)
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
|
|
-include $(top_srcdir)/git.mk
|