meson: simplify dependencies
Leverage wrapfile `[provide]` directives to simplify the dependency
searching in the meson.build.
Change-Id: I7b37d6b9a0aa7b4a5df6f5a2bf28156b4043fc9a
diff --git a/meson.build b/meson.build
index 2c44f72..3209a1f 100644
--- a/meson.build
+++ b/meson.build
@@ -25,21 +25,9 @@
configuration: conf_data
)
-sdbusplus = dependency(
- 'sdbusplus',
- fallback: ['sdbusplus', 'sdbusplus_dep']
-)
-
-phosphor_logging = dependency(
- 'phosphor-logging',
- fallback: [
- 'phosphor-logging',
- 'phosphor_logging_dep'])
-
-phosphor_dbus_interfaces = dependency(
- 'phosphor-dbus-interfaces',
- fallback: ['phosphor-dbus-interfaces', 'phosphor_dbus_interfaces_dep']
-)
+sdbusplus = dependency('sdbusplus')
+phosphor_logging = dependency('phosphor-logging')
+phosphor_dbus_interfaces = dependency('phosphor-dbus-interfaces')
cxx = meson.get_compiler('cpp')
cereal_dep = dependency('cereal', required: false)