blob: 58c0cec4fa3670f81c22f361108a3f07bf65bed7 [file] [log] [blame]
Manojkiran Eda1421a802022-04-05 09:41:05 +05301libpldmresponder_deps = [
Manojkiran Eda3012b632024-08-22 11:09:01 +05302 phosphor_dbus_interfaces,
3 phosphor_logging_dep,
4 nlohmann_json_dep,
5 sdbusplus,
6 sdeventplus,
7 libpldm_dep,
8 libpldmutils,
Deepak Kodihalli3c275e12019-09-21 06:39:39 -05009]
10
11sources = [
Manojkiran Eda3012b632024-08-22 11:09:01 +053012 'base.cpp',
13 'bios.cpp',
14 'bios_table.cpp',
15 'bios_attribute.cpp',
16 'bios_string_attribute.cpp',
17 'bios_integer_attribute.cpp',
18 'bios_enum_attribute.cpp',
19 'bios_config.cpp',
20 'pdr_utils.cpp',
21 'pdr.cpp',
22 'platform.cpp',
23 'platform_config.cpp',
24 'fru_parser.cpp',
25 'fru.cpp',
26 '../host-bmc/host_pdr_handler.cpp',
27 '../host-bmc/utils.cpp',
28 '../host-bmc/dbus_to_event_handler.cpp',
Thu Nguyena34a64b2022-03-31 08:56:39 +070029 '../host-bmc/dbus_to_terminus_effecters.cpp',
Manojkiran Eda3012b632024-08-22 11:09:01 +053030 '../host-bmc/host_condition.cpp',
Archana Kakani1634a6e2025-02-04 01:12:29 -060031 '../host-bmc/dbus/asset.cpp',
Archana Kakanif9355372025-02-04 03:13:24 -060032 '../host-bmc/dbus/availability.cpp',
Manojkiran Eda3012b632024-08-22 11:09:01 +053033 '../host-bmc/dbus/custom_dbus.cpp',
34 '../host-bmc/dbus/cable.cpp',
Archana Kakanidb65c3b2025-02-03 05:27:28 -060035 '../host-bmc/dbus/chassis.cpp',
Manojkiran Eda3012b632024-08-22 11:09:01 +053036 '../host-bmc/dbus/cpu_core.cpp',
37 '../host-bmc/utils.cpp',
38 '../host-bmc/dbus/pcie_device.cpp',
39 '../host-bmc/dbus/pcie_slot.cpp',
40 'event_parser.cpp',
Deepak Kodihalli3c275e12019-09-21 06:39:39 -050041]
42
Manojkiran Eda998dc4e2022-07-28 08:18:03 +053043responder_headers = ['.']
44
Patrick Williams87bfacd2023-11-29 06:44:36 -060045if get_option('oem-ibm').allowed()
Manojkiran Eda3012b632024-08-22 11:09:01 +053046 responder_headers += ['../oem/ibm/']
47 sources += [
48 '../oem/ibm/libpldmresponder/utils.cpp',
49 '../oem/ibm/libpldmresponder/file_io.cpp',
50 '../oem/ibm/libpldmresponder/file_table.cpp',
51 '../oem/ibm/libpldmresponder/file_io_by_type.cpp',
52 '../oem/ibm/libpldmresponder/file_io_type_pel.cpp',
53 '../oem/ibm/libpldmresponder/file_io_type_dump.cpp',
54 '../oem/ibm/libpldmresponder/file_io_type_cert.cpp',
55 '../oem/ibm/libpldmresponder/platform_oem_ibm.cpp',
56 '../oem/ibm/libpldmresponder/fru_oem_ibm.cpp',
57 '../oem/ibm/libpldmresponder/oem_ibm_handler.cpp',
58 '../oem/ibm/libpldmresponder/inband_code_update.cpp',
59 '../oem/ibm/requester/dbus_to_file_handler.cpp',
Manojkiran Edaa31ceb92021-07-22 09:19:02 +053060 '../oem/ibm/libpldmresponder/collect_slot_vpd.cpp',
Manojkiran Eda3012b632024-08-22 11:09:01 +053061 '../oem/ibm/libpldmresponder/file_io_type_progress_src.cpp',
62 '../oem/ibm/libpldmresponder/file_io_type_vpd.cpp',
63 '../oem/ibm/libpldmresponder/file_io_type_pcie.cpp',
64 '../oem/ibm/host-bmc/host_lamp_test.cpp',
65 ]
Deepak Kodihalli3c275e12019-09-21 06:39:39 -050066endif
67
68libpldmresponder = library(
Manojkiran Eda3012b632024-08-22 11:09:01 +053069 'pldmresponder',
70 sources,
71 version: meson.project_version(),
72 include_directories: include_directories(responder_headers),
73 dependencies: libpldmresponder_deps,
74 install: true,
75)
Deepak Kodihalli3c275e12019-09-21 06:39:39 -050076
Manojkiran Eda998dc4e2022-07-28 08:18:03 +053077libpldmresponder_dep = declare_dependency(
Manojkiran Eda3012b632024-08-22 11:09:01 +053078 include_directories: include_directories(responder_headers),
79 link_with: libpldmresponder,
80)
Tom Joseph53279882021-04-28 06:29:13 -070081
Patrick Williams87bfacd2023-11-29 06:44:36 -060082if get_option('tests').allowed()
Manojkiran Eda3012b632024-08-22 11:09:01 +053083 subdir('test')
Tom Joseph53279882021-04-28 06:29:13 -070084endif
Sagar Srinivas11ce8d22022-07-28 11:32:34 -050085