1*184f6026SChicago Duandeps = [ 2*184f6026SChicago Duan libpldm, 3*184f6026SChicago Duan libpldmutils, 4*184f6026SChicago Duan dependency('sdeventplus'), 5*184f6026SChicago Duan dependency('sdbusplus'), 6*184f6026SChicago Duan dependency('phosphor-dbus-interfaces'), 7*184f6026SChicago Duan ] 84c1a3fdaSGeorge Liu 9*184f6026SChicago 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')) 16*184f6026SChicago Duan 17*184f6026SChicago Duansystemd = dependency('systemd') 18*184f6026SChicago Duanservicedir = systemd.get_pkgconfig_variable('systemdsystemunitdir') 19*184f6026SChicago Duan 20*184f6026SChicago Duanconfigure_file(input: 'services/pldmSoftPowerOff.service', 21*184f6026SChicago Duan output: 'pldmSoftPowerOff.service', 22*184f6026SChicago Duan copy: true, 23*184f6026SChicago Duan install_dir: servicedir) 24*184f6026SChicago Duan 25