| OLD | NEW |
| 1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import("//build/buildflag_header.gni") | 5 import("//build/buildflag_header.gni") |
| 6 import("//build/config/ios/rules.gni") | 6 import("//build/config/ios/rules.gni") |
| 7 import("//build/util/version.gni") | 7 import("//build/util/version.gni") |
| 8 import("//chrome/version.gni") | 8 import("//chrome/version.gni") |
| 9 import("//testing/test.gni") | 9 import("//testing/test.gni") |
| 10 import("//url/features.gni") | 10 import("//url/features.gni") |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 deps = [ | 122 deps = [ |
| 123 ":cronet_sources", | 123 ":cronet_sources", |
| 124 "//base", | 124 "//base", |
| 125 "//base/test:test_support", | 125 "//base/test:test_support", |
| 126 "//components/metrics", | 126 "//components/metrics", |
| 127 "//net", | 127 "//net", |
| 128 "//testing/gtest", | 128 "//testing/gtest", |
| 129 ] | 129 ] |
| 130 } | 130 } |
| 131 | 131 |
| 132 _package_dir = "$root_out_dir/cronet" | 132 if (additional_toolchains == [] || current_toolchain == default_toolchain) { |
| 133 _package_dir = "$root_out_dir/cronet" |
| 133 | 134 |
| 134 action("generate_license") { | 135 action("generate_license") { |
| 135 _license_path = "$_package_dir/LICENSE" | 136 _license_path = "$_package_dir/LICENSE" |
| 136 | 137 |
| 137 script = "//components/cronet/tools/cronet_licenses.py" | 138 script = "//components/cronet/tools/cronet_licenses.py" |
| 138 outputs = [ | 139 outputs = [ |
| 139 _license_path, | 140 _license_path, |
| 140 ] | 141 ] |
| 141 args = [ | 142 args = [ |
| 142 "license", | 143 "license", |
| 143 rebase_path(_license_path, root_build_dir), | 144 rebase_path(_license_path, root_build_dir), |
| 144 "--gn", | 145 "--gn", |
| 145 ] | 146 ] |
| 147 } |
| 148 |
| 149 copy("cronet_package_copy") { |
| 150 sources = [ |
| 151 "$root_out_dir/Cronet.framework", |
| 152 "//AUTHORS", |
| 153 "//chrome/VERSION", |
| 154 "//components/cronet/ios/Cronet.h", |
| 155 "//components/cronet/ios/cronet_c_for_grpc.h", |
| 156 ] |
| 157 outputs = [ |
| 158 "$_package_dir/{{source_file_part}}", |
| 159 ] |
| 160 |
| 161 deps = [ |
| 162 ":cronet_framework", |
| 163 ] |
| 164 } |
| 165 |
| 166 group("cronet_package") { |
| 167 deps = [ |
| 168 ":cronet_package_copy", |
| 169 ":generate_license", |
| 170 ] |
| 171 } |
| 146 } | 172 } |
| 147 | |
| 148 copy("cronet_package_copy") { | |
| 149 sources = [ | |
| 150 "$root_out_dir/Cronet.framework", | |
| 151 "//AUTHORS", | |
| 152 "//chrome/VERSION", | |
| 153 "//components/cronet/ios/Cronet.h", | |
| 154 "//components/cronet/ios/cronet_c_for_grpc.h", | |
| 155 ] | |
| 156 outputs = [ | |
| 157 "$_package_dir/{{source_file_part}}", | |
| 158 ] | |
| 159 | |
| 160 deps = [ | |
| 161 ":cronet_framework", | |
| 162 ] | |
| 163 } | |
| 164 | |
| 165 group("cronet_package") { | |
| 166 deps = [ | |
| 167 ":cronet_package_copy", | |
| 168 ":generate_license", | |
| 169 ] | |
| 170 } | |
| OLD | NEW |