Pavithra Barithaya | a7989cd | 2023-10-30 08:52:28 -0500 | [diff] [blame] | 1 | libpldm_sources = files( |
Andrew Jeffery | 9c76679 | 2022-08-10 23:12:49 +0930 | [diff] [blame] | 2 | 'base.c', |
| 3 | 'bios.c', |
| 4 | 'platform.c', |
| 5 | 'bios_table.c', |
| 6 | 'firmware_update.c', |
| 7 | 'fru.c', |
| 8 | 'pdr.c', |
Andrew Jeffery | cc45aed | 2023-09-10 23:03:29 +0930 | [diff] [blame] | 9 | 'responder.c', |
Andrew Jeffery | 9c76679 | 2022-08-10 23:12:49 +0930 | [diff] [blame] | 10 | 'utils.c' |
| 11 | ) |
| 12 | |
Andrew Jeffery | 55e5e0a | 2023-06-05 12:33:16 +0930 | [diff] [blame] | 13 | subdir('requester') |
| 14 | subdir('transport') |
| 15 | |
Andrew Jeffery | 8de8e1e | 2023-06-09 14:37:18 +0930 | [diff] [blame] | 16 | if get_option('oem-ibm').allowed() |
Andrew Jeffery | 9c76679 | 2022-08-10 23:12:49 +0930 | [diff] [blame] | 17 | subdir('oem/ibm') |
| 18 | endif |
Pavithra Barithaya | a7989cd | 2023-10-30 08:52:28 -0500 | [diff] [blame] | 19 | |
| 20 | libpldm = library( |
| 21 | 'pldm', |
| 22 | libpldm_sources, |
| 23 | implicit_include_directories: false, |
| 24 | include_directories: [ |
| 25 | libpldm_include_dir, |
| 26 | include_directories('.') |
| 27 | ], |
| 28 | version: meson.project_version(), |
| 29 | gnu_symbol_visibility: 'hidden', |
| 30 | install: true |
| 31 | ) |
| 32 | |
| 33 | libpldm_dep = declare_dependency( |
| 34 | include_directories: libpldm_include_dir, |
| 35 | link_with: libpldm) |
| 36 | |
| 37 | import('pkgconfig').generate( |
| 38 | name: 'libpldm', |
| 39 | description: 'PLDM protocol encode/decode C lib', |
| 40 | version: meson.project_version(), |
| 41 | libraries: libpldm) |