Andrew Geissler | 7f25db7 | 2025-03-09 19:09:58 -0500 | [diff] [blame] | 1 | project( |
| 2 | 'openpower-host-ipmi-oem', |
| 3 | 'cpp', |
| 4 | default_options: [ |
| 5 | 'warning_level=3', |
| 6 | 'werror=true', |
| 7 | 'cpp_std=c++23', |
| 8 | 'buildtype=debugoptimized', |
| 9 | ], |
| 10 | meson_version: '>=1.1.1', |
| 11 | license: 'Apache-2.0', |
| 12 | version: '0.1', |
| 13 | ) |
| 14 | |
| 15 | conf = configuration_data() |
| 16 | conf.set_quoted('HOST_NAME', get_option('host-name')) |
| 17 | |
| 18 | configure_file(output: 'config.h', configuration: conf) |
| 19 | |
| 20 | sdbusplus = dependency('sdbusplus') |
| 21 | phosphorlogging = dependency('phosphor-logging') |
| 22 | phosphordbusinterfaces = dependency('phosphor-dbus-interfaces') |
| 23 | ipmid = dependency('libipmid') |
| 24 | |
| 25 | root = meson.current_source_dir() |
| 26 | |
| 27 | # Generate sdbus++ code (occmetrics) |
| 28 | subdir('org/open_power/OCC/Metrics') |
| 29 | |
| 30 | # Generate inventory sensor files |
| 31 | inventory_gen_src = [] |
| 32 | subdir('scripts') |
| 33 | |
| 34 | lilboemhandler_sources = [ |
| 35 | 'host-interface.cpp', |
| 36 | 'oemhandler.cpp', |
| 37 | md_cpp, |
| 38 | inventory_gen_src, |
| 39 | ] |
| 40 | |
| 41 | lilboemhandler = library( |
| 42 | 'oemhandler', |
| 43 | lilboemhandler_sources, |
| 44 | gnu_symbol_visibility: 'hidden', |
| 45 | install: true, |
| 46 | install_dir: get_option('libdir') / 'ipmid-providers', |
| 47 | version: meson.project_version(), |
| 48 | override_options: ['b_lundef=false'], |
| 49 | dependencies: [ |
| 50 | sdbusplus, |
| 51 | phosphorlogging, |
| 52 | phosphordbusinterfaces, |
| 53 | ipmid, |
| 54 | occmetrics_dbus, |
| 55 | ], |
| 56 | ) |
| 57 | |