meson: simplify dependencies
Leverage wrapfile `[provide]` directives to simplify the dependency
searching in the meson.build.
Change-Id: I01c308089b1b6586f552a10cbcd0641faec4ae26
diff --git a/meson.build b/meson.build
index 698aa7d..49ce8cb 100644
--- a/meson.build
+++ b/meson.build
@@ -39,25 +39,10 @@
'virtualSensor.cpp',
],
dependencies: [
- dependency(
- 'phosphor-logging',
- fallback: ['phosphor-logging', 'phosphor_logging_dep'],
- ),
- dependency(
- 'sdbusplus',
- fallback: ['sdbusplus', 'sdbusplus_dep' ],
- ),
- dependency(
- 'phosphor-dbus-interfaces',
- fallback: [
- 'phosphor-dbus-interfaces',
- 'phosphor_dbus_interfaces_dep'
- ],
- ),
- dependency(
- 'sdeventplus',
- fallback: ['sdeventplus', 'sdeventplus_dep'],
- ),
+ dependency('phosphor-dbus-interfaces'),
+ dependency('phosphor-logging'),
+ dependency('sdbusplus'),
+ dependency('sdeventplus'),
exprtk,
nlohmann_json,
],