blob: dfed5eb7f3ef0ec674d78d980767c8cf53d6daa1 [file] [log] [blame]
John Wedigdd9478d2023-12-08 14:44:53 -08001project(
2 'host_gpio_monitor',
3 'cpp',
4 version: '0.1',
5 meson_version: '>=1.1.1',
6 default_options: [
7 'warning_level=3',
8 'werror=true',
9 'cpp_std=c++23',
10 ],
11)
12
13executable(
14 'host_gpio_monitor',
15 'host_gpio_monitor.cpp',
16 implicit_include_directories: false,
17 dependencies:
18 [
19 dependency('stdplus'),
20 dependency('phosphor-logging'),
21 ],
22 install: true,
23 install_dir: get_option('libexecdir'),
24)
25
26systemd = dependency('systemd')
27systemunitdir = systemd.get_variable('systemdsystemunitdir')
28
29libexecdir = get_option('prefix') / get_option('libexecdir')
30
31configure_file(
32 configuration: {'BIN': libexecdir / 'host_gpio_monitor'},
33 input: 'host-gpio-monitor.service.in',
34 output: 'host-gpio-monitor.service',
35 install_mode: 'rw-r--r--',
36 install_dir: systemunitdir)