Index: components/cronet/ios/BUILD.gn |
diff --git a/components/cronet/ios/BUILD.gn b/components/cronet/ios/BUILD.gn |
index 7581b2c3a0f4d2090ad7aeeda87f3c4d7ef334e8..0d5c9e4b577790a1afed40269a7106a307c87c16 100644 |
--- a/components/cronet/ios/BUILD.gn |
+++ b/components/cronet/ios/BUILD.gn |
@@ -162,40 +162,42 @@ test("cronet_unittests") { |
] |
} |
-_package_dir = "$root_out_dir/cronet" |
- |
-action("generate_license") { |
- _license_path = "$_package_dir/LICENSE" |
- |
- script = "//components/cronet/tools/cronet_licenses.py" |
- outputs = [ |
- _license_path, |
- ] |
- args = [ |
- "license", |
- rebase_path(_license_path, root_build_dir), |
- "--gn", |
- ] |
-} |
- |
-copy("cronet_package_copy") { |
- sources = [ |
- "$root_out_dir/Cronet.framework", |
- "//AUTHORS", |
- "//chrome/VERSION", |
- ] |
- outputs = [ |
- "$_package_dir/{{source_file_part}}", |
- ] |
+if (additional_toolchains == [] || current_toolchain == default_toolchain) { |
+ _package_dir = "$root_out_dir/cronet" |
+ |
+ action("generate_license") { |
+ _license_path = "$_package_dir/LICENSE" |
+ |
+ script = "//components/cronet/tools/cronet_licenses.py" |
+ outputs = [ |
+ _license_path, |
+ ] |
+ args = [ |
+ "license", |
+ rebase_path(_license_path, root_build_dir), |
+ "--gn", |
+ ] |
+ } |
- deps = [ |
- ":cronet_framework", |
- ] |
-} |
+ copy("cronet_package_copy") { |
+ sources = [ |
+ "$root_out_dir/Cronet.framework", |
+ "//AUTHORS", |
+ "//chrome/VERSION", |
+ ] |
+ outputs = [ |
+ "$_package_dir/{{source_file_part}}", |
+ ] |
+ |
+ deps = [ |
+ ":cronet_framework", |
+ ] |
+ } |
-group("cronet_package") { |
- deps = [ |
- ":cronet_package_copy", |
- ":generate_license", |
- ] |
+ group("cronet_package") { |
+ deps = [ |
+ ":cronet_package_copy", |
+ ":generate_license", |
+ ] |
+ } |
} |