| 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/process_version.gni") | 9 import("//build/util/process_version.gni") |
| 10 import("//build/util/version.gni") | 10 import("//build/util/version.gni") |
| (...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 287 static_library_target = ":libcronet" | 287 static_library_target = ":libcronet" |
| 288 public_configs = [ ":cronet_static_config" ] | 288 public_configs = [ ":cronet_static_config" ] |
| 289 } | 289 } |
| 290 | 290 |
| 291 if (additional_toolchains == [] || current_toolchain == default_toolchain) { | 291 if (additional_toolchains == [] || current_toolchain == default_toolchain) { |
| 292 _package_dir = "$root_out_dir/cronet" | 292 _package_dir = "$root_out_dir/cronet" |
| 293 | 293 |
| 294 action("generate_license") { | 294 action("generate_license") { |
| 295 _license_path = "$_package_dir/LICENSE" | 295 _license_path = "$_package_dir/LICENSE" |
| 296 | 296 |
| 297 script = "//components/cronet/tools/cronet_licenses.py" | 297 script = "//tools/licenses.py" |
| 298 inputs = [ | 298 inputs = [ |
| 299 "//build/util/LASTCHANGE", | 299 "//build/util/LASTCHANGE", |
| 300 "//buildtools/$host_os/gn", | |
| 301 ] | 300 ] |
| 302 outputs = [ | 301 outputs = [ |
| 303 _license_path, | 302 _license_path, |
| 304 ] | 303 ] |
| 305 args = [ | 304 args = [ |
| 306 "license", | 305 "license_file", |
| 307 rebase_path(_license_path, root_build_dir), | 306 rebase_path(_license_path, root_build_dir), |
| 308 "--gn", | 307 "--gn-target", |
| 309 "--gn-path", | 308 "//components/cronet/ios:cronet_framework", |
| 310 rebase_path("//buildtools/$host_os/gn", root_build_dir), | 309 "--gn-out-dir", |
| 310 ".", |
| 311 ] | 311 ] |
| 312 } | 312 } |
| 313 | 313 |
| 314 copy("cronet_static_copy") { | 314 copy("cronet_static_copy") { |
| 315 sources = [ | 315 sources = [ |
| 316 "$root_out_dir/Static/Cronet.framework", | 316 "$root_out_dir/Static/Cronet.framework", |
| 317 ] | 317 ] |
| 318 outputs = [ | 318 outputs = [ |
| 319 "$_package_dir/Static/Cronet.framework", | 319 "$_package_dir/Static/Cronet.framework", |
| 320 ] | 320 ] |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 373 } | 373 } |
| 374 | 374 |
| 375 group("cronet_package") { | 375 group("cronet_package") { |
| 376 deps = [ | 376 deps = [ |
| 377 ":cronet_dsym_archive", | 377 ":cronet_dsym_archive", |
| 378 ":cronet_package_copy", | 378 ":cronet_package_copy", |
| 379 ":generate_license", | 379 ":generate_license", |
| 380 ] | 380 ] |
| 381 } | 381 } |
| 382 } | 382 } |
| OLD | NEW |