|
1 | 1 | project( |
2 | 2 | 'wf-shell', |
3 | | - 'c', |
| 3 | + 'c', |
4 | 4 | 'cpp', |
5 | 5 | version: '0.10.0', |
6 | 6 | license: 'MIT', |
7 | 7 | meson_version: '>=0.51.0', |
8 | 8 | default_options: [ |
9 | 9 | 'cpp_std=c++17', |
10 | | - 'c_std=c11', |
| 10 | + 'c_std=c11', |
11 | 11 | 'warning_level=2', |
12 | 12 | 'werror=false', |
13 | 13 | ], |
14 | 14 | ) |
15 | 15 |
|
16 | | -wayfire = dependency('wayfire') |
| 16 | +wayfire = dependency('wayfire') |
17 | 17 | wayland_client = dependency('wayland-client') |
18 | 18 | wayland_protos = dependency('wayland-protocols') |
19 | | -gtkmm = dependency('gtkmm-3.0', version: '>=3.24') |
20 | | -wfconfig = dependency('wf-config', version: '>=0.7.0') #TODO fallback submodule |
21 | | -gtklayershell = dependency('gtk-layer-shell-0', version: '>= 0.6', fallback: ['gtk-layer-shell', 'gtk_layer_shell']) |
22 | | -libpulse = dependency('libpulse', required : get_option('pulse')) |
23 | | -dbusmenu_gtk = dependency('dbusmenu-gtk3-0.4') |
24 | | -libgvc = subproject('gvc', default_options: ['static=true'], required : get_option('pulse')) |
| 19 | +gtkmm = dependency('gtkmm-4.0', version: '>=4.12') |
| 20 | +wfconfig = dependency('wf-config', version: '>=0.7.0') #TODO fallback submodule |
| 21 | +epoxy = dependency('epoxy') |
| 22 | +gtklayershell = dependency('gtk4-layer-shell') |
| 23 | +libpulse = dependency('libpulse', required: get_option('pulse')) |
| 24 | +dbusmenu_gtk = dependency('dbusmenu-glib-0.4') |
| 25 | +libgvc = subproject('gvc', default_options: ['static=true'], required: get_option('pulse')) |
25 | 26 |
|
26 | 27 | if get_option('wayland-logout') == true |
27 | | - wayland_logout = subproject('wayland-logout') |
| 28 | + wayland_logout = subproject('wayland-logout') |
28 | 29 | endif |
29 | 30 |
|
30 | 31 | if libpulse.found() |
31 | | - libgvc = libgvc.get_variable('libgvc_dep') |
32 | | - add_project_arguments('-DHAVE_PULSE=1', language : 'cpp') |
| 32 | + libgvc = libgvc.get_variable('libgvc_dep') |
| 33 | + add_project_arguments('-DHAVE_PULSE=1', language: 'cpp') |
33 | 34 | endif |
34 | 35 |
|
35 | 36 | needs_libinotify = ['freebsd', 'dragonfly'].contains(host_machine.system()) |
36 | | -libinotify = dependency('libinotify', required: needs_libinotify) |
| 37 | +libinotify = dependency('libinotify', required: needs_libinotify) |
37 | 38 |
|
38 | | -add_project_arguments(['-Wno-pedantic', '-Wno-unused-parameter', '-Wno-parentheses'], language: 'cpp') |
| 39 | +add_project_arguments( |
| 40 | + ['-Wno-pedantic', '-Wno-unused-parameter', '-Wno-parentheses'], |
| 41 | + language: 'cpp', |
| 42 | +) |
39 | 43 |
|
40 | 44 | resource_dir = join_paths(get_option('prefix'), 'share', 'wayfire') |
41 | 45 | metadata_dir = join_paths(resource_dir, 'metadata', 'wf-shell') |
42 | 46 | sysconf_dir = join_paths(get_option('prefix'), get_option('sysconfdir')) |
43 | 47 |
|
44 | 48 | icon_dir = join_paths(get_option('prefix'), 'share', 'wayfire', 'icons') |
45 | | -add_project_arguments('-DICONDIR="' + icon_dir + '"', language : 'cpp') |
46 | | -add_project_arguments('-DRESOURCEDIR="' + resource_dir + '"', language : 'cpp') |
47 | | -add_project_arguments('-DMETADATA_DIR="' + metadata_dir + '"', language : 'cpp') |
48 | | -add_project_arguments('-DSYSCONF_DIR="' + sysconf_dir + '"', language : 'cpp') |
| 49 | +add_project_arguments('-DICONDIR="' + icon_dir + '"', language: 'cpp') |
| 50 | +add_project_arguments('-DRESOURCEDIR="' + resource_dir + '"', language: 'cpp') |
| 51 | +add_project_arguments('-DMETADATA_DIR="' + metadata_dir + '"', language: 'cpp') |
| 52 | +add_project_arguments('-DSYSCONF_DIR="' + sysconf_dir + '"', language: 'cpp') |
49 | 53 |
|
50 | 54 | subdir('metadata') |
51 | 55 | subdir('proto') |
|
0 commit comments