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: Ia27d543a9c13b2c6973ab394ed88cd12d93e88a8
diff --git a/usb/meson.build b/usb/meson.build
index bb1dc60..da7fc92 100644
--- a/usb/meson.build
+++ b/usb/meson.build
@@ -1,31 +1,17 @@
if cpp.has_header('CLI/CLI.hpp')
CLI11_dep = declare_dependency()
else
- CLI11_dep = dependency(
- 'CLI11',
- fallback: [ 'CLI11', 'CLI11_dep' ],
- )
+ CLI11_dep = dependency('CLI11')
endif
+sdeventplus_dep = dependency('sdeventplus')
+
source = [
'usb_manager_main.cpp',
'usb_manager.cpp',
'../utils.cpp',
]
-sdeventplus_dep = dependency(
- 'sdeventplus',
- fallback: [
- 'sdeventplus',
- 'sdeventplus_dep'
- ],
-)
-
-phosphor_logging_dep = dependency(
- 'phosphor-logging',
- fallback: ['phosphor-logging', 'phosphor_logging_dep'],
-)
-
executable(
'phosphor-usb-code-update',
source,