Index: device/usb/BUILD.gn |
diff --git a/device/usb/BUILD.gn b/device/usb/BUILD.gn |
index 76fa59e24d4b5e78d7b007d8e1b679c1a8efd7f1..83ff8c1140bc23212fd36d2f795a394176212f8e 100644 |
--- a/device/usb/BUILD.gn |
+++ b/device/usb/BUILD.gn |
@@ -57,13 +57,22 @@ static_library("usb") { |
deps = [ |
":usb_device_ids", |
- "//base", |
"//base/third_party/dynamic_annotations", |
"//components/device_event_log", |
"//device/base", |
"//net", |
] |
+ public_deps = [ |
+ "//base", |
+ "//url", |
+ |
+ # 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) { |
sources += [ |
"usb_service_linux.cc", |