| Index: components/cronet/ios/BUILD.gn
|
| diff --git a/components/cronet/ios/BUILD.gn b/components/cronet/ios/BUILD.gn
|
| index 19ff7514cf2e3ed18404b4541d512bd9370e9519..3c86b8650e2c6bae6ad491c6471acb4b3b6f3772 100644
|
| --- a/components/cronet/ios/BUILD.gn
|
| +++ b/components/cronet/ios/BUILD.gn
|
| @@ -129,42 +129,44 @@ 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",
|
| - "//components/cronet/ios/Cronet.h",
|
| - "//components/cronet/ios/cronet_c_for_grpc.h",
|
| - ]
|
| - 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",
|
| + "//components/cronet/ios/Cronet.h",
|
| + "//components/cronet/ios/cronet_c_for_grpc.h",
|
| + ]
|
| + 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",
|
| + ]
|
| + }
|
| }
|
|
|