OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 { | 5 { |
6 'conditions': [ | 6 'conditions': [ |
7 ['OS=="android"', { | 7 ['OS=="android"', { |
8 'targets': [ | 8 'targets': [ |
9 { | 9 { |
10 'target_name': 'cronet_jni_headers', | 10 'target_name': 'cronet_jni_headers', |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 'cronet/version.h.in', | 167 'cronet/version.h.in', |
168 '<@(_outputs)', | 168 '<@(_outputs)', |
169 ], | 169 ], |
170 'includes': [ | 170 'includes': [ |
171 '../build/util/version.gypi', | 171 '../build/util/version.gypi', |
172 ], | 172 ], |
173 }, | 173 }, |
174 ], | 174 ], |
175 }, | 175 }, |
176 { | 176 { |
177 # cronet_static_small target has reduced binary size through using | 177 'target_name': 'cronet_static', |
178 # ICU alternatives which requires file and ftp support be disabled. | |
179 'target_name': 'cronet_static_small', | |
180 'type': 'static_library', | 178 'type': 'static_library', |
181 'defines': [ | |
182 'USE_ICU_ALTERNATIVES_ON_ANDROID=1', | |
183 'DISABLE_FILE_SUPPORT=1', | |
184 'DISABLE_FTP_SUPPORT=1', | |
185 ], | |
186 'dependencies': [ | 179 'dependencies': [ |
187 '../net/net.gyp:net_small', | 180 '../net/net.gyp:net', |
188 '../url/url.gyp:url_lib_use_icu_alternatives_on_android', | 181 '../url/url.gyp:url_lib', |
189 ], | 182 ], |
190 'conditions': [ | 183 'conditions': [ |
191 ['enable_data_reduction_proxy_support==1', | 184 ['enable_data_reduction_proxy_support==1', |
192 { | 185 { |
193 'dependencies': [ | 186 'dependencies': [ |
194 '../components/components.gyp:data_reduction_proxy_core_browse
r_small', | 187 '../components/components.gyp:data_reduction_proxy_core_browse
r_small', |
195 ], | 188 ], |
196 }, | 189 }, |
197 ], | 190 ], |
198 ], | 191 ['use_platform_icu_alternatives!=1', |
199 'includes': [ 'cronet/cronet_static.gypi' ], | |
200 }, | |
201 { | |
202 # cronet_static target depends on ICU and includes file and ftp suppor
t. | |
203 'target_name': 'cronet_static', | |
204 'type': 'static_library', | |
205 'dependencies': [ | |
206 '../base/base.gyp:base_i18n', | |
207 '../net/net.gyp:net', | |
208 '../url/url.gyp:url_lib', | |
209 ], | |
210 'conditions': [ | |
211 ['enable_data_reduction_proxy_support==1', | |
212 { | 192 { |
213 'dependencies': [ | 193 'dependencies': [ |
214 '../components/components.gyp:data_reduction_proxy_core_browse
r', | 194 '../base/base.gyp:base_i18n', |
215 ], | 195 ], |
216 }, | 196 }, |
217 ], | 197 ], |
218 ], | 198 ], |
219 'includes': [ 'cronet/cronet_static.gypi' ], | 199 'includes': [ 'cronet/cronet_static.gypi' ], |
220 }, | 200 }, |
221 { | 201 { |
222 'target_name': 'libcronet', | 202 'target_name': 'libcronet', |
223 'type': 'shared_library', | 203 'type': 'shared_library', |
224 'sources': [ | 204 'sources': [ |
225 'cronet/android/cronet_jni.cc', | 205 'cronet/android/cronet_jni.cc', |
226 ], | 206 ], |
227 'dependencies': [ | 207 'dependencies': [ |
228 'cronet_static_small', | 208 'cronet_static', |
229 '../base/base.gyp:base', | 209 '../base/base.gyp:base', |
230 '../net/net.gyp:net_small', | 210 '../net/net.gyp:net', |
231 ], | 211 ], |
232 'ldflags': [ | 212 'ldflags': [ |
233 '-Wl,--version-script=<!(cd <(DEPTH) && pwd -P)/components/cronet/an
droid/only_jni_exports.lst', | 213 '-Wl,--version-script=<!(cd <(DEPTH) && pwd -P)/components/cronet/an
droid/only_jni_exports.lst', |
234 ], | 214 ], |
235 'variables': { | 215 'variables': { |
236 # libcronet doesn't really use native JNI exports, but it does use | 216 # libcronet doesn't really use native JNI exports, but it does use |
237 # its own linker version script. The ARM64 linker appears to not | 217 # its own linker version script. The ARM64 linker appears to not |
238 # work with multiple version scripts with anonymous version tags, | 218 # work with multiple version scripts with anonymous version tags, |
239 # so enable use_native_jni_exports which avoids adding another | 219 # so enable use_native_jni_exports which avoids adding another |
240 # version sript (android_no_jni_exports.lst) so we don't run afoul | 220 # version sript (android_no_jni_exports.lst) so we don't run afoul |
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
424 # work with multiple version scripts with anonymous version tags, | 404 # work with multiple version scripts with anonymous version tags, |
425 # so enable use_native_jni_exports which avoids adding another | 405 # so enable use_native_jni_exports which avoids adding another |
426 # version sript (android_no_jni_exports.lst) so we don't run afoul | 406 # version sript (android_no_jni_exports.lst) so we don't run afoul |
427 # of this ARM64 linker limitation. | 407 # of this ARM64 linker limitation. |
428 'use_native_jni_exports': 1, | 408 'use_native_jni_exports': 1, |
429 }, | 409 }, |
430 'conditions': [ | 410 'conditions': [ |
431 ['enable_data_reduction_proxy_support==1', | 411 ['enable_data_reduction_proxy_support==1', |
432 { | 412 { |
433 'dependencies': [ | 413 'dependencies': [ |
434 '../components/components.gyp:data_reduction_proxy_core_browse
r', | 414 '../components/components.gyp:data_reduction_proxy_core_browse
r_small', |
435 ], | 415 ], |
436 }, | 416 }, |
437 ], | 417 ], |
438 ], | 418 ], |
439 'includes': [ 'cronet/cronet_static.gypi' ], | 419 'includes': [ 'cronet/cronet_static.gypi' ], |
440 }, | 420 }, |
441 { | 421 { |
442 'target_name': 'cronet_test_support', | 422 'target_name': 'cronet_test_support', |
443 'type': 'none', | 423 'type': 'none', |
444 'dependencies': [ | 424 'dependencies': [ |
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
719 ], | 699 ], |
720 }, | 700 }, |
721 { | 701 { |
722 'destination': '<(package_dir)/symbols/<(android_app_abi)', | 702 'destination': '<(package_dir)/symbols/<(android_app_abi)', |
723 'files': [ | 703 'files': [ |
724 '<(SHARED_LIB_DIR)/<(native_lib)', | 704 '<(SHARED_LIB_DIR)/<(native_lib)', |
725 ], | 705 ], |
726 }, | 706 }, |
727 ], | 707 ], |
728 }, | 708 }, |
| 709 { |
| 710 # GN version: //components/cronet/android:features |
| 711 'target_name': 'components_cronet_android_features', |
| 712 'includes': [ '../build/buildflag_header.gypi' ], |
| 713 'variables': { |
| 714 'buildflag_header_path': 'components/cronet/android/features.h', |
| 715 'buildflag_flags': [ |
| 716 'USE_PLATFORM_ICU_ALTERNATIVES=<(use_platform_icu_alternatives)', |
| 717 ], |
| 718 }, |
| 719 } |
729 ], | 720 ], |
730 'variables': { | 721 'variables': { |
731 'enable_data_reduction_proxy_support%': 0, | 722 'enable_data_reduction_proxy_support%': 0, |
732 }, | 723 }, |
733 }], # OS=="android" | 724 }], # OS=="android" |
734 ], | 725 ], |
735 } | 726 } |
OLD | NEW |