xref: /openbmc/pldm/libpldmresponder/meson.build (revision dcdcd3b8)
1deps = [
2  phosphor_dbus_interfaces,
3  nlohmann_json,
4  sdbusplus,
5  sdeventplus,
6  libpldm_dep,
7  libpldmutils
8]
9
10sources = [
11  'base.cpp',
12  'bios.cpp',
13  'bios_table.cpp',
14  'bios_attribute.cpp',
15  'bios_string_attribute.cpp',
16  'bios_integer_attribute.cpp',
17  'bios_enum_attribute.cpp',
18  'bios_config.cpp',
19  'pdr_utils.cpp',
20  'pdr.cpp',
21  'platform.cpp',
22  'fru_parser.cpp',
23  'fru.cpp',
24  '../host-bmc/host_pdr_handler.cpp',
25  '../host-bmc/dbus_to_event_handler.cpp',
26  '../host-bmc/dbus_to_host_effecters.cpp',
27  'event_parser.cpp'
28]
29
30if get_option('oem-ibm').enabled()
31  sources += [
32    '../oem/ibm/libpldmresponder/utils.cpp',
33    '../oem/ibm/libpldmresponder/file_io.cpp',
34    '../oem/ibm/libpldmresponder/file_table.cpp',
35    '../oem/ibm/libpldmresponder/file_io_by_type.cpp',
36    '../oem/ibm/libpldmresponder/file_io_type_pel.cpp',
37    '../oem/ibm/libpldmresponder/file_io_type_dump.cpp',
38    '../oem/ibm/libpldmresponder/file_io_type_cert.cpp',
39    '../oem/ibm/libpldmresponder/platform_oem_ibm.cpp',
40    '../oem/ibm/libpldmresponder/oem_ibm_handler.cpp',
41    '../oem/ibm/libpldmresponder/inband_code_update.cpp',
42    '../oem/ibm/requester/dbus_to_file_handler.cpp',
43    '../oem/ibm/libpldmresponder/file_io_type_progress_src.cpp',
44  ]
45endif
46
47libpldmresponder = library(
48  'pldmresponder',
49  sources,
50  version: meson.project_version(),
51  dependencies: deps,
52  install: true)
53
54libpldmresponder = declare_dependency(
55  link_with: libpldmresponder)
56
57if get_option('tests').enabled()
58  subdir('test')
59endif
60