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