blob: 2a2705ef9f5ecf913be7d7d200cced0cf3e3fe57 [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',
13 'pdr.cpp',
14 'effecters.cpp',
Deepak Kodihalli557dfb02019-05-12 13:11:17 +053015 'platform.cpp',
Deepak Kodihalli3c275e12019-09-21 06:39:39 -050016]
17
18if get_option('oem-ibm').enabled()
19 sources += [
20 '../oem/ibm/libpldmresponder/file_io.cpp',
Sampa Misra854e61f2019-08-22 04:36:47 -050021 '../oem/ibm/libpldmresponder/file_table.cpp',
22 '../oem/ibm/libpldmresponder/file_io_by_type.cpp',
23 '../oem/ibm/libpldmresponder/file_io_type_pel.cpp'
Deepak Kodihalli3c275e12019-09-21 06:39:39 -050024 ]
25endif
26
27libpldmresponder = library(
Deepak Kodihalli535efa02019-10-08 11:52:42 -050028 'pldmresponder',
Deepak Kodihalli3c275e12019-09-21 06:39:39 -050029 sources,
30 version: meson.project_version(),
31 dependencies: deps,
32 install: true)
33
34libpldmresponder = declare_dependency(
35 link_with: libpldmresponder)