blob: 12c7e002bf32c736fb7491dedadf80f8c181fc3e [file] [log] [blame]
Chicago Duan184f6022020-04-17 11:30:49 +08001deps = [
Patrick Williams6f4479c2021-04-16 21:39:44 -05002 libpldm_dep,
Chicago Duan184f6022020-04-17 11:30:49 +08003 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