-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmeson.build
80 lines (66 loc) · 1.8 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
project('wayfarer', 'vala', 'c', version : '1.2.4')
# For now, as some replacements are not well defined.
show_deprecated = get_option('deprecations')
if show_deprecated == false
add_project_arguments('-Wno-deprecated-declarations', language : 'c')
add_project_arguments('--enable-deprecated', language : 'vala')
endif
conf_data = configuration_data()
conf_data.set_quoted('version', meson.project_version())
app = 'wayfarer'
pymodule = import('python3')
python3 = pymodule.find_python()
res = run_command(python3, 'meson/baseinfo.py', check: true)
if res.returncode() == 0
message(res.stdout().strip())
endif
gnome = import('gnome')
deps = []
configure_file(
input : 'src/wayfarer-config.h.in',
output : 'wayfarer-config.h',
configuration : conf_data
)
configuration_inc = include_directories('.')
vopts=[]
subdir('valaopts')
subdir('src')
subdir('data')
subdir('meson')
dependency('glib-2.0', version: '>=2.30', required: true)
executable(
meson.project_name(),
wresources,
wguisrcs,
dependencies: [
dependency('gtk4'),
dependency('gio-2.0'),
dependency('gstreamer-1.0'),
dependency('gstreamer-pbutils-1.0'),
dependency('libpulse-mainloop-glib'),
deps,
meson.get_compiler('vala').find_library('posix'),
meson.get_compiler('c').find_library('m'),
],
vala_args : vopts,
c_args: vcargs,
sources: wayvers_h,
include_directories : configuration_inc,
install: true,
)
executable(
'wayfarer-convert-to-schema',
convsrc,
c_args: vcargs,
dependencies: [
dependency('gio-2.0'),
meson.get_compiler('vala').find_library('posix'),
],
install: false,
)
meson.add_install_script('meson/post_install.sh')
gnome.post_install(
glib_compile_schemas: true,
gtk_update_icon_cache: true,
update_desktop_database: true
)