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