1libpldmresponder_deps = [ 2 phosphor_dbus_interfaces, 3 nlohmann_json, 4 sdbusplus, 5 sdeventplus, 6 libpldm_dep, 7 libpldmutils 8] 9 10sources = [ 11 'base.cpp', 12 'bios.cpp', 13 'bios_table.cpp', 14 'bios_attribute.cpp', 15 'bios_string_attribute.cpp', 16 'bios_integer_attribute.cpp', 17 'bios_enum_attribute.cpp', 18 'bios_config.cpp', 19 'pdr_utils.cpp', 20 'pdr.cpp', 21 'platform.cpp', 22 'fru_parser.cpp', 23 'fru.cpp', 24 '../host-bmc/host_pdr_handler.cpp', 25 '../host-bmc/dbus_to_event_handler.cpp', 26 '../host-bmc/dbus_to_host_effecters.cpp', 27 '../host-bmc/host_condition.cpp', 28 'event_parser.cpp' 29] 30 31responder_headers = ['.'] 32 33if get_option('oem-ibm').enabled() 34 responder_headers += [ 35 '../oem/ibm/', 36 ] 37 sources += [ 38 '../oem/ibm/libpldmresponder/utils.cpp', 39 '../oem/ibm/libpldmresponder/file_io.cpp', 40 '../oem/ibm/libpldmresponder/file_table.cpp', 41 '../oem/ibm/libpldmresponder/file_io_by_type.cpp', 42 '../oem/ibm/libpldmresponder/file_io_type_pel.cpp', 43 '../oem/ibm/libpldmresponder/file_io_type_dump.cpp', 44 '../oem/ibm/libpldmresponder/file_io_type_cert.cpp', 45 '../oem/ibm/libpldmresponder/platform_oem_ibm.cpp', 46 '../oem/ibm/libpldmresponder/oem_ibm_handler.cpp', 47 '../oem/ibm/libpldmresponder/inband_code_update.cpp', 48 '../oem/ibm/requester/dbus_to_file_handler.cpp', 49 '../oem/ibm/libpldmresponder/file_io_type_progress_src.cpp', 50 ] 51endif 52 53libpldmresponder = library( 54 'pldmresponder', 55 sources, 56 version: meson.project_version(), 57 include_directories:include_directories(responder_headers), 58 dependencies: libpldmresponder_deps, 59 install: true) 60 61libpldmresponder_dep = declare_dependency( 62 include_directories:include_directories(responder_headers), 63 link_with: libpldmresponder) 64 65if get_option('tests').enabled() 66 subdir('test') 67endif 68