build: Propagate boost arguments as needed

This aligns sdbusplus_dep and the packageconfig to pass the needed
dependency information to utilize boost ASIO with the expected compiler
arguments.

Change-Id: I4916fbeaf741db3165358d800229e984f53b687b
Signed-off-by: William A. Kennington III <wak@google.com>
diff --git a/meson.build b/meson.build
index 790684e..3a8a5cf 100644
--- a/meson.build
+++ b/meson.build
@@ -31,21 +31,26 @@
     install: true,
 )
 
+boost_compile_args = [
+    '-DBOOST_ASIO_DISABLE_THREADS',
+    '-DBOOST_ALL_NO_LIB',
+    '-DBOOST_SYSTEM_NO_DEPRECATED',
+    '-DBOOST_ERROR_CODE_HEADER_ONLY',
+    '-DBOOST_COROUTINES_NO_DEPRECATION_WARNING',
+]
+
+boost_dep = declare_dependency(
+    dependencies: dependency('boost', required: false),
+    compile_args: boost_compile_args)
+
 sdbusplus_dep = declare_dependency(
     include_directories: root_inc,
     link_with: libsdbusplus,
-    dependencies: libsystemd_pkg
+    dependencies: [ libsystemd_pkg, boost_dep ],
 )
 
 subdir('tools')
 
-boost_dep = dependency(
-    'boost',
-    disabler: true,
-    required: false,
-    modules: [ 'coroutine', 'context' ],
-)
-
 if not get_option('examples').disabled()
   subdir('example')
 endif
@@ -64,5 +69,6 @@
     name: meson.project_name(),
     version: meson.project_version(),
     requires: libsystemd_pkg,
+    extra_cflags: boost_compile_args,
     description: 'C++ bindings for sdbus',
 )