-
Notifications
You must be signed in to change notification settings - Fork 3
/
meson.build
40 lines (35 loc) · 973 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
35
36
37
38
39
40
project(
'license-manager',
'cpp',
default_options: [
'warning_level=3',
'werror=true',
'cpp_std=c++20'
],
license: 'Apache-2.0',
version: '0.1',
)
sdbusplus = dependency('sdbusplus')
sdeventplus = dependency('sdeventplus')
phosphorlogging = dependency('phosphor-logging')
phosphordbusinterfaces = dependency('phosphor-dbus-interfaces')
executable('license-manager',
'mainapp.cpp',
dependencies: [
sdbusplus, sdeventplus, phosphorlogging,
phosphordbusinterfaces
],
implicit_include_directories: true,
install: true
)
systemd = dependency('systemd')
systemd_system_unit_dir = systemd.get_pkgconfig_variable(
'systemdsystemunitdir',
define_variable: ['prefix', get_option('prefix')])
configure_file(
copy: true,
input: 'license-manager.service',
install: true,
install_dir: systemd_system_unit_dir,
output: 'license-manager.service',
)