1libpldmresponder_deps = [ 2 phosphor_dbus_interfaces, 3 phosphor_logging_dep, 4 nlohmann_json_dep, 5 sdbusplus, 6 sdeventplus, 7 libpldm_dep, 8 libpldmutils 9] 10 11sources = [ 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/dbus_to_event_handler.cpp', 28 '../host-bmc/dbus_to_host_effecters.cpp', 29 '../host-bmc/host_condition.cpp', 30 '../host-bmc/custom_dbus.cpp', 31 'event_parser.cpp' 32] 33 34responder_headers = ['.'] 35 36if get_option('oem-ibm').allowed() 37 responder_headers += [ 38 '../oem/ibm/', 39 ] 40 sources += [ 41 '../oem/ibm/libpldmresponder/utils.cpp', 42 '../oem/ibm/libpldmresponder/file_io.cpp', 43 '../oem/ibm/libpldmresponder/file_table.cpp', 44 '../oem/ibm/libpldmresponder/file_io_by_type.cpp', 45 '../oem/ibm/libpldmresponder/file_io_type_pel.cpp', 46 '../oem/ibm/libpldmresponder/file_io_type_dump.cpp', 47 '../oem/ibm/libpldmresponder/file_io_type_cert.cpp', 48 '../oem/ibm/libpldmresponder/platform_oem_ibm.cpp', 49 '../oem/ibm/libpldmresponder/fru_oem_ibm.cpp', 50 '../oem/ibm/libpldmresponder/oem_ibm_handler.cpp', 51 '../oem/ibm/libpldmresponder/inband_code_update.cpp', 52 '../oem/ibm/requester/dbus_to_file_handler.cpp', 53 '../oem/ibm/libpldmresponder/file_io_type_progress_src.cpp', 54 '../oem/ibm/libpldmresponder/file_io_type_vpd.cpp', 55 '../oem/ibm/libpldmresponder/file_io_type_pcie.cpp', 56 ] 57endif 58 59libpldmresponder = library( 60 'pldmresponder', 61 sources, 62 version: meson.project_version(), 63 include_directories:include_directories(responder_headers), 64 dependencies: libpldmresponder_deps, 65 install: true) 66 67libpldmresponder_dep = declare_dependency( 68 include_directories:include_directories(responder_headers), 69 link_with: libpldmresponder) 70 71if get_option('tests').allowed() 72 subdir('test') 73endif 74 75