xref: /openbmc/pldm/softoff/meson.build (revision adbb2452)
1184f6026SChicago Duandeps = [
26f4479c7SPatrick Williams    libpldm_dep,
3184f6026SChicago Duan    libpldmutils,
43b1dc01dSPatrick Williams    nlohmann_json,
5001f7885SManojkiran Eda    sdeventplus,
6001f7885SManojkiran Eda    sdbusplus,
7001f7885SManojkiran Eda    phosphor_dbus_interfaces,
8184f6026SChicago Duan    ]
94c1a3fdaSGeorge Liu
10184f6026SChicago Duansource = ['main.cpp','softoff.cpp']
114c1a3fdaSGeorge Liu
124c1a3fdaSGeorge Liuexecutable('pldm-softpoweroff',source,
134c1a3fdaSGeorge Liu           implicit_include_directories: false,
144c1a3fdaSGeorge Liu           dependencies: deps,
154c1a3fdaSGeorge Liu           install: true,
164c1a3fdaSGeorge Liu           install_dir: get_option('bindir'))
17184f6026SChicago Duan
18*adbb2452SBrad Bishopif get_option('systemd').enabled()
19184f6026SChicago Duan  configure_file(input: 'services/pldmSoftPowerOff.service',
20184f6026SChicago Duan                   output: 'pldmSoftPowerOff.service',
21184f6026SChicago Duan                   copy: true,
22a1d27606SManojkiran Eda                   install_dir: systemd_system_unit_dir)
23*adbb2452SBrad Bishopendif
24184f6026SChicago Duan
25