Index: device/usb/BUILD.gn |
diff --git a/device/usb/BUILD.gn b/device/usb/BUILD.gn |
index 76fa59e24d4b5e78d7b007d8e1b679c1a8efd7f1..0b6ad32f4e2affa30f7ae414614b67578fe177dd 100644 |
--- a/device/usb/BUILD.gn |
+++ b/device/usb/BUILD.gn |
@@ -62,6 +62,11 @@ static_library("usb") { |
"//components/device_event_log", |
"//device/base", |
"//net", |
+ |
+ # Depend on the header generation target only to avoid the circular |
+ # dependency caused by both using enums defined in the mojom headers and |
+ # typemappings linking against this target. |
+ "public/interfaces:interfaces__generator", |
] |
if (use_udev) { |