blob: 2797f519c907940fec174900c8ad7ba1284e5d93 [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',
12 'bios_parser.cpp',
John Wange2efdcc2020-02-12 17:02:06 +080013 'bios_attribute.cpp',
George Liue53193f2020-02-24 09:23:26 +080014 'pdr_utils.cpp',
Deepak Kodihalli3c275e12019-09-21 06:39:39 -050015 'pdr.cpp',
Deepak Kodihalli557dfb02019-05-12 13:11:17 +053016 'platform.cpp',
Deepak Kodihalli70e8db02019-10-21 00:59:46 -050017 'fru_parser.cpp',
18 'fru.cpp'
Deepak Kodihalli3c275e12019-09-21 06:39:39 -050019]
20
21if get_option('oem-ibm').enabled()
22 sources += [
23 '../oem/ibm/libpldmresponder/file_io.cpp',
Sampa Misra854e61f2019-08-22 04:36:47 -050024 '../oem/ibm/libpldmresponder/file_table.cpp',
25 '../oem/ibm/libpldmresponder/file_io_by_type.cpp',
Sampa Misra18967162020-01-14 02:31:41 -060026 '../oem/ibm/libpldmresponder/file_io_type_pel.cpp',
27 '../oem/ibm/libpldmresponder/file_io_type_dump.cpp'
Deepak Kodihalli3c275e12019-09-21 06:39:39 -050028 ]
29endif
30
31libpldmresponder = library(
Deepak Kodihalli535efa02019-10-08 11:52:42 -050032 'pldmresponder',
Deepak Kodihalli3c275e12019-09-21 06:39:39 -050033 sources,
34 version: meson.project_version(),
35 dependencies: deps,
36 install: true)
37
38libpldmresponder = declare_dependency(
39 link_with: libpldmresponder)