-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmeson.build
58 lines (49 loc) · 1.3 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
project(
'liquidd', 'c',
default_options : ['c_std=gnu11'],
meson_version : '>=0.56.0',
)
cc = meson.get_compiler('c')
if cc.has_argument('-fno-strict-aliasing')
add_project_arguments('-fno-strict-aliasing', language : 'c')
endif
common_deps = [
dependency('glib-2.0'),
dependency('gio-2.0'),
dependency('gio-unix-2.0'),
]
server_deps = common_deps + [
dependency('gudev-1.0'),
]
sources = files(
'liquidd.c',
'hid_device.c',
'hid_device_info.c',
'hid_manager.c',
'driver.c',
'driver_hid.c',
'driver_nzxt_smart2.c',
)
gnome = import('gnome')
gdbus_sources = gnome.gdbus_codegen(
'dbus_interfaces',
sources: files(
'org.liquidctl.FanSpeedRPM.xml',
'org.liquidctl.InitDevice.xml',
'org.liquidctl.HidDevice.xml',
),
interface_prefix : 'org.liquidctl.',
namespace : 'Liquid_DBus',
object_manager: true,
autocleanup: 'all'
)
executable('liquidd', sources, gdbus_sources, dependencies : server_deps)
executable('liquidctl', 'liquidctl.c', gdbus_sources, dependencies : common_deps)
configure_file(
input : 'aux' / 'liquidd.sublime-project.in',
output : 'liquidd.sublime-project',
configuration : {
'source_dir' : meson.project_source_root(),
'build_dir' : meson.project_build_root(),
}
)