1libpldmresponder_deps = [ 2 phosphor_dbus_interfaces, 3 phosphor_logging_dep, 4 nlohmann_json, 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 'event_parser.cpp' 30] 31 32responder_headers = ['.'] 33 34if get_option('oem-ibm').enabled() 35 responder_headers += [ 36 '../oem/ibm/', 37 ] 38 sources += [ 39 '../oem/ibm/libpldmresponder/utils.cpp', 40 '../oem/ibm/libpldmresponder/file_io.cpp', 41 '../oem/ibm/libpldmresponder/file_table.cpp', 42 '../oem/ibm/libpldmresponder/file_io_by_type.cpp', 43 '../oem/ibm/libpldmresponder/file_io_type_pel.cpp', 44 '../oem/ibm/libpldmresponder/file_io_type_dump.cpp', 45 '../oem/ibm/libpldmresponder/file_io_type_cert.cpp', 46 '../oem/ibm/libpldmresponder/platform_oem_ibm.cpp', 47 '../oem/ibm/libpldmresponder/oem_ibm_handler.cpp', 48 '../oem/ibm/libpldmresponder/inband_code_update.cpp', 49 '../oem/ibm/requester/dbus_to_file_handler.cpp', 50 '../oem/ibm/libpldmresponder/file_io_type_progress_src.cpp', 51 ] 52endif 53 54libpldmresponder = library( 55 'pldmresponder', 56 sources, 57 version: meson.project_version(), 58 include_directories:include_directories(responder_headers), 59 dependencies: libpldmresponder_deps, 60 install: true) 61 62libpldmresponder_dep = declare_dependency( 63 include_directories:include_directories(responder_headers), 64 link_with: libpldmresponder) 65 66if get_option('tests').enabled() 67 subdir('test') 68endif 69