| project( |
| 'kcsbridge', |
| 'cpp', |
| version: '0.1', |
| meson_version: '>=0.57.0', |
| default_options: [ |
| 'warning_level=3', |
| 'cpp_std=c++20', |
| ]) |
| |
| subdir('src') |
| |
| systemd = dependency('systemd') |
| if systemd.found() |
| conf_data = configuration_data() |
| conf_data.set('BIN', get_option('prefix') / get_option('libexecdir') / kcsbridged.name()) |
| configure_file( |
| input: 'phosphor-ipmi-kcs@.service.in', |
| output: 'phosphor-ipmi-kcs@.service', |
| configuration: conf_data, |
| install: true, |
| install_dir: systemd.get_variable(pkgconfig: 'systemdsystemunitdir')) |
| endif |