blob: ed68a84364a7cb6d95f793d1e800aefe27902cde [file] [log] [blame]
Manojkiran Eda1421a802022-04-05 09:41:05 +05301libpldmresponder_deps = [
Manojkiran Eda001f7882021-01-04 18:21:18 +05302 phosphor_dbus_interfaces,
Patrick Williams3b1dc012021-04-16 21:51:47 -05003 nlohmann_json,
Manojkiran Eda001f7882021-01-04 18:21:18 +05304 sdbusplus,
5 sdeventplus,
Patrick Williams6f4479c2021-04-16 21:39:44 -05006 libpldm_dep,
George Liuab437e52020-01-19 17:12:19 +08007 libpldmutils
Deepak Kodihalli3c275e12019-09-21 06:39:39 -05008]
9
10sources = [
11 'base.cpp',
12 'bios.cpp',
13 'bios_table.cpp',
John Wange2efdcc2020-02-12 17:02:06 +080014 'bios_attribute.cpp',
John Wang29683b52020-02-27 16:41:44 +080015 'bios_string_attribute.cpp',
John Wang95e6b3c2020-02-13 09:43:24 +080016 'bios_integer_attribute.cpp',
John Wang3be70852020-02-13 15:59:04 +080017 'bios_enum_attribute.cpp',
John Wangd9659342020-02-27 16:46:05 +080018 'bios_config.cpp',
George Liue53193f2020-02-24 09:23:26 +080019 'pdr_utils.cpp',
Deepak Kodihalli3c275e12019-09-21 06:39:39 -050020 'pdr.cpp',
Deepak Kodihalli557dfb02019-05-12 13:11:17 +053021 'platform.cpp',
Deepak Kodihalli70e8db02019-10-21 00:59:46 -050022 'fru_parser.cpp',
Deepak Kodihalli8cb6f662020-04-10 02:55:43 -050023 'fru.cpp',
Deepak Kodihalliac19bd62020-06-16 08:25:23 -050024 '../host-bmc/host_pdr_handler.cpp',
George Liucae18662020-05-15 09:32:57 +080025 '../host-bmc/dbus_to_event_handler.cpp',
Tom Joseph02b4ee42021-05-02 22:44:36 -070026 '../host-bmc/dbus_to_host_effecters.cpp',
Tom Joseph20aa3e02021-08-17 04:44:19 -070027 '../host-bmc/host_condition.cpp',
TOM JOSEPHd4d97a52020-03-23 14:36:34 +053028 'event_parser.cpp'
Deepak Kodihalli3c275e12019-09-21 06:39:39 -050029]
30
Manojkiran Eda998dc4e2022-07-28 08:18:03 +053031responder_headers = ['.']
32
Deepak Kodihalli3c275e12019-09-21 06:39:39 -050033if get_option('oem-ibm').enabled()
Manojkiran Eda998dc4e2022-07-28 08:18:03 +053034 responder_headers += [
35 '../oem/ibm/',
36 ]
Deepak Kodihalli3c275e12019-09-21 06:39:39 -050037 sources += [
Ravi Tejace1c96f2020-10-05 23:13:01 -050038 '../oem/ibm/libpldmresponder/utils.cpp',
Deepak Kodihalli3c275e12019-09-21 06:39:39 -050039 '../oem/ibm/libpldmresponder/file_io.cpp',
Sampa Misra854e61f2019-08-22 04:36:47 -050040 '../oem/ibm/libpldmresponder/file_table.cpp',
41 '../oem/ibm/libpldmresponder/file_io_by_type.cpp',
Sampa Misra18967162020-01-14 02:31:41 -060042 '../oem/ibm/libpldmresponder/file_io_type_pel.cpp',
Sampa Misrad823cc02020-03-24 04:53:20 -050043 '../oem/ibm/libpldmresponder/file_io_type_dump.cpp',
Tom Joseph7f839f92020-09-21 10:20:44 +053044 '../oem/ibm/libpldmresponder/file_io_type_cert.cpp',
Sampa Misraaea5dde2020-08-31 08:33:47 -050045 '../oem/ibm/libpldmresponder/platform_oem_ibm.cpp',
46 '../oem/ibm/libpldmresponder/oem_ibm_handler.cpp',
Jayashankar Padathdb124362021-01-28 21:12:34 -060047 '../oem/ibm/libpldmresponder/inband_code_update.cpp',
48 '../oem/ibm/requester/dbus_to_file_handler.cpp',
Manojkiran Edad94bb832021-02-17 11:40:22 +053049 '../oem/ibm/libpldmresponder/file_io_type_progress_src.cpp',
Deepak Kodihalli3c275e12019-09-21 06:39:39 -050050 ]
51endif
52
53libpldmresponder = library(
Deepak Kodihalli535efa02019-10-08 11:52:42 -050054 'pldmresponder',
Deepak Kodihalli3c275e12019-09-21 06:39:39 -050055 sources,
56 version: meson.project_version(),
Manojkiran Eda998dc4e2022-07-28 08:18:03 +053057 include_directories:include_directories(responder_headers),
Manojkiran Eda1421a802022-04-05 09:41:05 +053058 dependencies: libpldmresponder_deps,
Deepak Kodihalli3c275e12019-09-21 06:39:39 -050059 install: true)
60
Manojkiran Eda998dc4e2022-07-28 08:18:03 +053061libpldmresponder_dep = declare_dependency(
62 include_directories:include_directories(responder_headers),
Deepak Kodihalli3c275e12019-09-21 06:39:39 -050063 link_with: libpldmresponder)
Tom Joseph53279882021-04-28 06:29:13 -070064
65if get_option('tests').enabled()
66 subdir('test')
67endif