blob: 7c08152b63cfe26a31a64b83cd04fb2a03fa9779 [file] [log] [blame]
Ed Tanous8ee19a42023-08-08 11:35:14 -07001project(
Patrick Williams805e84f2025-02-01 08:36:16 -05002 'phosphor-ipmi-bt',
3 'c',
4 version: '1.0',
5 meson_version: '>=1.1.1',
6 default_options: [
7 'b_lto_mode=default',
8 'b_lto_threads=0',
9 'b_lto=true',
10 'b_ndebug=if-release',
11 'warning_level=3',
12 'werror=true',
13 ],
Ed Tanous8ee19a42023-08-08 11:35:14 -070014)
15
16systemd = dependency('systemd')
17libsystemd = dependency('libsystemd')
Patrick Williams805e84f2025-02-01 08:36:16 -050018systemd_system_unit_dir = systemd.get_variable(pkgconfig: 'systemdsystemunitdir')
Ed Tanous8ee19a42023-08-08 11:35:14 -070019
Patrick Williams805e84f2025-02-01 08:36:16 -050020executable('btbridged', 'btbridged.c', dependencies: [libsystemd], install: true)
Ed Tanous8ee19a42023-08-08 11:35:14 -070021
22configure_file(
Patrick Williams805e84f2025-02-01 08:36:16 -050023 input: 'btbridged.service',
24 output: 'org.openbmc.HostIpmi.service',
25 install: true,
26 install_dir: systemd_system_unit_dir,
27 copy: true,
Ed Tanous8ee19a42023-08-08 11:35:14 -070028)