From 4f5961a389698844117e70601ccf4c9e3ae1cb86 Mon Sep 17 00:00:00 2001
From: Thomas Deutschmann <whissi@gentoo.org>
Date: Wed, 4 Aug 2021 15:11:26 +0200
Subject: [PATCH] dell-dock plugin requires gusb

Closes: https://github.com/fwupd/fwupd/issues/3598
---
 plugins/dell-dock/meson.build | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/plugins/dell-dock/meson.build b/plugins/dell-dock/meson.build
index 829771de1..ae8f67f33 100644
--- a/plugins/dell-dock/meson.build
+++ b/plugins/dell-dock/meson.build
@@ -1,3 +1,4 @@
+if get_option('gusb')
 cargs = ['-DG_LOG_DOMAIN="FuPluginDellDock"']
 
 install_data(['dell-dock.quirk'],
@@ -34,3 +35,4 @@ shared_module('fu_plugin_dell_dock',
     gudev,
   ],
 )
+endif
