1unit_files = [ 2 ['xyz.openbmc_project.FruDevice.service', 'fru-device'], 3 ['xyz.openbmc_project.EntityManager.service', ''], 4] 5 6foreach u : unit_files 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 16endforeach 17 18dbus_system_bus_services_dir = dependency('dbus-1').get_pkgconfig_variable( 19 'system_bus_services_dir', 20 define_variable: ['prefix', get_option('prefix')]) 21install_data( 22 'dbus/xyz.openbmc_project.EntityManager.service', 23 install_dir: dbus_system_bus_services_dir) 24