blob: fd571087da24d5ad91b01e9b8f3567cd2b2da09c [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,
Chicago Duan184f6022020-04-17 11:30:49 +08009 ]
George Liu4c1a3fd2020-03-10 08:25:21 +080010
Chicago Duan184f6022020-04-17 11:30:49 +080011source = ['main.cpp','softoff.cpp']
George Liu4c1a3fd2020-03-10 08:25:21 +080012
13executable('pldm-softpoweroff',source,
14 implicit_include_directories: false,
15 dependencies: deps,
16 install: true,
17 install_dir: get_option('bindir'))
Chicago Duan184f6022020-04-17 11:30:49 +080018
Patrick Williams87bfacd2023-11-29 06:44:36 -060019if get_option('systemd').allowed()
Manojkiran Edafc81a432023-07-27 05:51:12 +053020 filesystem.copyfile(
21 'services/pldmSoftPowerOff.service',
22 'pldmSoftPowerOff.service',
23 install: true,
24 install_dir: systemd_system_unit_dir
25 )
Brad Bishopadbb2452021-08-19 16:33:53 -040026endif
Chicago Duan184f6022020-04-17 11:30:49 +080027