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