blob: 753375b64dbc38ec9a18416a5c22bf8569fa2d54 [file] [log] [blame]
Chicago Duan184f6022020-04-17 11:30:49 +08001deps = [
2 libpldm,
3 libpldmutils,
4 dependency('sdeventplus'),
5 dependency('sdbusplus'),
6 dependency('phosphor-dbus-interfaces'),
7 ]
George Liu4c1a3fd2020-03-10 08:25:21 +08008
Chicago Duan184f6022020-04-17 11:30:49 +08009source = ['main.cpp','softoff.cpp']
George Liu4c1a3fd2020-03-10 08:25:21 +080010
11executable('pldm-softpoweroff',source,
12 implicit_include_directories: false,
13 dependencies: deps,
14 install: true,
15 install_dir: get_option('bindir'))
Chicago Duan184f6022020-04-17 11:30:49 +080016
17systemd = dependency('systemd')
18servicedir = systemd.get_pkgconfig_variable('systemdsystemunitdir')
19
20configure_file(input: 'services/pldmSoftPowerOff.service',
21 output: 'pldmSoftPowerOff.service',
22 copy: true,
23 install_dir: servicedir)
24