xref: /openbmc/pldm/libpldmresponder/meson.build (revision 423e8f53)
1libpldmresponder_deps = [
2    phosphor_dbus_interfaces,
3    phosphor_logging_dep,
4    nlohmann_json_dep,
5    sdbusplus,
6    sdeventplus,
7    libpldm_dep,
8    libpldmutils,
9]
10
11sources = [
12    'base.cpp',
13    'bios.cpp',
14    'bios_table.cpp',
15    'bios_attribute.cpp',
16    'bios_string_attribute.cpp',
17    'bios_integer_attribute.cpp',
18    'bios_enum_attribute.cpp',
19    'bios_config.cpp',
20    'pdr_utils.cpp',
21    'pdr.cpp',
22    'platform.cpp',
23    'platform_config.cpp',
24    'fru_parser.cpp',
25    'fru.cpp',
26    '../host-bmc/host_pdr_handler.cpp',
27    '../host-bmc/utils.cpp',
28    '../host-bmc/dbus_to_event_handler.cpp',
29    '../host-bmc/dbus_to_terminus_effecters.cpp',
30    '../host-bmc/host_condition.cpp',
31    '../host-bmc/dbus/custom_dbus.cpp',
32    '../host-bmc/dbus/cable.cpp',
33    '../host-bmc/dbus/cpu_core.cpp',
34    '../host-bmc/utils.cpp',
35    '../host-bmc/dbus/pcie_device.cpp',
36    '../host-bmc/dbus/pcie_slot.cpp',
37    'event_parser.cpp',
38]
39
40responder_headers = ['.']
41
42if get_option('oem-ibm').allowed()
43    responder_headers += ['../oem/ibm/']
44    sources += [
45        '../oem/ibm/libpldmresponder/utils.cpp',
46        '../oem/ibm/libpldmresponder/file_io.cpp',
47        '../oem/ibm/libpldmresponder/file_table.cpp',
48        '../oem/ibm/libpldmresponder/file_io_by_type.cpp',
49        '../oem/ibm/libpldmresponder/file_io_type_pel.cpp',
50        '../oem/ibm/libpldmresponder/file_io_type_dump.cpp',
51        '../oem/ibm/libpldmresponder/file_io_type_cert.cpp',
52        '../oem/ibm/libpldmresponder/platform_oem_ibm.cpp',
53        '../oem/ibm/libpldmresponder/fru_oem_ibm.cpp',
54        '../oem/ibm/libpldmresponder/oem_ibm_handler.cpp',
55        '../oem/ibm/libpldmresponder/inband_code_update.cpp',
56        '../oem/ibm/requester/dbus_to_file_handler.cpp',
57        '../oem/ibm/libpldmresponder/collect_slot_vpd.cpp',
58        '../oem/ibm/libpldmresponder/file_io_type_progress_src.cpp',
59        '../oem/ibm/libpldmresponder/file_io_type_vpd.cpp',
60        '../oem/ibm/libpldmresponder/file_io_type_pcie.cpp',
61        '../oem/ibm/host-bmc/host_lamp_test.cpp',
62    ]
63endif
64
65libpldmresponder = library(
66    'pldmresponder',
67    sources,
68    version: meson.project_version(),
69    include_directories: include_directories(responder_headers),
70    dependencies: libpldmresponder_deps,
71    install: true,
72)
73
74libpldmresponder_dep = declare_dependency(
75    include_directories: include_directories(responder_headers),
76    link_with: libpldmresponder,
77)
78
79if get_option('tests').allowed()
80    subdir('test')
81endif
82
83