-
Notifications
You must be signed in to change notification settings - Fork 2
/
meson.build
66 lines (56 loc) · 1.58 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
65
66
project('libmanette','c',
version: '0.2.10',
meson_version: '>= 0.53.0',
)
gnome = import('gnome')
prefix = get_option('prefix')
libexecdir = prefix / get_option('libexecdir')
confinc = include_directories('.')
srcinc = include_directories('src')
libmanette_version = meson.project_version()
libmanette_api_version = '0.2'
libmanette_module = 'manette-' + libmanette_api_version
glib_version = '>= 2.50'
gudev_version = '>= 1.0'
libevdev_version = '>= 1.4.5'
gio = dependency ('gio-2.0', version: glib_version)
glib = dependency ('glib-2.0', version: glib_version)
gobject = dependency ('gobject-2.0', version: glib_version)
gudev = dependency ('gudev-1.0', version: gudev_version, required : get_option('gudev'))
libevdev = dependency ('libevdev', version: libevdev_version)
config_h = configuration_data()
configure_file(
output: 'libmanette-config.h',
configuration: config_h,
)
subdir('src')
if get_option('build-tests')
subdir('tests')
endif
if get_option('doc')
subdir('doc')
endif
if get_option('demos')
subdir('demos')
endif
summary(
{
'Demos': get_option('demos'),
'Build tests': get_option('build-tests'),
'Install tests': get_option('install-tests'),
}, section: 'Demos and tests')
summary(
{
'Documentation': get_option('doc'),
'Introspection': get_option('introspection'),
'Vala bindings': get_option('vapi'),
}, section: 'Documentation and introspection')
summary(
{
'gudev': get_option('gudev').enabled(),
}, section: 'Optional dependencies')
summary(
{
'prefix': prefix,
'libexecdir': libexecdir,
}, section: 'Directories')