blob: eb86a0445105bf7267ca9b17cb9a635c7a55a4df [file] [log] [blame]
Deepak Kodihalli3c275e12019-09-21 06:39:39 -05001deps = [
2 dependency('phosphor-dbus-interfaces'),
Deepak Kodihalli3c275e12019-09-21 06:39:39 -05003 dependency('sdbusplus'),
Deepak Kodihalli8cb6f662020-04-10 02:55:43 -05004 dependency('sdeventplus'),
George Liuab437e52020-01-19 17:12:19 +08005 libpldm,
6 libpldmutils
Deepak Kodihalli3c275e12019-09-21 06:39:39 -05007]
8
9sources = [
10 'base.cpp',
11 'bios.cpp',
12 'bios_table.cpp',
John Wange2efdcc2020-02-12 17:02:06 +080013 'bios_attribute.cpp',
John Wang29683b52020-02-27 16:41:44 +080014 'bios_string_attribute.cpp',
John Wang95e6b3c2020-02-13 09:43:24 +080015 'bios_integer_attribute.cpp',
John Wang3be70852020-02-13 15:59:04 +080016 'bios_enum_attribute.cpp',
John Wangd9659342020-02-27 16:46:05 +080017 'bios_config.cpp',
George Liue53193f2020-02-24 09:23:26 +080018 'pdr_utils.cpp',
Deepak Kodihalli3c275e12019-09-21 06:39:39 -050019 'pdr.cpp',
Deepak Kodihalli557dfb02019-05-12 13:11:17 +053020 'platform.cpp',
Deepak Kodihalli70e8db02019-10-21 00:59:46 -050021 'fru_parser.cpp',
Deepak Kodihalli8cb6f662020-04-10 02:55:43 -050022 'fru.cpp',
Deepak Kodihalliac19bd62020-06-16 08:25:23 -050023 '../host-bmc/host_pdr_handler.cpp',
George Liucae18662020-05-15 09:32:57 +080024 '../host-bmc/dbus_to_event_handler.cpp',
TOM JOSEPHd4d97a52020-03-23 14:36:34 +053025 'event_parser.cpp'
Deepak Kodihalli3c275e12019-09-21 06:39:39 -050026]
27
28if get_option('oem-ibm').enabled()
29 sources += [
30 '../oem/ibm/libpldmresponder/file_io.cpp',
Sampa Misra854e61f2019-08-22 04:36:47 -050031 '../oem/ibm/libpldmresponder/file_table.cpp',
32 '../oem/ibm/libpldmresponder/file_io_by_type.cpp',
Sampa Misra18967162020-01-14 02:31:41 -060033 '../oem/ibm/libpldmresponder/file_io_type_pel.cpp',
Sampa Misrad823cc02020-03-24 04:53:20 -050034 '../oem/ibm/libpldmresponder/file_io_type_dump.cpp',
Tom Joseph7f839f92020-09-21 10:20:44 +053035 '../oem/ibm/libpldmresponder/file_io_type_cert.cpp',
36 '../oem/ibm/libpldmresponder/platform_oem_ibm.cpp'
Deepak Kodihalli3c275e12019-09-21 06:39:39 -050037 ]
38endif
39
40libpldmresponder = library(
Deepak Kodihalli535efa02019-10-08 11:52:42 -050041 'pldmresponder',
Deepak Kodihalli3c275e12019-09-21 06:39:39 -050042 sources,
43 version: meson.project_version(),
44 dependencies: deps,
45 install: true)
46
47libpldmresponder = declare_dependency(
48 link_with: libpldmresponder)