meson: Provide missing boost dependency and its wrap file
Currently local meson build fails with the error:
"""
fatal error: boost/asio/io_context.hpp: No such file or directory
"""
This is happening because boost is not listed as a dependency for the
targets that use it.
Add boost dependency for all the necessary targets and provide a wrap
file for boost for the local meson build.
Tested:
"meson setup build && cd build && meson compile" finishes successfully.
Change-Id: I3f418091d8a2da9377684e16ce3e2f88db4c6eb8
Signed-off-by: Konstantin Aladyshev <aladyshev22@gmail.com>
diff --git a/meson.build b/meson.build
index 614351f..8c1183f 100644
--- a/meson.build
+++ b/meson.build
@@ -34,6 +34,8 @@
'-DBOOST_ERROR_CODE_HEADER_ONLY',
'-DBOOST_SYSTEM_NO_DEPRECATED']
+boost_dep = dependency('boost')
+
systemd_system_unit_dir = systemd.get_variable(
'systemdsystemunitdir',
pkgconfig_define: ['prefix', get_option('prefix')])
@@ -135,6 +137,7 @@
phosphor_dbus_interfaces,
phosphor_logging,
sdbusplus,
+ boost_dep
],
cpp_args: boost_args,
install: true,