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/config/mac/symbols.gni") | 7 import("//build/config/mac/symbols.gni") |
8 import("//build/mac/tweak_info_plist.gni") | 8 import("//build/mac/tweak_info_plist.gni") |
9 import("//build/util/version.gni") | 9 import("//build/util/version.gni") |
10 import("//chrome/version.gni") | 10 import("//chrome/version.gni") |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 deps = [ | 155 deps = [ |
156 ":cronet_sources", | 156 ":cronet_sources", |
157 "//base", | 157 "//base", |
158 "//base/test:test_support", | 158 "//base/test:test_support", |
159 "//components/metrics", | 159 "//components/metrics", |
160 "//net", | 160 "//net", |
161 "//testing/gtest", | 161 "//testing/gtest", |
162 ] | 162 ] |
163 } | 163 } |
164 | 164 |
165 _package_dir = "$root_out_dir/cronet" | 165 if (additional_toolchains == [] || current_toolchain == default_toolchain) { |
| 166 _package_dir = "$root_out_dir/cronet" |
166 | 167 |
167 action("generate_license") { | 168 action("generate_license") { |
168 _license_path = "$_package_dir/LICENSE" | 169 _license_path = "$_package_dir/LICENSE" |
169 | 170 |
170 script = "//components/cronet/tools/cronet_licenses.py" | 171 script = "//components/cronet/tools/cronet_licenses.py" |
171 outputs = [ | 172 outputs = [ |
172 _license_path, | 173 _license_path, |
173 ] | 174 ] |
174 args = [ | 175 args = [ |
175 "license", | 176 "license", |
176 rebase_path(_license_path, root_build_dir), | 177 rebase_path(_license_path, root_build_dir), |
177 "--gn", | 178 "--gn", |
178 ] | 179 ] |
| 180 } |
| 181 |
| 182 copy("cronet_package_copy") { |
| 183 sources = [ |
| 184 "$root_out_dir/Cronet.framework", |
| 185 "//AUTHORS", |
| 186 "//chrome/VERSION", |
| 187 ] |
| 188 outputs = [ |
| 189 "$_package_dir/{{source_file_part}}", |
| 190 ] |
| 191 |
| 192 deps = [ |
| 193 ":cronet_framework", |
| 194 ] |
| 195 } |
| 196 |
| 197 group("cronet_package") { |
| 198 deps = [ |
| 199 ":cronet_package_copy", |
| 200 ":generate_license", |
| 201 ] |
| 202 } |
179 } | 203 } |
180 | |
181 copy("cronet_package_copy") { | |
182 sources = [ | |
183 "$root_out_dir/Cronet.framework", | |
184 "//AUTHORS", | |
185 "//chrome/VERSION", | |
186 ] | |
187 outputs = [ | |
188 "$_package_dir/{{source_file_part}}", | |
189 ] | |
190 | |
191 deps = [ | |
192 ":cronet_framework", | |
193 ] | |
194 } | |
195 | |
196 group("cronet_package") { | |
197 deps = [ | |
198 ":cronet_package_copy", | |
199 ":generate_license", | |
200 ] | |
201 } | |
OLD | NEW |