xref: /openbmc/pldm/softoff/meson.build (revision b4809c19)
1deps = [
2    libpldm,
3    libpldmutils,
4    dependency('sdeventplus'),
5    dependency('sdbusplus'),
6    dependency('phosphor-dbus-interfaces'),
7    ]
8
9source = ['main.cpp','softoff.cpp']
10
11executable('pldm-softpoweroff',source,
12           implicit_include_directories: false,
13           dependencies: deps,
14           install: true,
15           install_dir: get_option('bindir'))
16
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
25