-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmeson.build
60 lines (49 loc) · 1.44 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
project(
'Sellerie',
'c',
version: '1.0.0',
default_options : [
'c_std=gnu11',
],
meson_version : '>= 0.45.0'
)
i18n = import('i18n')
gnome = import('gnome')
cc = meson.get_compiler('c')
have_serial_h = cc.has_header('linux/serial.h')
prefix = get_option('prefix')
add_global_arguments('-DHAVE_CONFIG_H=1', language : 'c')
add_global_arguments('-DG_LOG_USE_STRUCTURED', language : 'c')
gtk_deps = dependency('gtk4', version : '>= 4')
#vte_deps = dependency('vte-2.91', version : '>= 0.28.0')
vte_deps = dependency(
'vte-2.91-gtk4',
version: '>= 0.67',
default_options : [
'werror=false',
'gir=false',
'vapi=false',
'glade=false',
'gtk3=false',
'gtk4=true',
],
fallback: ['vte', 'libvte_gtk4_dep'])
udev_deps = dependency('gudev-1.0', version: '>= 230', required: false)
conf = configuration_data()
conf.set('VERSION', '"@0@"'.format(meson.project_version()))
conf.set('GETTEXT_PACKAGE', '"sellerie"')
conf.set('PACKAGE', '"sellerie"')
conf.set('LOCALEDIR', '"@0@/@1@"'.format(prefix, get_option('localedir')))
conf.set('P_LOCK', '"@0@"'.format(get_option('lockdir')))
if have_serial_h
conf.set('HAVE_LINUX_SERIAL_H', '1')
endif
if udev_deps.found()
conf.set('HAVE_GUDEV', '1')
endif
configure_file(output : 'config.h', configuration : conf)
config = declare_dependency(include_directories : include_directories('.'))
install_man('sellerie.1')
subdir('data')
subdir('src')
subdir('po')