[go: nahoru, domu]

Allow build ChromeDriver during Android build

While build for android on arm and arm64, ChromeDriver can be built
using host toolchain.

Bug: 1050709
Change-Id: I085cc3d34c836bb89699f5e717d686435a7d4dbf
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2068637
Reviewed-by: John Budorick <jbudorick@chromium.org>
Commit-Queue: John Chen <johnchen@chromium.org>
Cr-Commit-Position: refs/heads/master@{#743706}
diff --git a/BUILD.gn b/BUILD.gn
index 30f3033..b2c27f24 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -534,6 +534,10 @@
       ]
     }
 
+    if (is_android && (target_cpu == "arm" || target_cpu == "arm64")) {
+      deps += [ "//chrome/test/chromedriver:chromedriver($host_toolchain)" ]
+    }
+
     if (enable_extensions) {
       deps += [ "//extensions/shell:app_shell" ]
       if (is_desktop_linux && is_official_build) {