switching from cmakeLists to meson build scripts
Nearly all OBMC subprojects are using MESON. This change brings this
repo in line with other active OBMC repos, in addition to clarifying
the build process for easier future additions via simpler build
configuration scripting requirements in MESON.
The MESON scripts used here are primed to allow multiple separate
'features' to be enabled/disabled at build time via the recipe.
For now, the only 'feature' is the u-boot-env-mgr daemon, but
(at least one) more services are expected to be added in the future.
Change-Id: Id10d49aea4d488e81f459221bfa5755e29d60608
Signed-off-by: Chris Sides <Christopher.Sides@hpe.com>
diff --git a/meson.build b/meson.build
new file mode 100644
index 0000000..18f4f42
--- /dev/null
+++ b/meson.build
@@ -0,0 +1,38 @@
+project(
+ 'phosphor-u-boot-env-mgr',
+ 'cpp',
+ default_options: [
+ 'warning_level=3',
+ 'werror=true',
+ 'cpp_std=c++20' #highly suspect there should be more entries tied to line 4-6 of CMakeLists.txt.old
+ ],
+ license: 'Apache-2.0',
+ version: '0.1',
+ meson_version: '>=0.64.0',
+)
+add_project_arguments('-Wno-psabi', #no idea what this line is about or where it came from
+ '-DBOOST_ERROR_CODE_HEADER_ONLY',
+ '-DBOOST_SYSTEM_NO_DEPRECATED',
+ '-DBOOST_ALL_NO_LIB',
+ '-DBOOST_NO_RTTI',
+ '-DBOOST_NO_TYPEID',
+ '-DBOOST_ASIO_DISABLE_THREADS',
+ language: 'cpp')
+
+boost = dependency('boost', version: '>=1.75.0', include_type: 'system', required : true)
+sdbusplus = dependency('sdbusplus', include_type: 'system', required : true)
+dbusinterface = dependency('phosphor-dbus-interfaces', include_type: 'system', required : true)
+phosphor_logging_dep = dependency('phosphor-logging', required : true)
+
+default_deps =[
+ boost,
+ phosphor_logging_dep,
+ sdbusplus,
+ dbusinterface,
+ ]
+
+incdir = include_directories('include')
+
+subdir('src')
+subdir('include')
+subdir('service_files')
\ No newline at end of file