Debian Codegraph @

testsuite/css/style/meson.build

raw
1 testexecdir = join_paths(installed_test_bindir, 'css', 'style')
2 testdatadir = join_paths(installed_test_datadir, 'css', 'style')
3
4 cssresources = gnome.compile_resources(
5 'cssresources',
6 'test-css-style.gresource.xml',
7 source_dir: '.',
8 )
9
10 test_style = executable(
11 'test-css-style',
12 'test-css-style.c',
13 cssresources,
14 dependencies: libgtk_dep,
15 install: get_option('installed_tests'),
16 install_dir: testexecdir,
17 )
18 test('css/style/test-style', test_style)
19
20 test_data = [
21 'adjacent-states.css',
22 'adjacent-states.nodes',
23 'adjacent-states.ui',
24 'colornames.css',
25 'colornames.nodes',
26 'colornames.ui',
27 'currentcolor.css',
28 'currentcolor.nodes',
29 'currentcolor.ui',
30 'font.css',
31 'font.nodes',
32 'font.ui',
33 'gradient.css',
34 'gradient.nodes',
35 'gradient.ui',
36 'inherit.css',
37 'inherit.nodes',
38 'inherit.ui',
39 'label.css',
40 'label.nodes',
41 'label.ui',
42 'nth-child.css',
43 'nth-child.nodes',
44 'nth-child.ui',
45 ]
46
47 if get_option('installed_tests')
48 conf = configuration_data()
49 conf.set('libexecdir', gtk_libexecdir)
50 configure_file(input: 'test-css-style.test.in',
51 output: 'test-css-style.test',
52 configuration: conf,
53 install_dir: testdatadir)
54
55 install_data(test_data, install_dir: testexecdir)
56 endif