William A. Kennington III | 362d087 | 2021-05-11 14:00:02 -0700 | [diff] [blame] | 1 | project( |
Patrick Williams | a46dd8f | 2025-02-01 08:37:33 -0500 | [diff] [blame] | 2 | 'kcsbridge', |
| 3 | 'cpp', |
| 4 | version: '0.1', |
| 5 | meson_version: '>=1.1.1', |
| 6 | default_options: ['warning_level=3', 'cpp_std=c++23'], |
| 7 | ) |
William A. Kennington III | 362d087 | 2021-05-11 14:00:02 -0700 | [diff] [blame] | 8 | |
William A. Kennington III | 1cbb584 | 2021-05-11 14:14:57 -0700 | [diff] [blame] | 9 | subdir('src') |
William A. Kennington III | 362d087 | 2021-05-11 14:00:02 -0700 | [diff] [blame] | 10 | |
| 11 | systemd = dependency('systemd') |
| 12 | if systemd.found() |
Patrick Williams | a46dd8f | 2025-02-01 08:37:33 -0500 | [diff] [blame] | 13 | conf_data = configuration_data() |
| 14 | conf_data.set( |
| 15 | 'BIN', |
| 16 | get_option('prefix') / get_option('libexecdir') / kcsbridged.name(), |
| 17 | ) |
| 18 | configure_file( |
| 19 | input: 'phosphor-ipmi-kcs@.service.in', |
| 20 | output: 'phosphor-ipmi-kcs@.service', |
| 21 | configuration: conf_data, |
| 22 | install: true, |
| 23 | install_dir: systemd.get_variable('systemdsystemunitdir'), |
| 24 | ) |
William A. Kennington III | 362d087 | 2021-05-11 14:00:02 -0700 | [diff] [blame] | 25 | endif |