-
Notifications
You must be signed in to change notification settings - Fork 45
Expand file tree
/
Copy pathmeson.build
More file actions
81 lines (70 loc) · 2.78 KB
/
meson.build
File metadata and controls
81 lines (70 loc) · 2.78 KB
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
81
project(
'wf-shell',
'c',
'cpp',
version: '0.11.0',
license: 'MIT',
meson_version: '>=0.51.0',
default_options: [
'cpp_std=c++17',
'c_std=c11',
'warning_level=2',
'werror=false',
],
)
wayfire = dependency('wayfire')
pam = dependency('pam')
wayland_client = dependency('wayland-client')
wayland_protos = dependency('wayland-protocols')
gtkmm = dependency('gtkmm-4.0', version: '>=4.12')
wfconfig = dependency('wf-config', version: '>=0.7.0') #TODO fallback submodule
epoxy = dependency('epoxy')
gtklayershell = dependency('gtk4-layer-shell-0', version: '>=1.3.0', required: false)
if not gtklayershell.found()
gtklayershell = dependency('gtk4-layer-shell', fallback: ['gtk4-layer-shell'])
endif
libpulse = dependency('libpulse', required: get_option('volume-widget'))
libgvc = subproject('gvc', default_options: ['static=true'], required: get_option('volume-widget'))
pipewire = dependency('libpipewire-0.3', required: get_option('wp-mixer-widget'))
wireplumber = dependency('wireplumber-0.5', required: get_option('wp-mixer-widget'))
dbusmenu_gtk = dependency('dbusmenu-glib-0.4')
xkbregistry = dependency('xkbregistry')
json = subproject('wf-json').get_variable('wfjson')
openssl = dependency('openssl')
gbm = dependency('gbm', required: get_option('live-previews-dmabuf'))
drm = dependency('libdrm', required: get_option('live-previews-dmabuf'))
if get_option('wayland-logout') == true
wayland_logout = subproject('wayland-logout')
endif
if get_option('weather') == true
subproject('owf')
add_project_arguments('-DHAVE_WEATHER=1', language: 'cpp')
endif
if gbm.found() and drm.found() and not get_option('live-previews-dmabuf').disabled()
add_project_arguments('-DHAVE_DMABUF=1', language: 'cpp')
endif
if libpulse.found()
libgvc = libgvc.get_variable('libgvc_dep')
add_project_arguments('-DHAVE_PULSE=1', language: 'cpp')
endif
if wireplumber.found()
add_project_arguments('-DHAVE_WIREPLUMBER=1', language: 'cpp')
endif
needs_libinotify = ['freebsd', 'dragonfly'].contains(host_machine.system())
libinotify = dependency('libinotify', required: needs_libinotify)
add_project_arguments(
['-Wno-pedantic', '-Wno-unused-parameter', '-Wno-parentheses'],
language: 'cpp',
)
resource_dir = join_paths(get_option('prefix'), 'share', 'wf-shell')
metadata_dir = join_paths(resource_dir, 'metadata')
sysconf_dir = join_paths(get_option('prefix'), get_option('sysconfdir'))
icon_dir = join_paths(get_option('prefix'), 'share', 'wf-shell', 'icons')
add_project_arguments('-DICONDIR="' + icon_dir + '"', language: 'cpp')
add_project_arguments('-DRESOURCEDIR="' + resource_dir + '"', language: 'cpp')
add_project_arguments('-DMETADATA_DIR="' + metadata_dir + '"', language: 'cpp')
add_project_arguments('-DSYSCONF_DIR="' + sysconf_dir + '"', language: 'cpp')
subdir('metadata')
subdir('proto')
subdir('data')
subdir('src')