Index: device/usb/BUILD.gn |
diff --git a/device/usb/BUILD.gn b/device/usb/BUILD.gn |
index edb8c93cbb1cc85598cc83464fef07ae101a9073..0acb21256ec2a83558cdf7c8d464ca50288fca94 100644 |
--- a/device/usb/BUILD.gn |
+++ b/device/usb/BUILD.gn |
@@ -2,7 +2,7 @@ |
# Use of this source code is governed by a BSD-style license that can be |
# found in the LICENSE file. |
-assert(!is_android && !is_ios) |
+assert(!is_ios) |
source_ids = "//third_party/usb_ids/usb.ids" |
generated_ids = "$target_gen_dir/usb_ids_gen.cc" |
@@ -54,6 +54,11 @@ source_set("usb") { |
"//dbus", |
] |
} |
+ if (is_android) { |
+ deps -= [ |
+ "//third_party/libusb", |
+ ] |
+ } |
} |
source_set("mocks") { |