meson: simplify dependencies
Leverage wrapfile `[provide]` directives to simplify the dependency
searching in the meson.build.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I5bbde5732df9604b6ea45eaae519bdf64c27ee3c
diff --git a/meson.build b/meson.build
index a108757..63e9f04 100644
--- a/meson.build
+++ b/meson.build
@@ -44,19 +44,14 @@
'environemt to point at boost build. To build a boost you can use ' +
'script ./scripts/boost_build_1.74.0.sh')
-phosphor_logging = dependency(
- 'phosphor-logging',
- fallback: ['phosphor-logging', 'phosphor_logging_dep'],
-)
-
-sdbusplus = dependency('sdbusplus', fallback: ['sdbusplus', 'sdbusplus_dep'])
+phosphor_logging = dependency('phosphor-logging')
+sdbusplus = dependency('sdbusplus')
systemd = dependency('systemd')
if cpp.has_header('nlohmann/json.hpp')
nlohmann_json = declare_dependency()
else
- nlohmann_json = dependency('nlohmann_json',
- fallback: ['nlohmann', 'nlohmann_json_dep'])
+ nlohmann_json = dependency('nlohmann_json')
endif
add_project_arguments(