Ed Tanous | 8ee19a4 | 2023-08-08 11:35:14 -0700 | [diff] [blame] | 1 | project( |
Patrick Williams | 805e84f | 2025-02-01 08:36:16 -0500 | [diff] [blame^] | 2 | '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 Tanous | 8ee19a4 | 2023-08-08 11:35:14 -0700 | [diff] [blame] | 14 | ) |
| 15 | |
| 16 | systemd = dependency('systemd') |
| 17 | libsystemd = dependency('libsystemd') |
Patrick Williams | 805e84f | 2025-02-01 08:36:16 -0500 | [diff] [blame^] | 18 | systemd_system_unit_dir = systemd.get_variable(pkgconfig: 'systemdsystemunitdir') |
Ed Tanous | 8ee19a4 | 2023-08-08 11:35:14 -0700 | [diff] [blame] | 19 | |
Patrick Williams | 805e84f | 2025-02-01 08:36:16 -0500 | [diff] [blame^] | 20 | executable('btbridged', 'btbridged.c', dependencies: [libsystemd], install: true) |
Ed Tanous | 8ee19a4 | 2023-08-08 11:35:14 -0700 | [diff] [blame] | 21 | |
| 22 | configure_file( |
Patrick Williams | 805e84f | 2025-02-01 08:36:16 -0500 | [diff] [blame^] | 23 | input: 'btbridged.service', |
| 24 | output: 'org.openbmc.HostIpmi.service', |
| 25 | install: true, |
| 26 | install_dir: systemd_system_unit_dir, |
| 27 | copy: true, |
Ed Tanous | 8ee19a4 | 2023-08-08 11:35:14 -0700 | [diff] [blame] | 28 | ) |