blob: d67a44411c06a81c5ce5c33518a3cc516ffa28ed [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,
Patrick Williams3b1dc012021-04-16 21:51:47 -05004 nlohmann_json,
Manojkiran Eda001f7882021-01-04 18:21:18 +05305 sdeventplus,
6 sdbusplus,
7 phosphor_dbus_interfaces,
Chicago Duan184f6022020-04-17 11:30:49 +08008 ]
George Liu4c1a3fd2020-03-10 08:25:21 +08009
Chicago Duan184f6022020-04-17 11:30:49 +080010source = ['main.cpp','softoff.cpp']
George Liu4c1a3fd2020-03-10 08:25:21 +080011
12executable('pldm-softpoweroff',source,
13 implicit_include_directories: false,
14 dependencies: deps,
15 install: true,
16 install_dir: get_option('bindir'))
Chicago Duan184f6022020-04-17 11:30:49 +080017
Chicago Duan184f6022020-04-17 11:30:49 +080018configure_file(input: 'services/pldmSoftPowerOff.service',
19 output: 'pldmSoftPowerOff.service',
20 copy: true,
Manojkiran Edaa1d27602021-04-17 11:42:28 +053021 install_dir: systemd_system_unit_dir)
Chicago Duan184f6022020-04-17 11:30:49 +080022