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/version.gni") | 8 import("//build/util/version.gni") |
9 import("//chrome/version.gni") | 9 import("//chrome/version.gni") |
10 import("//testing/test.gni") | 10 import("//testing/test.gni") |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
179 if (defined(invoker.defines)) { | 179 if (defined(invoker.defines)) { |
180 defines += invoker.defines | 180 defines += invoker.defines |
181 } | 181 } |
182 | 182 |
183 if (defined(invoker.deps)) { | 183 if (defined(invoker.deps)) { |
184 deps += invoker.deps | 184 deps += invoker.deps |
185 } | 185 } |
186 } | 186 } |
187 } | 187 } |
188 | 188 |
189 # cronet_static_small target has reduced binary size through using | |
190 # ICU alternatives which requires file and ftp support be disabled. | |
191 cronet_static_tmpl("cronet_static_small") { | |
mef
2016/04/01 20:42:49
yay!
kapishnikov
2016/04/04 20:17:26
Returned the target back since it depends on brows
| |
192 defines = [ | |
193 "USE_ICU_ALTERNATIVES_ON_ANDROID=1", | |
194 "DISABLE_FILE_SUPPORT=1", | |
195 "DISABLE_FTP_SUPPORT=1", | |
196 ] | |
197 | |
198 deps = [ | |
199 "//net:net_small", | |
200 "//url:url_lib_use_icu_alternatives_on_android", | |
201 ] | |
202 | |
203 if (cronet_enable_data_reduction_proxy_support) { | |
204 deps += [ | |
205 "//components/data_reduction_proxy/core/browser:browser_small", | |
206 "//components/data_reduction_proxy/core/common:common_small", | |
207 ] | |
208 } | |
209 } | |
210 | |
211 # cronet_static target depends on ICU and includes file and ftp support. | 189 # cronet_static target depends on ICU and includes file and ftp support. |
212 cronet_static_tmpl("cronet_static") { | 190 cronet_static_tmpl("cronet_static") { |
213 deps = [ | 191 deps = [ |
214 "//base:i18n", | 192 "//base:i18n", |
215 "//net", | 193 "//net", |
216 "//url", | 194 "//url", |
217 ] | 195 ] |
218 | 196 |
219 if (cronet_enable_data_reduction_proxy_support) { | 197 if (cronet_enable_data_reduction_proxy_support) { |
220 deps += [ | 198 deps += [ |
221 "//components/data_reduction_proxy/core/browser", | 199 "//components/data_reduction_proxy/core/browser", |
222 "//components/data_reduction_proxy/core/common", | 200 "//components/data_reduction_proxy/core/common", |
223 ] | 201 ] |
224 } | 202 } |
225 } | 203 } |
226 | 204 |
227 shared_library("cronet") { | 205 shared_library("cronet") { |
228 sources = [ | 206 sources = [ |
229 "cronet_jni.cc", | 207 "cronet_jni.cc", |
230 ] | 208 ] |
231 deps = [ | 209 deps = [ |
232 ":cronet_static_small", | 210 ":cronet_static", |
233 "//base", | 211 "//base", |
234 "//net:net_small", | 212 "//net:net", |
235 ] | 213 ] |
236 ldflags = [ "-Wl,--version-script=" + | 214 ldflags = [ "-Wl,--version-script=" + |
237 rebase_path("//components/cronet/android/only_jni_exports.lst") ] | 215 rebase_path("//components/cronet/android/only_jni_exports.lst") ] |
238 | 216 |
239 # Avoid hide_native_jni_exports as it adds another version script, and the | 217 # Avoid hide_native_jni_exports as it adds another version script, and the |
240 # ARM64 linker throws an error for multiple version scripts with anonymous | 218 # ARM64 linker throws an error for multiple version scripts with anonymous |
241 # version tags. | 219 # version tags. |
242 configs -= [ "//build/config/android:hide_native_jni_exports" ] | 220 configs -= [ "//build/config/android:hide_native_jni_exports" ] |
243 } | 221 } |
244 | 222 |
(...skipping 634 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
879 ":cronet_package_copy_native_lib", | 857 ":cronet_package_copy_native_lib", |
880 ":cronet_package_copy_native_lib_unstripped", | 858 ":cronet_package_copy_native_lib_unstripped", |
881 ":generate_javadoc", | 859 ":generate_javadoc", |
882 ":generate_licenses", | 860 ":generate_licenses", |
883 ":jar_cronet_api_source", | 861 ":jar_cronet_api_source", |
884 ":jar_cronet_other_source", | 862 ":jar_cronet_other_source", |
885 ":jar_cronet_sample_source", | 863 ":jar_cronet_sample_source", |
886 ":repackage_extracted_jars", | 864 ":repackage_extracted_jars", |
887 ] | 865 ] |
888 } | 866 } |
OLD | NEW |