-
Notifications
You must be signed in to change notification settings - Fork 29
/
meson.build
51 lines (45 loc) · 1.24 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
project('jelling', 'c')
libexecdir = join_paths(get_option('prefix'), get_option('libexecdir'))
libsystemd = dependency('libsystemd', version: '>=221')
systemd = dependency('systemd', version: '>=221')
bluez = dependency('bluez', version: '>=5.42')
unitdir = systemd.get_pkgconfig_variable('systemdsystemunitdir')
modsdir = systemd.get_pkgconfig_variable('modulesloaddir')
config = configuration_data()
config.set('libexecdir', libexecdir)
configure_file(
input: 'jelling.service.in',
output: 'jelling.service',
configuration: config,
install_dir: unitdir
)
install_data(
sources: 'jelling.conf',
install_dir: modsdir
)
executable(
'jelling',
'jelling.c',
install_dir : libexecdir,
dependencies: libsystemd,
install: true,
c_args: [
'-Wall',
'-Wextra',
'-Werror',
'-Wstrict-aliasing',
'-Wchar-subscripts',
'-Wformat-security',
'-Wmissing-declarations',
'-Wmissing-prototypes',
'-Wnested-externs',
'-Wpointer-arith',
'-Wshadow',
'-Wsign-compare',
'-Wstrict-prototypes',
'-Wtype-limits',
'-Wunused-function',
'-Wno-missing-field-initializers',
'-Wno-unused-parameter',
]
)