xref: /openbmc/pldm/libpldmresponder/meson.build (revision 51cc5bda)
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_host_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 += [
44    '../oem/ibm/',
45   ]
46  sources += [
47    '../oem/ibm/libpldmresponder/utils.cpp',
48    '../oem/ibm/libpldmresponder/file_io.cpp',
49    '../oem/ibm/libpldmresponder/file_table.cpp',
50    '../oem/ibm/libpldmresponder/file_io_by_type.cpp',
51    '../oem/ibm/libpldmresponder/file_io_type_pel.cpp',
52    '../oem/ibm/libpldmresponder/file_io_type_dump.cpp',
53    '../oem/ibm/libpldmresponder/file_io_type_cert.cpp',
54    '../oem/ibm/libpldmresponder/platform_oem_ibm.cpp',
55    '../oem/ibm/libpldmresponder/fru_oem_ibm.cpp',
56    '../oem/ibm/libpldmresponder/oem_ibm_handler.cpp',
57    '../oem/ibm/libpldmresponder/inband_code_update.cpp',
58    '../oem/ibm/requester/dbus_to_file_handler.cpp',
59    '../oem/ibm/libpldmresponder/file_io_type_progress_src.cpp',
60    '../oem/ibm/libpldmresponder/file_io_type_vpd.cpp',
61    '../oem/ibm/libpldmresponder/file_io_type_pcie.cpp',
62    '../oem/ibm/host-bmc/host_lamp_test.cpp',
63  ]
64endif
65
66libpldmresponder = library(
67  'pldmresponder',
68  sources,
69  version: meson.project_version(),
70  include_directories:include_directories(responder_headers),
71  dependencies: libpldmresponder_deps,
72  install: true)
73
74libpldmresponder_dep = declare_dependency(
75  include_directories:include_directories(responder_headers),
76  link_with: libpldmresponder)
77
78if get_option('tests').allowed()
79  subdir('test')
80endif
81
82