blob: 5473c82767172359200606909d2f91a7726b2930 [file] [log] [blame]
Deepak Kodihalli3c275e12019-09-21 06:39:39 -05001headers = [
2 'base.h',
3 'pldm_types.h',
4 'platform.h',
5 'bios.h',
6 'states.h',
Jinu Joy Thomas8e92c6c2019-08-06 12:22:34 +05307 'fru.h',
John Wangd8702f62019-10-31 10:06:35 +08008 'utils.h'
Deepak Kodihalli3c275e12019-09-21 06:39:39 -05009]
10
11sources = [
12 'base.c',
13 'platform.c',
Jinu Joy Thomas8e92c6c2019-08-06 12:22:34 +053014 'bios.c',
15 'fru.c',
John Wangd8702f62019-10-31 10:06:35 +080016 'utils.c'
Deepak Kodihalli3c275e12019-09-21 06:39:39 -050017]
18
19libpldm_headers = ['.', '..']
20
21if get_option('oem-ibm').enabled()
22 headers += [
23 '../oem/ibm/libpldm/file_io.h'
24 ]
25 sources += [
26 '../oem/ibm/libpldm/file_io.c'
27 ]
28 libpldm_headers += ['../oem/ibm']
29endif
30
31install_headers(
32 headers,
33 subdir: 'libpldm')
34
35libpldm = library(
Deepak Kodihalli535efa02019-10-08 11:52:42 -050036 'pldm',
Deepak Kodihalli3c275e12019-09-21 06:39:39 -050037 sources,
38 implicit_include_directories: false,
39 include_directories: include_directories(libpldm_headers),
40 version: meson.project_version(),
41 install: true)
42
43libpldm = declare_dependency(
44 include_directories: include_directories(libpldm_headers),
45 link_with: libpldm)
46
47import('pkgconfig').generate(
48 name: 'libpldm',
49 description: 'PLDM protocol encode/decode C lib',
50 version: meson.project_version(),
51 libraries: libpldm)