1184f6026SChicago Duandeps = [ 26f4479c7SPatrick Williams libpldm_dep, 3184f6026SChicago Duan libpldmutils, 4cf772846SPatrick Williams nlohmann_json_dep, 5001f7885SManojkiran Eda sdeventplus, 6001f7885SManojkiran Eda sdbusplus, 7001f7885SManojkiran Eda phosphor_dbus_interfaces, 849cfb138SRiya Dixit phosphor_logging_dep, 9184f6026SChicago Duan] 104c1a3fdaSGeorge Liu 11184f6026SChicago Duansource = ['main.cpp', 'softoff.cpp'] 124c1a3fdaSGeorge Liu 13*3012b632SManojkiran Edaexecutable( 14*3012b632SManojkiran Eda 'pldm-softpoweroff', 15*3012b632SManojkiran Eda source, 164c1a3fdaSGeorge Liu implicit_include_directories: false, 174c1a3fdaSGeorge Liu dependencies: deps, 184c1a3fdaSGeorge Liu install: true, 19*3012b632SManojkiran Eda install_dir: get_option('bindir'), 20*3012b632SManojkiran Eda) 21184f6026SChicago Duan 2287bfacd2SPatrick Williamsif get_option('systemd').allowed() 23fc81a437SManojkiran Eda filesystem.copyfile( 24fc81a437SManojkiran Eda 'services/pldmSoftPowerOff.service', 25fc81a437SManojkiran Eda 'pldmSoftPowerOff.service', 26fc81a437SManojkiran Eda install: true, 27*3012b632SManojkiran Eda install_dir: systemd_system_unit_dir, 28fc81a437SManojkiran Eda ) 29adbb2452SBrad Bishopendif 30184f6026SChicago Duan 31