Chris Sides | 516faac | 2024-05-17 14:59:47 -0500 | [diff] [blame^] | 1 | project( |
| 2 | 'phosphor-u-boot-env-mgr', |
| 3 | 'cpp', |
| 4 | default_options: [ |
| 5 | 'warning_level=3', |
| 6 | 'werror=true', |
| 7 | 'cpp_std=c++20' #highly suspect there should be more entries tied to line 4-6 of CMakeLists.txt.old |
| 8 | ], |
| 9 | license: 'Apache-2.0', |
| 10 | version: '0.1', |
| 11 | meson_version: '>=0.64.0', |
| 12 | ) |
| 13 | add_project_arguments('-Wno-psabi', #no idea what this line is about or where it came from |
| 14 | '-DBOOST_ERROR_CODE_HEADER_ONLY', |
| 15 | '-DBOOST_SYSTEM_NO_DEPRECATED', |
| 16 | '-DBOOST_ALL_NO_LIB', |
| 17 | '-DBOOST_NO_RTTI', |
| 18 | '-DBOOST_NO_TYPEID', |
| 19 | '-DBOOST_ASIO_DISABLE_THREADS', |
| 20 | language: 'cpp') |
| 21 | |
| 22 | boost = dependency('boost', version: '>=1.75.0', include_type: 'system', required : true) |
| 23 | sdbusplus = dependency('sdbusplus', include_type: 'system', required : true) |
| 24 | dbusinterface = dependency('phosphor-dbus-interfaces', include_type: 'system', required : true) |
| 25 | phosphor_logging_dep = dependency('phosphor-logging', required : true) |
| 26 | |
| 27 | default_deps =[ |
| 28 | boost, |
| 29 | phosphor_logging_dep, |
| 30 | sdbusplus, |
| 31 | dbusinterface, |
| 32 | ] |
| 33 | |
| 34 | incdir = include_directories('include') |
| 35 | |
| 36 | subdir('src') |
| 37 | subdir('include') |
| 38 | subdir('service_files') |