blob: 4072748e4f750daca4a40e02ccf2da78d3474eec [file] [log] [blame]
Manojkiran Eda1421a802022-04-05 09:41:05 +05301libpldmresponder_deps = [
Manojkiran Eda001f7882021-01-04 18:21:18 +05302 phosphor_dbus_interfaces,
Riya Dixit49cfb132023-03-02 04:26:53 -06003 phosphor_logging_dep,
Patrick Williamscf772842023-12-07 14:39:52 -06004 nlohmann_json_dep,
Manojkiran Eda001f7882021-01-04 18:21:18 +05305 sdbusplus,
6 sdeventplus,
Patrick Williams6f4479c2021-04-16 21:39:44 -05007 libpldm_dep,
George Liuab437e52020-01-19 17:12:19 +08008 libpldmutils
Deepak Kodihalli3c275e12019-09-21 06:39:39 -05009]
10
11sources = [
12 'base.cpp',
13 'bios.cpp',
14 'bios_table.cpp',
John Wange2efdcc2020-02-12 17:02:06 +080015 'bios_attribute.cpp',
John Wang29683b52020-02-27 16:41:44 +080016 'bios_string_attribute.cpp',
John Wang95e6b3c2020-02-13 09:43:24 +080017 'bios_integer_attribute.cpp',
John Wang3be70852020-02-13 15:59:04 +080018 'bios_enum_attribute.cpp',
John Wangd9659342020-02-27 16:46:05 +080019 'bios_config.cpp',
George Liue53193f2020-02-24 09:23:26 +080020 'pdr_utils.cpp',
Deepak Kodihalli3c275e12019-09-21 06:39:39 -050021 'pdr.cpp',
Deepak Kodihalli557dfb02019-05-12 13:11:17 +053022 'platform.cpp',
Kamalkumar Patel3c50c822024-01-30 07:14:40 -060023 'platform_config.cpp',
Deepak Kodihalli70e8db02019-10-21 00:59:46 -050024 'fru_parser.cpp',
Deepak Kodihalli8cb6f662020-04-10 02:55:43 -050025 'fru.cpp',
Deepak Kodihalliac19bd62020-06-16 08:25:23 -050026 '../host-bmc/host_pdr_handler.cpp',
Kamalkumar Patel516122e2024-05-07 04:39:32 -050027 '../host-bmc/utils.cpp',
George Liucae18662020-05-15 09:32:57 +080028 '../host-bmc/dbus_to_event_handler.cpp',
Tom Joseph02b4ee42021-05-02 22:44:36 -070029 '../host-bmc/dbus_to_host_effecters.cpp',
Tom Joseph20aa3e02021-08-17 04:44:19 -070030 '../host-bmc/host_condition.cpp',
Kamalkumar Patel14107a12024-06-19 08:50:01 -050031 '../host-bmc/dbus/custom_dbus.cpp',
Kamalkumar Patel56da5742024-05-23 04:53:07 -050032 '../host-bmc/dbus/cpu_core.cpp',
Kamalkumar Patel4e69d252024-05-10 08:48:03 -050033 '../host-bmc/utils.cpp',
Archana Kakanibf1fd272024-06-05 13:25:53 -050034 '../host-bmc/dbus/pcie_slot.cpp',
TOM JOSEPHd4d97a52020-03-23 14:36:34 +053035 'event_parser.cpp'
Deepak Kodihalli3c275e12019-09-21 06:39:39 -050036]
37
Manojkiran Eda998dc4e2022-07-28 08:18:03 +053038responder_headers = ['.']
39
Patrick Williams87bfacd2023-11-29 06:44:36 -060040if get_option('oem-ibm').allowed()
Manojkiran Eda998dc4e2022-07-28 08:18:03 +053041 responder_headers += [
42 '../oem/ibm/',
43 ]
Deepak Kodihalli3c275e12019-09-21 06:39:39 -050044 sources += [
Ravi Tejace1c96f2020-10-05 23:13:01 -050045 '../oem/ibm/libpldmresponder/utils.cpp',
Deepak Kodihalli3c275e12019-09-21 06:39:39 -050046 '../oem/ibm/libpldmresponder/file_io.cpp',
Sampa Misra854e61f2019-08-22 04:36:47 -050047 '../oem/ibm/libpldmresponder/file_table.cpp',
48 '../oem/ibm/libpldmresponder/file_io_by_type.cpp',
Sampa Misra18967162020-01-14 02:31:41 -060049 '../oem/ibm/libpldmresponder/file_io_type_pel.cpp',
Sampa Misrad823cc02020-03-24 04:53:20 -050050 '../oem/ibm/libpldmresponder/file_io_type_dump.cpp',
Tom Joseph7f839f92020-09-21 10:20:44 +053051 '../oem/ibm/libpldmresponder/file_io_type_cert.cpp',
Sampa Misraaea5dde2020-08-31 08:33:47 -050052 '../oem/ibm/libpldmresponder/platform_oem_ibm.cpp',
Pavithra Barithayaa410c652021-07-22 01:32:47 -050053 '../oem/ibm/libpldmresponder/fru_oem_ibm.cpp',
Sampa Misraaea5dde2020-08-31 08:33:47 -050054 '../oem/ibm/libpldmresponder/oem_ibm_handler.cpp',
Jayashankar Padathdb124362021-01-28 21:12:34 -060055 '../oem/ibm/libpldmresponder/inband_code_update.cpp',
56 '../oem/ibm/requester/dbus_to_file_handler.cpp',
Manojkiran Edad94bb832021-02-17 11:40:22 +053057 '../oem/ibm/libpldmresponder/file_io_type_progress_src.cpp',
Varsha Kaverappae1874e82023-05-02 09:53:24 -050058 '../oem/ibm/libpldmresponder/file_io_type_vpd.cpp',
Archana Kakanid6b00562024-03-31 17:53:58 -050059 '../oem/ibm/libpldmresponder/file_io_type_pcie.cpp',
Deepak Kodihalli3c275e12019-09-21 06:39:39 -050060 ]
61endif
62
63libpldmresponder = library(
Deepak Kodihalli535efa02019-10-08 11:52:42 -050064 'pldmresponder',
Deepak Kodihalli3c275e12019-09-21 06:39:39 -050065 sources,
66 version: meson.project_version(),
Manojkiran Eda998dc4e2022-07-28 08:18:03 +053067 include_directories:include_directories(responder_headers),
Manojkiran Eda1421a802022-04-05 09:41:05 +053068 dependencies: libpldmresponder_deps,
Deepak Kodihalli3c275e12019-09-21 06:39:39 -050069 install: true)
70
Manojkiran Eda998dc4e2022-07-28 08:18:03 +053071libpldmresponder_dep = declare_dependency(
72 include_directories:include_directories(responder_headers),
Deepak Kodihalli3c275e12019-09-21 06:39:39 -050073 link_with: libpldmresponder)
Tom Joseph53279882021-04-28 06:29:13 -070074
Patrick Williams87bfacd2023-11-29 06:44:36 -060075if get_option('tests').allowed()
Tom Joseph53279882021-04-28 06:29:13 -070076 subdir('test')
77endif
Sagar Srinivas11ce8d22022-07-28 11:32:34 -050078