summaryrefslogtreecommitdiff
path: root/testsuite/css/style/Makefile.am
blob: 56868b5d7419b02671cf5e8ba6b367f5ef34e3b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
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)              \
        $(GTK_DEP_CFLAGS)		\
	$(NULL)

test_css_style_LDADD = \
        $(top_builddir)/gtk/libgtk-4.la \
        $(GTK_DEP_LIBS)			\
	$(NULL)

test_css_style_SOURCES = \
        test-css-style.c		\
	resources.c			\
	$(NULL)

test_data = \
	adjacent-states.ui 	adjacent-states.css	adjacent-states.nodes 	\
	colornames.ui		colornames.css		colornames.nodes	\
        currentcolor.ui 	currentcolor.css        currentcolor.nodes      \
	font.ui			font.css		font.nodes		\
        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         \
	$(NULL)

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)

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
	$(AM_V_GEN) sed $(substitutions) $< > $@.tmp && mv $@.tmp $@

EXTRA_DIST += \
	$(test_files) 		\
	$(NULL)

CLEANFILES += $(test_files)

testmetadir = $(datadir)/installed-tests/$(PACKAGE)/css/style
testmeta_DATA = $(test_files)
endif


-include $(top_srcdir)/git.mk