forked from damianatorrpm/wayfire-plugin_dbus_interface
-
Notifications
You must be signed in to change notification settings - Fork 0
/
meson.build
59 lines (50 loc) · 1.74 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
project(
'wayfire-plugin-dbus_interface',
'c',
'cpp',
version: '0.3',
license: 'MIT',
meson_version: '>=0.51.0',
default_options: [
'cpp_std=c++17',
'c_std=c17',
'werror=false',
],
)
gio = dependency('gio-2.0')
giomm = dependency('giomm-2.4', required : get_option('build_wf_prop'))
wayfire = dependency('wayfire', required : true)
wlroots = dependency('wlroots')
wfconfig = dependency('wf-config')
glib = dependency('glib-2.0')
xcb = dependency('xcb')
xcbres = dependency('xcb-res')
add_project_arguments(['-DWLR_USE_UNSTABLE'], language: ['cpp', 'c'])
add_project_arguments(['-DWAYFIRE_PLUGIN'], language: ['cpp', 'c'])
add_project_arguments(['-Wno-unused-parameter'], language: 'cpp')
add_project_link_arguments(['-rdynamic'], language:'cpp')
######################### Finish ###########################
schemas_dir = 'share/glib-2.0/schemas'
install_data('org.wayland.compositor.dbus.gschema.xml',
install_dir: join_paths(get_option('prefix'), schemas_dir))
meson.add_install_script('compile-schemas.sh', schemas_dir)
pms = shared_module('dbus_interface', 'dbus_interface.cpp',
dependencies: [wayfire, wlroots, gio, xcb, xcbres],
install: true, install_dir: wayfire.get_variable(pkgconfig: 'plugindir'),
cpp_args : ['-Wno-write-strings', '-Wno-unused-parameter', '-Wno-format-security'])
install_data('dbus_interface.xml', install_dir: wayfire.get_variable(pkgconfig: 'metadatadir'))
if get_option('build_wf_prop')
executable('wf-prop', 'wf-prop.cpp',
dependencies: [gio, giomm],
install: true,
)
endif
summary = [
'',
'----------------',
'wayfire-plugins-dbus_interface @0@'.format(meson.project_version()),
'build wf-prop: @0@'.format(get_option('build_wf_prop')),
'----------------',
''
]
message('\n'.join(summary))