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 'fru_parser.cpp', 24 'fru.cpp', 25 '../host-bmc/host_pdr_handler.cpp', 26 '../host-bmc/dbus_to_event_handler.cpp', 27 '../host-bmc/dbus_to_host_effecters.cpp', 28 '../host-bmc/host_condition.cpp', 29 '../host-bmc/custom_dbus.cpp', 30 'event_parser.cpp' 31] 32 33responder_headers = ['.'] 34 35if get_option('oem-ibm').allowed() 36 responder_headers += [ 37 '../oem/ibm/', 38 ] 39 sources += [ 40 '../oem/ibm/libpldmresponder/utils.cpp', 41 '../oem/ibm/libpldmresponder/file_io.cpp', 42 '../oem/ibm/libpldmresponder/file_table.cpp', 43 '../oem/ibm/libpldmresponder/file_io_by_type.cpp', 44 '../oem/ibm/libpldmresponder/file_io_type_pel.cpp', 45 '../oem/ibm/libpldmresponder/file_io_type_dump.cpp', 46 '../oem/ibm/libpldmresponder/file_io_type_cert.cpp', 47 '../oem/ibm/libpldmresponder/platform_oem_ibm.cpp', 48 '../oem/ibm/libpldmresponder/oem_ibm_handler.cpp', 49 '../oem/ibm/libpldmresponder/inband_code_update.cpp', 50 '../oem/ibm/requester/dbus_to_file_handler.cpp', 51 '../oem/ibm/libpldmresponder/file_io_type_progress_src.cpp', 52 '../oem/ibm/libpldmresponder/file_io_type_vpd.cpp', 53 '../oem/ibm/libpldmresponder/bios_oem_ibm.cpp', 54 ] 55endif 56 57libpldmresponder = library( 58 'pldmresponder', 59 sources, 60 version: meson.project_version(), 61 include_directories:include_directories(responder_headers), 62 dependencies: libpldmresponder_deps, 63 install: true) 64 65libpldmresponder_dep = declare_dependency( 66 include_directories:include_directories(responder_headers), 67 link_with: libpldmresponder) 68 69if get_option('tests').allowed() 70 subdir('test') 71endif 72 73