xref: /openbmc/pldm/libpldmresponder/meson.build (revision dd04990d)
1deps = [
2  dependency('phosphor-dbus-interfaces'),
3  dependency('sdbusplus'),
4  dependency('sdeventplus'),
5  libpldm,
6  libpldmutils
7]
8
9sources = [
10  'base.cpp',
11  'bios.cpp',
12  'bios_table.cpp',
13  'bios_attribute.cpp',
14  'bios_string_attribute.cpp',
15  'bios_integer_attribute.cpp',
16  'bios_enum_attribute.cpp',
17  'bios_config.cpp',
18  'pdr_utils.cpp',
19  'pdr.cpp',
20  'platform.cpp',
21  'fru_parser.cpp',
22  'fru.cpp',
23  '../host-bmc/host_pdr_handler.cpp',
24  '../host-bmc/dbus_to_event_handler.cpp',
25  'event_parser.cpp'
26]
27
28if get_option('oem-ibm').enabled()
29  sources += [
30    '../oem/ibm/libpldmresponder/file_io.cpp',
31    '../oem/ibm/libpldmresponder/file_table.cpp',
32    '../oem/ibm/libpldmresponder/file_io_by_type.cpp',
33    '../oem/ibm/libpldmresponder/file_io_type_pel.cpp',
34    '../oem/ibm/libpldmresponder/file_io_type_dump.cpp',
35    '../oem/ibm/libpldmresponder/file_io_type_cert.cpp',
36    '../oem/ibm/libpldmresponder/platform_oem_ibm.cpp'
37  ]
38endif
39
40libpldmresponder = library(
41  'pldmresponder',
42  sources,
43  version: meson.project_version(),
44  dependencies: deps,
45  install: true)
46
47libpldmresponder = declare_dependency(
48  link_with: libpldmresponder)
49