blob: 753375b64dbc38ec9a18416a5c22bf8569fa2d54 [file] [log] [blame]
deps = [
libpldm,
libpldmutils,
dependency('sdeventplus'),
dependency('sdbusplus'),
dependency('phosphor-dbus-interfaces'),
]
source = ['main.cpp','softoff.cpp']
executable('pldm-softpoweroff',source,
implicit_include_directories: false,
dependencies: deps,
install: true,
install_dir: get_option('bindir'))
systemd = dependency('systemd')
servicedir = systemd.get_pkgconfig_variable('systemdsystemunitdir')
configure_file(input: 'services/pldmSoftPowerOff.service',
output: 'pldmSoftPowerOff.service',
copy: true,
install_dir: servicedir)