1deps = [ 2 libpldm_dep, 3 libpldmutils, 4 nlohmann_json_dep, 5 sdeventplus, 6 sdbusplus, 7 phosphor_dbus_interfaces, 8 phosphor_logging_dep, 9 ] 10 11source = ['main.cpp','softoff.cpp'] 12 13executable('pldm-softpoweroff',source, 14 implicit_include_directories: false, 15 dependencies: deps, 16 install: true, 17 install_dir: get_option('bindir')) 18 19if get_option('systemd').allowed() 20 filesystem.copyfile( 21 'services/pldmSoftPowerOff.service', 22 'pldmSoftPowerOff.service', 23 install: true, 24 install_dir: systemd_system_unit_dir 25 ) 26endif 27 28