xref: /openbmc/pldm/pldmtool/meson.build (revision b3b84b49)
1libpldm_headers = ['.', './oem/ibm']
2
3sources = [
4    'pldm_cmd_helper.cpp',
5    'pldm_base_cmd.cpp',
6    'pldm_platform_cmd.cpp',
7    'pldm_bios_cmd.cpp',
8    'pldm_fru_cmd.cpp',
9    'pldm_fw_update_cmd.cpp',
10    'pldmtool.cpp',
11]
12
13if get_option('oem-ibm').allowed()
14    sources += ['oem/ibm/pldm_oem_ibm.cpp']
15endif
16
17executable(
18    'pldmtool',
19    sources,
20    implicit_include_directories: false,
21    include_directories: include_directories(libpldm_headers),
22    dependencies: [
23        CLI11_dep,
24        libpldm_dep,
25        libpldmutils,
26        nlohmann_json_dep,
27        phosphor_dbus_interfaces,
28        sdbusplus,
29    ],
30    install: true,
31    install_dir: get_option('bindir'),
32)
33