1deps = [ 2 libpldm_dep, 3 libpldmutils, 4 nlohmann_json, 5 sdeventplus, 6 sdbusplus, 7 phosphor_dbus_interfaces, 8 ] 9 10source = ['main.cpp','softoff.cpp'] 11 12executable('pldm-softpoweroff',source, 13 implicit_include_directories: false, 14 dependencies: deps, 15 install: true, 16 install_dir: get_option('bindir')) 17 18servicedir = systemd.get_pkgconfig_variable('systemdsystemunitdir') 19 20configure_file(input: 'services/pldmSoftPowerOff.service', 21 output: 'pldmSoftPowerOff.service', 22 copy: true, 23 install_dir: servicedir) 24 25