1184f6026SChicago Duandeps = [ 2184f6026SChicago Duan libpldm, 3184f6026SChicago Duan libpldmutils, 4*001f7885SManojkiran Eda sdeventplus, 5*001f7885SManojkiran Eda sdbusplus, 6*001f7885SManojkiran Eda phosphor_dbus_interfaces, 7184f6026SChicago Duan ] 84c1a3fdaSGeorge Liu 9184f6026SChicago Duansource = ['main.cpp','softoff.cpp'] 104c1a3fdaSGeorge Liu 114c1a3fdaSGeorge Liuexecutable('pldm-softpoweroff',source, 124c1a3fdaSGeorge Liu implicit_include_directories: false, 134c1a3fdaSGeorge Liu dependencies: deps, 144c1a3fdaSGeorge Liu install: true, 154c1a3fdaSGeorge Liu install_dir: get_option('bindir')) 16184f6026SChicago Duan 17184f6026SChicago Duanservicedir = systemd.get_pkgconfig_variable('systemdsystemunitdir') 18184f6026SChicago Duan 19184f6026SChicago Duanconfigure_file(input: 'services/pldmSoftPowerOff.service', 20184f6026SChicago Duan output: 'pldmSoftPowerOff.service', 21184f6026SChicago Duan copy: true, 22184f6026SChicago Duan install_dir: servicedir) 23184f6026SChicago Duan 24