xref: /openbmc/pldm/softoff/meson.build (revision 90f28d7b)
1deps = [
2    libpldm_dep,
3    libpldmutils,
4    nlohmann_json_dep,
5    sdeventplus,
6    sdbusplus,
7    phosphor_dbus_interfaces,
8    phosphor_logging_dep,
9]
10
11source = ['main.cpp', 'softoff.cpp']
12
13executable(
14    'pldm-softpoweroff',
15    source,
16    implicit_include_directories: false,
17    dependencies: deps,
18    install: true,
19    install_dir: get_option('bindir'),
20)
21
22if get_option('systemd').allowed()
23    filesystem.copyfile(
24        'services/pldmSoftPowerOff.service',
25        'pldmSoftPowerOff.service',
26        install: true,
27        install_dir: systemd_system_unit_dir,
28    )
29endif
30
31