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() |
Manojkiran Eda | fc81a43 | 2023-07-27 05:51:12 +0530 | [diff] [blame] | 20 | filesystem.copyfile( |
| 21 | 'services/pldmSoftPowerOff.service', |
| 22 | 'pldmSoftPowerOff.service', |
| 23 | install: true, |
| 24 | install_dir: systemd_system_unit_dir |
| 25 | ) |
Brad Bishop | adbb245 | 2021-08-19 16:33:53 -0400 | [diff] [blame] | 26 | endif |
Chicago Duan | 184f602 | 2020-04-17 11:30:49 +0800 | [diff] [blame] | 27 | |