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/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") |
8 import("//build/util/version.gni") | 9 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 Loading... |
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 ] |
98 output = _generated_api_version_java | 102 output = _generated_api_version_java |
99 } | 103 } |
100 | 104 |
101 zip("cronet_api_version_srcjar") { | 105 zip("cronet_api_version_srcjar") { |
102 inputs = [ | 106 inputs = [ |
103 _generated_api_version_java, | 107 _generated_api_version_java, |
104 ] | 108 ] |
105 output = "$target_gen_dir/$target_name.srcjar" | 109 output = "$target_gen_dir/$target_name.srcjar" |
106 base_dir = _generated_api_version_java_dir | 110 base_dir = _generated_api_version_java_dir |
107 deps = [ | 111 deps = [ |
108 ":cronet_api_version_java", | 112 ":cronet_api_version_java", |
109 ] | 113 ] |
110 } | 114 } |
111 | 115 |
112 _generated_impl_version_java_dir = | 116 _generated_impl_version_java_dir = |
113 "$target_gen_dir/templates/cronet_impl_version_java" | 117 "$target_gen_dir/templates/cronet_impl_version_java" |
114 _generated_impl_version_java = | 118 _generated_impl_version_java = |
115 "$_generated_impl_version_java_dir/org/chromium/net/impl/ImplVersion.java" | 119 "$_generated_impl_version_java_dir/org/chromium/net/impl/ImplVersion.java" |
116 | 120 |
117 process_version("cronet_impl_version_java") { | 121 process_version("cronet_impl_version_java") { |
118 template_file = "java/src/org/chromium/net/impl/ImplVersion.template" | 122 template_file = "java/src/org/chromium/net/impl/ImplVersion.template" |
| 123 sources = [ |
| 124 "//build/util/LASTCHANGE", |
| 125 "//chrome/VERSION", |
| 126 ] |
119 output = _generated_impl_version_java | 127 output = _generated_impl_version_java |
120 } | 128 } |
121 | 129 |
122 zip("cronet_impl_version_srcjar") { | 130 zip("cronet_impl_version_srcjar") { |
123 inputs = [ | 131 inputs = [ |
124 _generated_impl_version_java, | 132 _generated_impl_version_java, |
125 ] | 133 ] |
126 output = "$target_gen_dir/$target_name.srcjar" | 134 output = "$target_gen_dir/$target_name.srcjar" |
127 base_dir = _generated_impl_version_java_dir | 135 base_dir = _generated_impl_version_java_dir |
128 deps = [ | 136 deps = [ |
(...skipping 860 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
989 ":jar_cronet_api_source", | 997 ":jar_cronet_api_source", |
990 ":jar_cronet_other_source", | 998 ":jar_cronet_other_source", |
991 ":jar_cronet_sample_source", | 999 ":jar_cronet_sample_source", |
992 ":repackage_extracted_jars", | 1000 ":repackage_extracted_jars", |
993 ] | 1001 ] |
994 if (current_cpu == "arm" && arm_version == 7) { | 1002 if (current_cpu == "arm" && arm_version == 7) { |
995 deps += [ ":enforce_no_neon" ] | 1003 deps += [ ":enforce_no_neon" ] |
996 } | 1004 } |
997 } | 1005 } |
998 } | 1006 } |
OLD | NEW |