blob: 8ad31d4d8c211146862c16028356d12cc424b264 [file] [log] [blame]
Deepak Kodihalli3c275e12019-09-21 06:39:39 -05001deps = [
2 dependency('phosphor-dbus-interfaces'),
3 dependency('phosphor-logging'),
4 dependency('sdbusplus'),
5 libpldm
6]
7
8sources = [
9 'base.cpp',
10 'bios.cpp',
11 'bios_table.cpp',
12 'bios_parser.cpp',
13 'pdr.cpp',
14 'effecters.cpp',
15 'utils.cpp',
Deepak Kodihalli557dfb02019-05-12 13:11:17 +053016 'platform.cpp',
Deepak Kodihalli3c275e12019-09-21 06:39:39 -050017]
18
19if get_option('oem-ibm').enabled()
20 sources += [
21 '../oem/ibm/libpldmresponder/file_io.cpp',
Sampa Misra854e61f2019-08-22 04:36:47 -050022 '../oem/ibm/libpldmresponder/file_table.cpp',
23 '../oem/ibm/libpldmresponder/file_io_by_type.cpp',
24 '../oem/ibm/libpldmresponder/file_io_type_pel.cpp'
Deepak Kodihalli3c275e12019-09-21 06:39:39 -050025 ]
26endif
27
28libpldmresponder = library(
Deepak Kodihalli535efa02019-10-08 11:52:42 -050029 'pldmresponder',
Deepak Kodihalli3c275e12019-09-21 06:39:39 -050030 sources,
31 version: meson.project_version(),
32 dependencies: deps,
33 install: true)
34
35libpldmresponder = declare_dependency(
36 link_with: libpldmresponder)