Brad Bishop | b445991 | 2019-11-05 19:39:11 -0500 | [diff] [blame] | 1 | unit_files = [ |
Brad Bishop | 92daaaa | 2020-01-20 15:45:01 -0500 | [diff] [blame] | 2 | ['xyz.openbmc_project.FruDevice.service', 'fru-device'], |
| 3 | ['xyz.openbmc_project.EntityManager.service', ''], |
Brad Bishop | b445991 | 2019-11-05 19:39:11 -0500 | [diff] [blame] | 4 | ] |
| 5 | |
| 6 | foreach u : unit_files |
Brad Bishop | 92daaaa | 2020-01-20 15:45:01 -0500 | [diff] [blame] | 7 | if u[1] == '' or get_option(u[1]) |
| 8 | configure_file( |
| 9 | copy: true, |
| 10 | input: u[0], |
| 11 | install: true, |
| 12 | install_dir: systemd_system_unit_dir, |
| 13 | output: u[0], |
| 14 | ) |
| 15 | endif |
Brad Bishop | b445991 | 2019-11-05 19:39:11 -0500 | [diff] [blame] | 16 | endforeach |
Brad Bishop | 9c7fd64 | 2020-11-04 20:21:47 -0500 | [diff] [blame] | 17 | |
Patrick Williams | ee1db76 | 2023-04-12 08:05:58 -0500 | [diff] [blame] | 18 | dbus_system_bus_services_dir = dependency('dbus-1').get_variable( |
Brad Bishop | 9c7fd64 | 2020-11-04 20:21:47 -0500 | [diff] [blame] | 19 | 'system_bus_services_dir', |
Patrick Williams | ee1db76 | 2023-04-12 08:05:58 -0500 | [diff] [blame] | 20 | pkgconfig_define: ['prefix', get_option('prefix')]) |
Brad Bishop | 9c7fd64 | 2020-11-04 20:21:47 -0500 | [diff] [blame] | 21 | install_data( |
| 22 | 'dbus/xyz.openbmc_project.EntityManager.service', |
| 23 | install_dir: dbus_system_bus_services_dir) |