forked from linux-surface/iptsd
-
Notifications
You must be signed in to change notification settings - Fork 2
/
meson.build
34 lines (29 loc) · 911 Bytes
/
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
project('iptsd', 'cpp', 'c',
version: '1.2.1',
license: 'GPL-2.0-or-later',
meson_version: '>=0.56.0',
default_options: [
'cpp_std=c++17',
'warning_level=3',
'werror=true',
'sysconfdir=/etc',
'optimization=3',
'debug=true',
'b_lto=true',
])
prefix = get_option('prefix')
bindir = join_paths(prefix, get_option('bindir'))
datadir = join_paths(prefix, get_option('datadir'))
sysconfdir = get_option('sysconfdir')
presetdir = join_paths(datadir, 'iptsd')
configdir = join_paths(sysconfdir, 'iptsd.d')
configfile = join_paths(sysconfdir, 'iptsd.conf')
conf = configuration_data()
conf.set('bindir', bindir)
conf.set('datadir', datadir)
conf.set('sysconfdir', sysconfdir)
conf.set('presetdir', presetdir)
conf.set('configdir', configdir)
conf.set('configfile', configfile)
subdir('etc')
subdir('src')