Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(257)

Side by Side Diff: components/cronet/android/BUILD.gn

Issue 2338093003: Revert of gn: Generalize process_version() and move it to build/util (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chromecast/crypto/BUILD.gn ('k') | components/cronet/ios/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/android/config.gni") 6 import("//build/config/android/config.gni")
7 import("//build/config/android/rules.gni") 7 import("//build/config/android/rules.gni")
8 import("//build/util/process_version.gni")
9 import("//build/util/version.gni") 8 import("//build/util/version.gni")
9 import("//chrome/version.gni")
10 import("//testing/test.gni") 10 import("//testing/test.gni")
11 import("//third_party/protobuf/proto_library.gni") 11 import("//third_party/protobuf/proto_library.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
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 package_name = "org/chromium/net" 88 package_name = "org/chromium/net"
89 } 89 }
90 90
91 _generated_api_version_java_dir = 91 _generated_api_version_java_dir =
92 "$target_gen_dir/templates/cronet_api_version_java" 92 "$target_gen_dir/templates/cronet_api_version_java"
93 _generated_api_version_java = 93 _generated_api_version_java =
94 "$_generated_api_version_java_dir/org/chromium/net/ApiVersion.java" 94 "$_generated_api_version_java_dir/org/chromium/net/ApiVersion.java"
95 95
96 process_version("cronet_api_version_java") { 96 process_version("cronet_api_version_java") {
97 template_file = "api/src/org/chromium/net/ApiVersion.template" 97 template_file = "api/src/org/chromium/net/ApiVersion.template"
98 sources = [
99 "//build/util/LASTCHANGE",
100 "//chrome/VERSION",
101 ]
102 output = _generated_api_version_java 98 output = _generated_api_version_java
103 } 99 }
104 100
105 zip("cronet_api_version_srcjar") { 101 zip("cronet_api_version_srcjar") {
106 inputs = [ 102 inputs = [
107 _generated_api_version_java, 103 _generated_api_version_java,
108 ] 104 ]
109 output = "$target_gen_dir/$target_name.srcjar" 105 output = "$target_gen_dir/$target_name.srcjar"
110 base_dir = _generated_api_version_java_dir 106 base_dir = _generated_api_version_java_dir
111 deps = [ 107 deps = [
112 ":cronet_api_version_java", 108 ":cronet_api_version_java",
113 ] 109 ]
114 } 110 }
115 111
116 _generated_impl_version_java_dir = 112 _generated_impl_version_java_dir =
117 "$target_gen_dir/templates/cronet_impl_version_java" 113 "$target_gen_dir/templates/cronet_impl_version_java"
118 _generated_impl_version_java = 114 _generated_impl_version_java =
119 "$_generated_impl_version_java_dir/org/chromium/net/impl/ImplVersion.java" 115 "$_generated_impl_version_java_dir/org/chromium/net/impl/ImplVersion.java"
120 116
121 process_version("cronet_impl_version_java") { 117 process_version("cronet_impl_version_java") {
122 template_file = "java/src/org/chromium/net/impl/ImplVersion.template" 118 template_file = "java/src/org/chromium/net/impl/ImplVersion.template"
123 sources = [
124 "//build/util/LASTCHANGE",
125 "//chrome/VERSION",
126 ]
127 output = _generated_impl_version_java 119 output = _generated_impl_version_java
128 } 120 }
129 121
130 zip("cronet_impl_version_srcjar") { 122 zip("cronet_impl_version_srcjar") {
131 inputs = [ 123 inputs = [
132 _generated_impl_version_java, 124 _generated_impl_version_java,
133 ] 125 ]
134 output = "$target_gen_dir/$target_name.srcjar" 126 output = "$target_gen_dir/$target_name.srcjar"
135 base_dir = _generated_impl_version_java_dir 127 base_dir = _generated_impl_version_java_dir
136 deps = [ 128 deps = [
(...skipping 860 matching lines...) Expand 10 before | Expand all | Expand 10 after
997 ":jar_cronet_api_source", 989 ":jar_cronet_api_source",
998 ":jar_cronet_other_source", 990 ":jar_cronet_other_source",
999 ":jar_cronet_sample_source", 991 ":jar_cronet_sample_source",
1000 ":repackage_extracted_jars", 992 ":repackage_extracted_jars",
1001 ] 993 ]
1002 if (current_cpu == "arm" && arm_version == 7) { 994 if (current_cpu == "arm" && arm_version == 7) {
1003 deps += [ ":enforce_no_neon" ] 995 deps += [ ":enforce_no_neon" ]
1004 } 996 }
1005 } 997 }
1006 } 998 }
OLDNEW
« no previous file with comments | « chromecast/crypto/BUILD.gn ('k') | components/cronet/ios/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698