blob: cb3a7a3eaeab1cb646bd2c0c6532c0d3b29b9a7b [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',
Sampa Misra18967162020-01-14 02:31:41 -060025 '../oem/ibm/libpldmresponder/file_io_type_pel.cpp',
26 '../oem/ibm/libpldmresponder/file_io_type_dump.cpp'
Deepak Kodihalli3c275e12019-09-21 06:39:39 -050027 ]
28endif
29
30libpldmresponder = library(
Deepak Kodihalli535efa02019-10-08 11:52:42 -050031 'pldmresponder',
Deepak Kodihalli3c275e12019-09-21 06:39:39 -050032 sources,
33 version: meson.project_version(),
34 dependencies: deps,
35 install: true)
36
37libpldmresponder = declare_dependency(
38 link_with: libpldmresponder)