Chicago Duan | 184f602 | 2020-04-17 11:30:49 +0800 | [diff] [blame] | 1 | deps = [ |
| 2 | libpldm, |
| 3 | libpldmutils, |
Manojkiran Eda | 001f788 | 2021-01-04 18:21:18 +0530 | [diff] [blame] | 4 | sdeventplus, |
| 5 | sdbusplus, |
| 6 | phosphor_dbus_interfaces, |
Chicago Duan | 184f602 | 2020-04-17 11:30:49 +0800 | [diff] [blame] | 7 | ] |
George Liu | 4c1a3fd | 2020-03-10 08:25:21 +0800 | [diff] [blame] | 8 | |
Chicago Duan | 184f602 | 2020-04-17 11:30:49 +0800 | [diff] [blame] | 9 | source = ['main.cpp','softoff.cpp'] |
George Liu | 4c1a3fd | 2020-03-10 08:25:21 +0800 | [diff] [blame] | 10 | |
| 11 | executable('pldm-softpoweroff',source, |
| 12 | implicit_include_directories: false, |
| 13 | dependencies: deps, |
| 14 | install: true, |
| 15 | install_dir: get_option('bindir')) |
Chicago Duan | 184f602 | 2020-04-17 11:30:49 +0800 | [diff] [blame] | 16 | |
Chicago Duan | 184f602 | 2020-04-17 11:30:49 +0800 | [diff] [blame] | 17 | servicedir = systemd.get_pkgconfig_variable('systemdsystemunitdir') |
| 18 | |
| 19 | configure_file(input: 'services/pldmSoftPowerOff.service', |
| 20 | output: 'pldmSoftPowerOff.service', |
| 21 | copy: true, |
| 22 | install_dir: servicedir) |
| 23 | |