-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathmeson.build
64 lines (55 loc) · 1.38 KB
/
meson.build
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
project(
'screentest',
'c',
license: 'GPL-2.0-only',
# license_files: ['COPYING'], -- needs Meson 1.1, Ubuntu 22.04 is too old
meson_version: '>= 0.61',
version: '3.1-dev',
)
i18n = import('i18n')
gmodule_dep = dependency('gmodule-2.0', version: '>= 1.1.3')
gtk_dep = dependency('gtk+-3.0', version: '>= 3.4')
screentest_deps = [
gmodule_dep,
gtk_dep,
]
prefix = get_option('prefix')
datadir = join_paths(prefix, get_option('datadir'))
localdir = join_paths(datadir, 'local')
config_h = configuration_data()
config_h.set_quoted('DATADIR', datadir)
config_h.set_quoted('LOCALEDIR', localdir)
config_h.set_quoted('PACKAGE', meson.project_name())
config_h.set_quoted('PACKAGE_NAME', meson.project_name())
config_h.set_quoted('VERSION', meson.project_version())
configure_file(
configuration: config_h,
output: 'config.h',
)
subdir('po')
screentest_srcs = [
'callbacks.c',
'screentest_colors.c',
'test_basic.c',
'test_blink.c',
'test_bright_pixels.c',
'test_gradient.c',
'test_grid.c',
'test_horizontal.c',
'test_lcdalign.c',
'test_text.c',
'test_vertical.c',
]
executable(
meson.project_name(),
'main.c',
c_args: '-DGSEAL_ENABLE -DGTK_DISABLE_DEPRECATED -DGTK_DISABLE_SINGLE_INCLUDES',
dependencies: screentest_deps,
install: true,
sources: screentest_srcs,
)
uidir = datadir / meson.project_name()
install_data(
'screentest.ui',
install_dir: uidir,
)