meson: Use subprojects where possible
Change-Id: Id49b7db21f7f44d5183549430988fd33b9166edb
Signed-off-by: William A. Kennington III <wak@google.com>
diff --git a/meson.build b/meson.build
index 96ffd96..e25a727 100644
--- a/meson.build
+++ b/meson.build
@@ -2,7 +2,7 @@
'phosphor-watchdog',
'cpp',
version: '0.1',
- meson_version: '>=0.49.0',
+ meson_version: '>=0.55.0',
default_options: [
'warning_level=3',
'cpp_std=c++17',
@@ -13,8 +13,8 @@
watchdog_deps = [
dependency('phosphor-dbus-interfaces'),
dependency('phosphor-logging'),
- dependency('sdbusplus'),
- dependency('sdeventplus'),
+ dependency('sdbusplus', fallback: ['sdbusplus', 'sdbusplus_dep']),
+ dependency('sdeventplus', fallback: ['sdeventplus', 'sdeventplus_dep']),
]
watchdog_lib = static_library(