Chicago Duan | 184f602 | 2020-04-17 11:30:49 +0800 | [diff] [blame] | 1 | deps = [ |
| 2 | libpldm, |
| 3 | libpldmutils, |
| 4 | dependency('sdeventplus'), |
| 5 | dependency('sdbusplus'), |
| 6 | dependency('phosphor-dbus-interfaces'), |
| 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 | |
| 17 | systemd = dependency('systemd') |
| 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 | |