Xiuzhi Cheng | 4f3eb90 | 2022-06-08 09:06:33 +0800 | [diff] [blame] | 1 | project( |
| 2 | 'kunlun-ipmi-oem', |
| 3 | 'cpp', |
| 4 | default_options: [ |
| 5 | 'warning_level=3', |
| 6 | 'werror=true', |
Patrick Williams | b045a67 | 2023-07-12 11:16:04 -0500 | [diff] [blame^] | 7 | 'cpp_std=c++23', |
Xiuzhi Cheng | 4f3eb90 | 2022-06-08 09:06:33 +0800 | [diff] [blame] | 8 | 'prefix=/usr', |
| 9 | 'b_lundef=false', |
| 10 | 'buildtype=debugoptimized', |
| 11 | ], |
| 12 | license: 'Apache-2.0', |
| 13 | version: '1.0', |
Patrick Williams | b045a67 | 2023-07-12 11:16:04 -0500 | [diff] [blame^] | 14 | meson_version: '>=1.1.1', |
Xiuzhi Cheng | 4f3eb90 | 2022-06-08 09:06:33 +0800 | [diff] [blame] | 15 | ) |
| 16 | |
| 17 | phosphor_logging = dependency('phosphor-logging') |
| 18 | libipmid = dependency('libipmid') |
| 19 | |
| 20 | # Common configurations for src and test |
| 21 | cdata = configuration_data() |
| 22 | cdata.set_quoted('IPMI_BIOSDATA_DIR', get_option('IPMI_BIOSDATA_DIR')) |
| 23 | |
| 24 | subdir('src') |
| 25 | |
| 26 | build_tests = get_option('tests') |
| 27 | if not build_tests.disabled() |
| 28 | subdir('test') |
| 29 | endif |