blob: 2e0ed5a5d777f4252428ba8a86bcae1fc141fed6 [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',
31 '../host-bmc/dbus/custom_dbus.cpp',
32 '../host-bmc/dbus/cable.cpp',
33 '../host-bmc/dbus/cpu_core.cpp',
34 '../host-bmc/utils.cpp',
35 '../host-bmc/dbus/pcie_device.cpp',
36 '../host-bmc/dbus/pcie_slot.cpp',
37 'event_parser.cpp',
Deepak Kodihalli3c275e12019-09-21 06:39:39 -050038]
39
Manojkiran Eda998dc4e2022-07-28 08:18:03 +053040responder_headers = ['.']
41
Patrick Williams87bfacd2023-11-29 06:44:36 -060042if get_option('oem-ibm').allowed()
Manojkiran Eda3012b632024-08-22 11:09:01 +053043 responder_headers += ['../oem/ibm/']
44 sources += [
45 '../oem/ibm/libpldmresponder/utils.cpp',
46 '../oem/ibm/libpldmresponder/file_io.cpp',
47 '../oem/ibm/libpldmresponder/file_table.cpp',
48 '../oem/ibm/libpldmresponder/file_io_by_type.cpp',
49 '../oem/ibm/libpldmresponder/file_io_type_pel.cpp',
50 '../oem/ibm/libpldmresponder/file_io_type_dump.cpp',
51 '../oem/ibm/libpldmresponder/file_io_type_cert.cpp',
52 '../oem/ibm/libpldmresponder/platform_oem_ibm.cpp',
53 '../oem/ibm/libpldmresponder/fru_oem_ibm.cpp',
54 '../oem/ibm/libpldmresponder/oem_ibm_handler.cpp',
55 '../oem/ibm/libpldmresponder/inband_code_update.cpp',
56 '../oem/ibm/requester/dbus_to_file_handler.cpp',
57 '../oem/ibm/libpldmresponder/file_io_type_progress_src.cpp',
58 '../oem/ibm/libpldmresponder/file_io_type_vpd.cpp',
59 '../oem/ibm/libpldmresponder/file_io_type_pcie.cpp',
60 '../oem/ibm/host-bmc/host_lamp_test.cpp',
61 ]
Deepak Kodihalli3c275e12019-09-21 06:39:39 -050062endif
63
64libpldmresponder = library(
Manojkiran Eda3012b632024-08-22 11:09:01 +053065 'pldmresponder',
66 sources,
67 version: meson.project_version(),
68 include_directories: include_directories(responder_headers),
69 dependencies: libpldmresponder_deps,
70 install: true,
71)
Deepak Kodihalli3c275e12019-09-21 06:39:39 -050072
Manojkiran Eda998dc4e2022-07-28 08:18:03 +053073libpldmresponder_dep = declare_dependency(
Manojkiran Eda3012b632024-08-22 11:09:01 +053074 include_directories: include_directories(responder_headers),
75 link_with: libpldmresponder,
76)
Tom Joseph53279882021-04-28 06:29:13 -070077
Patrick Williams87bfacd2023-11-29 06:44:36 -060078if get_option('tests').allowed()
Manojkiran Eda3012b632024-08-22 11:09:01 +053079 subdir('test')
Tom Joseph53279882021-04-28 06:29:13 -070080endif
Sagar Srinivas11ce8d22022-07-28 11:32:34 -050081