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, |
Chicago Duan | 184f602 | 2020-04-17 11:30:49 +0800 | [diff] [blame] | 8 | ] |
George Liu | 4c1a3fd | 2020-03-10 08:25:21 +0800 | [diff] [blame] | 9 | |
Chicago Duan | 184f602 | 2020-04-17 11:30:49 +0800 | [diff] [blame] | 10 | source = ['main.cpp','softoff.cpp'] |
George Liu | 4c1a3fd | 2020-03-10 08:25:21 +0800 | [diff] [blame] | 11 | |
| 12 | executable('pldm-softpoweroff',source, |
| 13 | implicit_include_directories: false, |
| 14 | dependencies: deps, |
| 15 | install: true, |
| 16 | install_dir: get_option('bindir')) |
Chicago Duan | 184f602 | 2020-04-17 11:30:49 +0800 | [diff] [blame] | 17 | |
Brad Bishop | adbb245 | 2021-08-19 16:33:53 -0400 | [diff] [blame] | 18 | if get_option('systemd').enabled() |
| 19 | configure_file(input: 'services/pldmSoftPowerOff.service', |
| 20 | output: 'pldmSoftPowerOff.service', |
| 21 | copy: true, |
| 22 | install_dir: systemd_system_unit_dir) |
| 23 | endif |
Chicago Duan | 184f602 | 2020-04-17 11:30:49 +0800 | [diff] [blame] | 24 | |