blob: 3f09ee7d84eacb1ec294f88e36013f1e1cbfc75d [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',
George Liue53193f2020-02-24 09:23:26 +080013 'pdr_utils.cpp',
Deepak Kodihalli3c275e12019-09-21 06:39:39 -050014 'pdr.cpp',
Deepak Kodihalli557dfb02019-05-12 13:11:17 +053015 'platform.cpp',
Deepak Kodihalli70e8db02019-10-21 00:59:46 -050016 'fru_parser.cpp',
17 'fru.cpp'
Deepak Kodihalli3c275e12019-09-21 06:39:39 -050018]
19
20if get_option('oem-ibm').enabled()
21 sources += [
22 '../oem/ibm/libpldmresponder/file_io.cpp',
Sampa Misra854e61f2019-08-22 04:36:47 -050023 '../oem/ibm/libpldmresponder/file_table.cpp',
24 '../oem/ibm/libpldmresponder/file_io_by_type.cpp',
25 '../oem/ibm/libpldmresponder/file_io_type_pel.cpp'
Deepak Kodihalli3c275e12019-09-21 06:39:39 -050026 ]
27endif
28
29libpldmresponder = library(
Deepak Kodihalli535efa02019-10-08 11:52:42 -050030 'pldmresponder',
Deepak Kodihalli3c275e12019-09-21 06:39:39 -050031 sources,
32 version: meson.project_version(),
33 dependencies: deps,
34 install: true)
35
36libpldmresponder = declare_dependency(
37 link_with: libpldmresponder)