blob: 948958d80319f0f64997df41793428ac867556ec [file] [log] [blame]
Chris Sides516faac2024-05-17 14:59:47 -05001project(
2 'phosphor-u-boot-env-mgr',
3 'cpp',
4 default_options: [
5 'warning_level=3',
6 'werror=true',
Jason M. Bills0e89e192025-04-23 07:55:14 -07007 'cpp_std=c++23', #highly suspect there should be more entries tied to line 4-6 of CMakeLists.txt.old
Chris Sides516faac2024-05-17 14:59:47 -05008 ],
9 license: 'Apache-2.0',
10 version: '0.1',
Jason M. Bills0e89e192025-04-23 07:55:14 -070011 meson_version: '>=1.1.1',
Chris Sides516faac2024-05-17 14:59:47 -050012)
Jason M. Bills0e89e192025-04-23 07:55:14 -070013add_project_arguments(
14 '-Wno-psabi', #no idea what this line is about or where it came from
Chris Sides516faac2024-05-17 14:59:47 -050015 '-DBOOST_ERROR_CODE_HEADER_ONLY',
16 '-DBOOST_SYSTEM_NO_DEPRECATED',
17 '-DBOOST_ALL_NO_LIB',
18 '-DBOOST_NO_RTTI',
19 '-DBOOST_NO_TYPEID',
20 '-DBOOST_ASIO_DISABLE_THREADS',
Jason M. Bills0e89e192025-04-23 07:55:14 -070021 language: 'cpp',
22)
Chris Sides516faac2024-05-17 14:59:47 -050023
Jason M. Bills0e89e192025-04-23 07:55:14 -070024boost = dependency(
25 'boost',
26 version: '>=1.75.0',
27 include_type: 'system',
28 required: true,
29)
30sdbusplus = dependency('sdbusplus', include_type: 'system', required: true)
31dbusinterface = dependency(
32 'phosphor-dbus-interfaces',
33 include_type: 'system',
34 required: true,
35)
36phosphor_logging_dep = dependency('phosphor-logging', required: true)
Chris Sides516faac2024-05-17 14:59:47 -050037
Jason M. Bills0e89e192025-04-23 07:55:14 -070038default_deps = [boost, phosphor_logging_dep, sdbusplus, dbusinterface]
39
Chris Sides516faac2024-05-17 14:59:47 -050040incdir = include_directories('include')
41
42subdir('src')
43subdir('include')
Jason M. Bills0e89e192025-04-23 07:55:14 -070044subdir('service_files')