Index: BUILD.gn |
diff --git a/BUILD.gn b/BUILD.gn |
index 6ed045c2ec436be10205fa5d9f436d4d5c71f641..0594c494d4a3c500e8dc0d89c39eb27bf98dfa01 100644 |
--- a/BUILD.gn |
+++ b/BUILD.gn |
@@ -36,7 +36,6 @@ group("root") { |
"//crypto", |
"//device/bluetooth", |
"//device/nfc", |
- "//device/usb", |
"//extensions/browser", |
"//extensions/common", |
"//extensions/common/api", |
@@ -236,4 +235,11 @@ group("root") { |
"//ui/ozone/demo", |
] |
} |
+ |
+ # Non-mobile builds. |
+ if (!is_android && !is_ios) { |
+ deps += [ |
+ "//device/usb", |
+ ] |
+ } |
} |