| 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/version.gni") | 10 import("//build/util/version.gni") |
| 10 import("//chrome/version.gni") | |
| 11 import("//testing/test.gni") | 11 import("//testing/test.gni") |
| 12 import("//url/features.gni") | 12 import("//url/features.gni") |
| 13 | 13 |
| 14 assert(!is_component_build, "Cronet requires static library build.") | 14 assert(!is_component_build, "Cronet requires static library build.") |
| 15 | 15 |
| 16 declare_args() { | 16 declare_args() { |
| 17 cronet_enable_data_reduction_proxy_support = false | 17 cronet_enable_data_reduction_proxy_support = false |
| 18 } | 18 } |
| 19 | 19 |
| 20 process_version("cronet_version_header") { | 20 process_version("cronet_version_header") { |
| 21 template_file = "//components/cronet/version.h.in" | 21 template_file = "//components/cronet/version.h.in" |
| 22 sources = [ |
| 23 "//chrome/VERSION", |
| 24 ] |
| 22 output = "$target_gen_dir/version.h" | 25 output = "$target_gen_dir/version.h" |
| 23 extra_args = [ | 26 extra_args = [ |
| 24 "-e", | 27 "-e", |
| 25 "VERSION_FULL=\"%s.%s.%s.%s\" % (MAJOR,MINOR,BUILD,PATCH)", | 28 "VERSION_FULL=\"%s.%s.%s.%s\" % (MAJOR,MINOR,BUILD,PATCH)", |
| 26 ] | 29 ] |
| 27 } | 30 } |
| 28 | 31 |
| 29 source_set("cronet_sources") { | 32 source_set("cronet_sources") { |
| 30 deps = [ | 33 deps = [ |
| 31 ":cronet_version_header", | 34 ":cronet_version_header", |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 180 ] | 183 ] |
| 181 } | 184 } |
| 182 | 185 |
| 183 group("cronet_package") { | 186 group("cronet_package") { |
| 184 deps = [ | 187 deps = [ |
| 185 ":cronet_package_copy", | 188 ":cronet_package_copy", |
| 186 ":generate_license", | 189 ":generate_license", |
| 187 ] | 190 ] |
| 188 } | 191 } |
| 189 } | 192 } |
| OLD | NEW |