blob: 0ef11f112db403c4afddbbc10ab79b18380bfe93 [file] [log] [blame]
Chicago Duan184f6022020-04-17 11:30:49 +08001deps = [
2 libpldm,
3 libpldmutils,
Manojkiran Eda001f7882021-01-04 18:21:18 +05304 sdeventplus,
5 sdbusplus,
6 phosphor_dbus_interfaces,
Chicago Duan184f6022020-04-17 11:30:49 +08007 ]
George Liu4c1a3fd2020-03-10 08:25:21 +08008
Chicago Duan184f6022020-04-17 11:30:49 +08009source = ['main.cpp','softoff.cpp']
George Liu4c1a3fd2020-03-10 08:25:21 +080010
11executable('pldm-softpoweroff',source,
12 implicit_include_directories: false,
13 dependencies: deps,
14 install: true,
15 install_dir: get_option('bindir'))
Chicago Duan184f6022020-04-17 11:30:49 +080016
Chicago Duan184f6022020-04-17 11:30:49 +080017servicedir = systemd.get_pkgconfig_variable('systemdsystemunitdir')
18
19configure_file(input: 'services/pldmSoftPowerOff.service',
20 output: 'pldmSoftPowerOff.service',
21 copy: true,
22 install_dir: servicedir)
23