1include $(top_srcdir)/Makefile.decl
2
3NULL =
4
5CLEANFILES =
6
7TEST_PROGS += test-css-nodes
8test_in_files = test-css-nodes.test.in
9
10check_PROGRAMS = $(TEST_PROGS)
11
12test_css_nodes_CFLAGS = \
13	-I$(top_srcdir)                 \
14	-I$(top_builddir)/gdk           \
15	-I$(top_srcdir)/gdk             \
16	$(GTK_DEBUG_FLAGS)              \
17	$(GTK_DEP_CFLAGS)		\
18	$(NULL)
19
20test_css_nodes_LDADD = \
21	$(top_builddir)/gdk/libgdk-3.la \
22	$(top_builddir)/gtk/libgtk-3.la \
23	$(GTK_DEP_LIBS)			\
24	$(NULL)
25
26test_css_nodes_SOURCES = \
27	test-css-nodes.c		\
28	$(NULL)
29
30test_data = \
31	box.ltr.ui		box.ltr.nodes			\
32	box.rtl.ui		box.rtl.nodes			\
33	box-packing.ltr.ui	box-packing.ltr.nodes		\
34	box-packing.rtl.ui	box-packing.rtl.nodes		\
35	buttons.ui 		buttons.nodes 			\
36	checkbutton.ltr.ui	checkbutton.ltr.nodes		\
37	checkbutton.rtl.ui	checkbutton.rtl.nodes		\
38	combobox.ui		combobox.nodes			\
39	entries.ui 		entries.nodes 			\
40	expander.ltr.ui		expander.ltr.nodes		\
41	expander.rtl.ui		expander.rtl.nodes		\
42	levelbar.ltr.ui 	levelbar.ltr.nodes		\
43	levelbar.rtl.ui 	levelbar.rtl.nodes		\
44	notebook-arrows.ui 	notebook-arrows.nodes 		\
45	notebook-arrows2.ui 	notebook-arrows2.nodes 		\
46	notebook.top.ltr.ui 	notebook.top.ltr.nodes 		\
47	notebook.top.rtl.ui 	notebook.top.rtl.nodes 		\
48	notebook.left.ltr.ui 	notebook.left.ltr.nodes 	\
49	notebook.left.rtl.ui 	notebook.left.rtl.nodes 	\
50	notebook.right.ltr.ui 	notebook.right.ltr.nodes 	\
51	notebook.right.rtl.ui 	notebook.right.rtl.nodes 	\
52	notebook.bottom.ltr.ui 	notebook.bottom.ltr.nodes 	\
53	notebook.bottom.rtl.ui 	notebook.bottom.rtl.nodes 	\
54	paned.ltr.ui		paned.ltr.nodes			\
55	paned.rtl.ui		paned.rtl.nodes			\
56	progressbar.ui 		progressbar.nodes 		\
57	scale.ui		scale.nodes			\
58	$(NULL)
59
60EXTRA_DIST += $(test_in_files) $(test_data) meson.build
61
62if BUILDOPT_INSTALL_TESTS
63insttestdir=$(libexecdir)/installed-tests/$(PACKAGE)/css/nodes
64insttest_PROGRAMS = $(TEST_PROGS)
65insttest_DATA = $(test_data)
66
67substitutions = \
68	-e s,@libexecdir\@,$(libexecdir),g \
69	$(NULL)
70
71test_files = $(test_in_files:.test.in=.test)
72
73$(test_files): %.test: %.test.in
74	$(AM_V_GEN) sed $(substitutions) $< > $@.tmp && mv $@.tmp $@
75
76EXTRA_DIST += $(test_files)
77
78CLEANFILES += $(test_files)
79
80testmetadir = $(datadir)/installed-tests/$(PACKAGE)/css/nodes
81testmeta_DATA = $(test_files)
82endif
83
84
85-include $(top_srcdir)/git.mk
86