blob: bb0d10c26905f2a43b7dab436847ed1facc4adde [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'),
George Liuab437e52020-01-19 17:12:19 +08004 libpldm,
5 libpldmutils
Deepak Kodihalli3c275e12019-09-21 06:39:39 -05006]
7
8sources = [
9 'base.cpp',
10 'bios.cpp',
11 'bios_table.cpp',
John Wange2efdcc2020-02-12 17:02:06 +080012 'bios_attribute.cpp',
John Wang29683b52020-02-27 16:41:44 +080013 'bios_string_attribute.cpp',
John Wang95e6b3c2020-02-13 09:43:24 +080014 'bios_integer_attribute.cpp',
John Wang3be70852020-02-13 15:59:04 +080015 'bios_enum_attribute.cpp',
John Wangd9659342020-02-27 16:46:05 +080016 'bios_config.cpp',
George Liue53193f2020-02-24 09:23:26 +080017 'pdr_utils.cpp',
Deepak Kodihalli3c275e12019-09-21 06:39:39 -050018 'pdr.cpp',
Deepak Kodihalli557dfb02019-05-12 13:11:17 +053019 'platform.cpp',
Deepak Kodihalli70e8db02019-10-21 00:59:46 -050020 'fru_parser.cpp',
21 'fru.cpp'
Deepak Kodihalli3c275e12019-09-21 06:39:39 -050022]
23
24if get_option('oem-ibm').enabled()
25 sources += [
26 '../oem/ibm/libpldmresponder/file_io.cpp',
Sampa Misra854e61f2019-08-22 04:36:47 -050027 '../oem/ibm/libpldmresponder/file_table.cpp',
28 '../oem/ibm/libpldmresponder/file_io_by_type.cpp',
Sampa Misra18967162020-01-14 02:31:41 -060029 '../oem/ibm/libpldmresponder/file_io_type_pel.cpp',
Sampa Misrad823cc02020-03-24 04:53:20 -050030 '../oem/ibm/libpldmresponder/file_io_type_dump.cpp',
31 '../oem/ibm/libpldmresponder/file_io_type_cert.cpp'
Deepak Kodihalli3c275e12019-09-21 06:39:39 -050032 ]
33endif
34
35libpldmresponder = library(
Deepak Kodihalli535efa02019-10-08 11:52:42 -050036 'pldmresponder',
Deepak Kodihalli3c275e12019-09-21 06:39:39 -050037 sources,
38 version: meson.project_version(),
39 dependencies: deps,
40 install: true)
41
42libpldmresponder = declare_dependency(
43 link_with: libpldmresponder)