Lei YU | 6505e9d | 2020-09-21 17:34:32 +0800 | [diff] [blame] | 1 | project( |
| 2 | 'inspur-ipmi-oem', |
| 3 | 'cpp', |
| 4 | default_options: [ |
| 5 | 'warning_level=3', |
| 6 | 'werror=true', |
George Liu | a2101b8 | 2024-04-03 08:56:33 +0800 | [diff] [blame^] | 7 | 'cpp_std=c++23', |
Lei YU | 6505e9d | 2020-09-21 17:34:32 +0800 | [diff] [blame] | 8 | 'prefix=/usr', |
| 9 | 'b_lundef=false', |
| 10 | 'buildtype=debugoptimized', |
| 11 | ], |
| 12 | license: 'Apache-2.0', |
| 13 | version: '1.0', |
George Liu | a2101b8 | 2024-04-03 08:56:33 +0800 | [diff] [blame^] | 14 | meson_version: '>=1.1.1', |
Lei YU | 6505e9d | 2020-09-21 17:34:32 +0800 | [diff] [blame] | 15 | ) |
| 16 | |
| 17 | phosphor_dbus_interfaces = dependency('phosphor-dbus-interfaces') |
| 18 | phosphor_logging = dependency('phosphor-logging') |
| 19 | libipmid = dependency('libipmid') |
Lei YU | ebd3d09 | 2020-09-27 18:11:48 +0800 | [diff] [blame] | 20 | sdbusplus = dependency('sdbusplus') |
Lei YU | 6505e9d | 2020-09-21 17:34:32 +0800 | [diff] [blame] | 21 | |
Lei YU | 3c341df | 2020-09-27 13:24:53 +0800 | [diff] [blame] | 22 | # Common configurations for src and test |
| 23 | cdata = configuration_data() |
| 24 | cdata.set_quoted('VERSION_IFACE', 'xyz.openbmc_project.Software.Version') |
| 25 | cdata.set_quoted('VERSION', 'Version') |
| 26 | cdata.set_quoted('BIOS_OBJPATH', get_option('BIOS_OBJPATH')) |
| 27 | |
Lei YU | 6505e9d | 2020-09-21 17:34:32 +0800 | [diff] [blame] | 28 | subdir('src') |
Lei YU | ebd3d09 | 2020-09-27 18:11:48 +0800 | [diff] [blame] | 29 | |
| 30 | build_tests = get_option('tests') |
| 31 | if not build_tests.disabled() |
| 32 | subdir('test') |
| 33 | endif |