xref: /openbmc/pldm/libpldmresponder/meson.build (revision 6080aae7)
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  ]
32endif
33
34libpldmresponder = library(
35  'pldmresponder',
36  sources,
37  version: meson.project_version(),
38  dependencies: deps,
39  install: true)
40
41libpldmresponder = declare_dependency(
42  link_with: libpldmresponder)
43