Manojkiran Eda | 1421a80 | 2022-04-05 09:41:05 +0530 | [diff] [blame] | 1 | libpldmresponder_deps = [ |
Manojkiran Eda | 3012b63 | 2024-08-22 11:09:01 +0530 | [diff] [blame] | 2 | phosphor_dbus_interfaces, |
| 3 | phosphor_logging_dep, |
| 4 | nlohmann_json_dep, |
| 5 | sdbusplus, |
| 6 | sdeventplus, |
| 7 | libpldm_dep, |
| 8 | libpldmutils, |
Deepak Kodihalli | 3c275e1 | 2019-09-21 06:39:39 -0500 | [diff] [blame] | 9 | ] |
| 10 | |
| 11 | sources = [ |
Manojkiran Eda | 3012b63 | 2024-08-22 11:09:01 +0530 | [diff] [blame] | 12 | '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', |
| 29 | '../host-bmc/dbus_to_host_effecters.cpp', |
| 30 | '../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 Kodihalli | 3c275e1 | 2019-09-21 06:39:39 -0500 | [diff] [blame] | 38 | ] |
| 39 | |
Manojkiran Eda | 998dc4e | 2022-07-28 08:18:03 +0530 | [diff] [blame] | 40 | responder_headers = ['.'] |
| 41 | |
Patrick Williams | 87bfacd | 2023-11-29 06:44:36 -0600 | [diff] [blame] | 42 | if get_option('oem-ibm').allowed() |
Manojkiran Eda | 3012b63 | 2024-08-22 11:09:01 +0530 | [diff] [blame] | 43 | 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 Kodihalli | 3c275e1 | 2019-09-21 06:39:39 -0500 | [diff] [blame] | 62 | endif |
| 63 | |
| 64 | libpldmresponder = library( |
Manojkiran Eda | 3012b63 | 2024-08-22 11:09:01 +0530 | [diff] [blame] | 65 | 'pldmresponder', |
| 66 | sources, |
| 67 | version: meson.project_version(), |
| 68 | include_directories: include_directories(responder_headers), |
| 69 | dependencies: libpldmresponder_deps, |
| 70 | install: true, |
| 71 | ) |
Deepak Kodihalli | 3c275e1 | 2019-09-21 06:39:39 -0500 | [diff] [blame] | 72 | |
Manojkiran Eda | 998dc4e | 2022-07-28 08:18:03 +0530 | [diff] [blame] | 73 | libpldmresponder_dep = declare_dependency( |
Manojkiran Eda | 3012b63 | 2024-08-22 11:09:01 +0530 | [diff] [blame] | 74 | include_directories: include_directories(responder_headers), |
| 75 | link_with: libpldmresponder, |
| 76 | ) |
Tom Joseph | 5327988 | 2021-04-28 06:29:13 -0700 | [diff] [blame] | 77 | |
Patrick Williams | 87bfacd | 2023-11-29 06:44:36 -0600 | [diff] [blame] | 78 | if get_option('tests').allowed() |
Manojkiran Eda | 3012b63 | 2024-08-22 11:09:01 +0530 | [diff] [blame] | 79 | subdir('test') |
Tom Joseph | 5327988 | 2021-04-28 06:29:13 -0700 | [diff] [blame] | 80 | endif |
Sagar Srinivas | 11ce8d2 | 2022-07-28 11:32:34 -0500 | [diff] [blame] | 81 | |