Chicago Duan | 184f602 | 2020-04-17 11:30:49 +0800 | [diff] [blame] | 1 | deps = [ |
Patrick Williams | 6f4479c | 2021-04-16 21:39:44 -0500 | [diff] [blame] | 2 | libpldm_dep, |
Chicago Duan | 184f602 | 2020-04-17 11:30:49 +0800 | [diff] [blame] | 3 | libpldmutils, |
Patrick Williams | 3b1dc01 | 2021-04-16 21:51:47 -0500 | [diff] [blame] | 4 | nlohmann_json, |
Manojkiran Eda | 001f788 | 2021-01-04 18:21:18 +0530 | [diff] [blame] | 5 | sdeventplus, |
| 6 | sdbusplus, |
| 7 | phosphor_dbus_interfaces, |
Riya Dixit | 49cfb13 | 2023-03-02 04:26:53 -0600 | [diff] [blame] | 8 | phosphor_logging_dep, |
Chicago Duan | 184f602 | 2020-04-17 11:30:49 +0800 | [diff] [blame] | 9 | ] |
George Liu | 4c1a3fd | 2020-03-10 08:25:21 +0800 | [diff] [blame] | 10 | |
Chicago Duan | 184f602 | 2020-04-17 11:30:49 +0800 | [diff] [blame] | 11 | source = ['main.cpp','softoff.cpp'] |
George Liu | 4c1a3fd | 2020-03-10 08:25:21 +0800 | [diff] [blame] | 12 | |
| 13 | executable('pldm-softpoweroff',source, |
| 14 | implicit_include_directories: false, |
| 15 | dependencies: deps, |
| 16 | install: true, |
| 17 | install_dir: get_option('bindir')) |
Chicago Duan | 184f602 | 2020-04-17 11:30:49 +0800 | [diff] [blame] | 18 | |
Brad Bishop | adbb245 | 2021-08-19 16:33:53 -0400 | [diff] [blame] | 19 | if get_option('systemd').enabled() |
| 20 | configure_file(input: 'services/pldmSoftPowerOff.service', |
| 21 | output: 'pldmSoftPowerOff.service', |
| 22 | copy: true, |
| 23 | install_dir: systemd_system_unit_dir) |
| 24 | endif |
Chicago Duan | 184f602 | 2020-04-17 11:30:49 +0800 | [diff] [blame] | 25 | |