Include systemd and boost as system dependencies
In practice, adding the include_type: 'system' causes the imports for
these dependencies to be included in gcc as -Isystem instead of -I. In
practice, this doesn't have much effect, but allows clang-tidy to
correctly not flag errors in headers from system libraries, which causes
the clang-tidy checks to succeed when run from within devshell.
Tested:
ran "bitbake -c devshell bmcweb"
From within the shell, ran:
cd oe-workdir/bmcweb-1.0+git999
ninja clang-tidy
And observed that header errors no longer present.
Signed-off-by: Ed Tanous <edtanous@google.com>
Change-Id: I6f24f061a3f8a58c07ae64ebc82ffefe11c469a2
diff --git a/meson.build b/meson.build
index eb2d3a9..b2b8c90 100644
--- a/meson.build
+++ b/meson.build
@@ -286,7 +286,7 @@
openssl = dependency('openssl', required : true)
bmcweb_dependencies += [pam, atomic, openssl]
-sdbusplus = dependency('sdbusplus',required : false)
+sdbusplus = dependency('sdbusplus', required : false, include_type: 'system')
if not sdbusplus.found()
sdbusplus_proj = subproject('sdbusplus', required: true)
sdbusplus = sdbusplus_proj.get_variable('sdbusplus_dep')
@@ -322,7 +322,7 @@
endif
bmcweb_dependencies += nlohmann_json
-boost = dependency('boost',version : '>=1.75.0', required : false)
+boost = dependency('boost',version : '>=1.75.0', required : false, include_type: 'system')
if not boost.found()
subproject('boost', required: false)
boost_inc = include_directories('subprojects/boost_1_75_0/', is_system:true)