blob: ab4f8a022e1d46e2f2482eae0004a5e84c1f48c7 [file] [log] [blame]
William A. Kennington III362d0872021-05-11 14:00:02 -07001project(
2 'kcsbridge',
3 'cpp',
4 version: '0.1',
Patrick Williams9a324232023-07-12 11:15:47 -05005 meson_version: '>=1.1.1',
William A. Kennington III362d0872021-05-11 14:00:02 -07006 default_options: [
7 'warning_level=3',
Patrick Williams9a324232023-07-12 11:15:47 -05008 'cpp_std=c++23',
William A. Kennington III362d0872021-05-11 14:00:02 -07009 ])
10
William A. Kennington III1cbb5842021-05-11 14:14:57 -070011subdir('src')
William A. Kennington III362d0872021-05-11 14:00:02 -070012
13systemd = dependency('systemd')
14if systemd.found()
William A. Kennington IIIe2938492021-05-11 14:27:17 -070015 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 Williamse8d514f2023-04-12 08:01:19 -050022 install_dir: systemd.get_variable('systemdsystemunitdir'))
William A. Kennington III362d0872021-05-11 14:00:02 -070023endif