summaryrefslogtreecommitdiff
path: root/meson.build
blob: e9f5bf45eb9a0a0255b8045f29b94777496e9eec (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
project('rendercheck', 'c')
project_version = '1.5'
cc = meson.get_compiler('c')

if cc.has_header('err.h')
    add_project_arguments('-DHAVE_ERR_H', language: 'c')
endif

add_project_arguments('-D_GNU_SOURCE', language: 'c')

srcs = [
    'main.c',
    'ops.c',
    'tests.c',
    't_blend.c',
    't_bug7366.c',
    't_composite.c',
    't_dstcoords.c',
    't_fill.c',
    't_gradient.c',
    't_gtk_argb_xbgr.c',
    't_libreoffice_xrgb.c',
    't_repeat.c',
    't_shmblend.c',
    't_srccoords.c',
    't_tsrccoords.c',
    't_tsrccoords2.c',
    't_triangles.c',
]

version_config = configuration_data()
version_config.set_quoted('VERSION', project_version)

configure_file(
    output: 'version.h',
    configuration: version_config,
)

executable(
    'rendercheck',
    srcs,
    dependencies: [
        dependency('xrender'),
        dependency('xext'),
        dependency('x11'),
        dependency('xproto', version: '>= 7.0.17'),
    ],
    install: true,
)

man_config = configuration_data()
man_config.set('version', project_version)
rendercheck_man = configure_file(
    input: 'man/rendercheck.man',
    output: 'rendercheck.1',
    configuration: man_config,
    install: true,
    install_dir: join_paths(get_option('mandir'), 'man1'),
)