-
Notifications
You must be signed in to change notification settings - Fork 31
/
Copy pathmeson.build
55 lines (47 loc) · 1.33 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
project(
'wayfire-plugins-extra',
'c',
'cpp',
version: '0.10.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', version: '>=0.9.0')
giomm = dependency('giomm-2.4', required: false)
wayland_protos = dependency('wayland-protocols', version: '>=1.12')
wayland_server = dependency('wayland-server')
evdev = dependency('libevdev')
json = dependency('nlohmann_json', required: false)
if get_option('enable_wayfire_shadows') == true
wayfire_shadows = subproject('wayfire-shadows')
endif
if get_option('enable_focus_request') == true
focus_request = subproject('focus-request')
endif
if get_option('enable_pixdecor') == true
pixdecor = subproject('pixdecor')
endif
if get_option('enable_filters') == true
filters = subproject('filters')
endif
add_project_arguments(['-DWLR_USE_UNSTABLE'], language: ['cpp', 'c'])
add_project_arguments(['-DWAYFIRE_PLUGIN'], language: ['cpp', 'c'])
add_project_link_arguments(['-rdynamic'], language:'cpp')
add_project_arguments(['-Wno-unused-parameter'], language: 'cpp')
subdir('proto')
subdir('src')
subdir('metadata')
summary = [
'',
'----------------',
'wayfire-plugins-extra @0@'.format(meson.project_version()),
'----------------',
''
]
message('\n'.join(summary))