blob: 12ff61ada4db856d03707b4100c2abf8436b5db2 [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 Williamscf772842023-12-07 14:39:52 -06004 nlohmann_json_dep,
Manojkiran Eda001f7882021-01-04 18:21:18 +05305 sdeventplus,
6 sdbusplus,
7 phosphor_dbus_interfaces,
Riya Dixit49cfb132023-03-02 04:26:53 -06008 phosphor_logging_dep,
Manojkiran Eda3012b632024-08-22 11:09:01 +05309]
George Liu4c1a3fd2020-03-10 08:25:21 +080010
Manojkiran Eda3012b632024-08-22 11:09:01 +053011source = ['main.cpp', 'softoff.cpp']
George Liu4c1a3fd2020-03-10 08:25:21 +080012
Manojkiran Eda3012b632024-08-22 11:09:01 +053013executable(
14 'pldm-softpoweroff',
15 source,
16 implicit_include_directories: false,
17 dependencies: deps,
18 install: true,
19 install_dir: get_option('bindir'),
20)
Chicago Duan184f6022020-04-17 11:30:49 +080021
Patrick Williams87bfacd2023-11-29 06:44:36 -060022if get_option('systemd').allowed()
Manojkiran Eda3012b632024-08-22 11:09:01 +053023 filesystem.copyfile(
24 'services/pldmSoftPowerOff.service',
25 'pldmSoftPowerOff.service',
26 install: true,
27 install_dir: systemd_system_unit_dir,
28 )
Brad Bishopadbb2452021-08-19 16:33:53 -040029endif
Chicago Duan184f6022020-04-17 11:30:49 +080030