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 | |
Chicago Duan | 184f602 | 2020-04-17 11:30:49 +0800 | [diff] [blame] | 18 | servicedir = systemd.get_pkgconfig_variable('systemdsystemunitdir') |
| 19 | |
| 20 | configure_file(input: 'services/pldmSoftPowerOff.service', |
| 21 | output: 'pldmSoftPowerOff.service', |
| 22 | copy: true, |
| 23 | install_dir: servicedir) |
| 24 | |