File: meson.build

package info (click to toggle)
gtk4 4.20.3%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 187,060 kB
  • sloc: ansic: 779,084; xml: 3,093; javascript: 3,054; python: 1,911; java: 752; sh: 682; makefile: 315; perl: 162; cpp: 21
file content (106 lines) | stat: -rw-r--r-- 2,460 bytes parent folder | download | duplicates (3)
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
csstest_env = environment()
csstest_env.set('GTK_A11Y', 'test')
csstest_env.set('GSK_RENDERER', 'cairo')
csstest_env.set('G_TEST_SRCDIR', meson.current_source_dir())
csstest_env.set('G_TEST_BUILDDIR', meson.current_build_dir())

subdir('parser')
subdir('nodes')
subdir('style')
subdir('change')

testexecdir = join_paths(installed_test_bindir, 'css')
testdatadir = join_paths(installed_test_datadir, 'css')

test_api = executable('api',
  sources: ['api.c'],
  c_args: common_cflags,
  dependencies: libgtk_dep,
  install: get_option('install-tests'),
  install_dir: testexecdir,
)

test('api', test_api,
  args: ['--tap', '-k' ],
  protocol: 'tap',
  env: csstest_env,
  suite: 'css',
)

test_data = executable('data',
  sources: ['data.c'],
  c_args: common_cflags + ['-DGTK_COMPILATION'],
  include_directories: [confinc, ],
  dependencies: libgtk_static_dep,
  install: get_option('install-tests'),
  install_dir: testexecdir,
)

test('data', test_data,
  args: ['--tap', '-k' ],
  protocol: 'tap',
  env: csstest_env,
  suite: 'css',
)

transition = executable('transition',
  sources: ['transition.c'],
  c_args: common_cflags + ['-DGTK_COMPILATION'],
  dependencies: libgtk_static_dep,
  install: get_option('install-tests'),
  install_dir: testexecdir,
)

test('transition', transition,
     args: [ '--tap', '-k' ],
     protocol: 'tap',
     env: csstest_env,
     suite: 'css'
)

color = executable('color',
  sources: ['color.c'],
  c_args: common_cflags + ['-DGTK_COMPILATION'],
  dependencies: libgtk_static_dep,
  install: get_option('install-tests'),
  install_dir: testexecdir,
)

test('color', color,
     args: [ '--tap', '-k'],
     protocol: 'tap',
     env: csstest_env,
     suite: 'css'
)

compute = executable('compute',
  sources: ['compute.c'],
  c_args: common_cflags + ['-DGTK_COMPILATION'],
  dependencies: libgtk_static_dep,
  install: get_option('install-tests'),
  install_dir: testexecdir,
)

test('compute', compute,
  args: [ '--tap', '-k'],
  protocol: 'tap',
  env: csstest_env,
  suite: 'css'
)
if get_option('install-tests')
  conf = configuration_data()
  conf.set('libexecdir', gtk_libexecdir)
  configure_file(input: 'api.test.in',
    output: 'api.test',
    configuration: conf,
    install_dir: testdatadir,
  )

  conf = configuration_data()
  conf.set('libexecdir', gtk_libexecdir)
  configure_file(input: 'data.test.in',
    output: 'data.test',
    configuration: conf,
    install_dir: testdatadir,
  )
endif