xref: /openbmc/pldm/libpldmresponder/meson.build (revision 3be7085e)
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_parser.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]
24
25if get_option('oem-ibm').enabled()
26  sources += [
27    '../oem/ibm/libpldmresponder/file_io.cpp',
28    '../oem/ibm/libpldmresponder/file_table.cpp',
29    '../oem/ibm/libpldmresponder/file_io_by_type.cpp',
30    '../oem/ibm/libpldmresponder/file_io_type_pel.cpp',
31    '../oem/ibm/libpldmresponder/file_io_type_dump.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