| 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 # cronet_static_small target depends on the small version of the data
reduction proxy. |
| 178 # ICU alternatives which requires file and ftp support be disabled. | |
| 179 'target_name': 'cronet_static_small', | 178 'target_name': 'cronet_static_small', |
| 180 'type': 'static_library', | 179 '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': [ | 180 'dependencies': [ |
| 187 '../net/net.gyp:net_small', | 181 '../net/net.gyp:net', |
| 188 '../url/url.gyp:url_lib_use_icu_alternatives_on_android', | 182 '../url/url.gyp:url_lib', |
| 189 ], | 183 ], |
| 190 'conditions': [ | 184 'conditions': [ |
| 191 ['enable_data_reduction_proxy_support==1', | 185 ['enable_data_reduction_proxy_support==1', |
| 192 { | 186 { |
| 193 'dependencies': [ | 187 'dependencies': [ |
| 194 '../components/components.gyp:data_reduction_proxy_core_browse
r_small', | 188 '../components/components.gyp:data_reduction_proxy_core_browse
r_small', |
| 195 ], | 189 ], |
| 196 }, | 190 }, |
| 197 ], | 191 ], |
| 198 ], | 192 ], |
| (...skipping 21 matching lines...) Expand all Loading... |
| 220 }, | 214 }, |
| 221 { | 215 { |
| 222 'target_name': 'libcronet', | 216 'target_name': 'libcronet', |
| 223 'type': 'shared_library', | 217 'type': 'shared_library', |
| 224 'sources': [ | 218 'sources': [ |
| 225 'cronet/android/cronet_jni.cc', | 219 'cronet/android/cronet_jni.cc', |
| 226 ], | 220 ], |
| 227 'dependencies': [ | 221 'dependencies': [ |
| 228 'cronet_static_small', | 222 'cronet_static_small', |
| 229 '../base/base.gyp:base', | 223 '../base/base.gyp:base', |
| 230 '../net/net.gyp:net_small', | 224 '../net/net.gyp:net', |
| 231 ], | 225 ], |
| 232 'ldflags': [ | 226 'ldflags': [ |
| 233 '-Wl,--version-script=<!(cd <(DEPTH) && pwd -P)/components/cronet/an
droid/only_jni_exports.lst', | 227 '-Wl,--version-script=<!(cd <(DEPTH) && pwd -P)/components/cronet/an
droid/only_jni_exports.lst', |
| 234 ], | 228 ], |
| 235 'variables': { | 229 'variables': { |
| 236 # libcronet doesn't really use native JNI exports, but it does use | 230 # libcronet doesn't really use native JNI exports, but it does use |
| 237 # its own linker version script. The ARM64 linker appears to not | 231 # its own linker version script. The ARM64 linker appears to not |
| 238 # work with multiple version scripts with anonymous version tags, | 232 # work with multiple version scripts with anonymous version tags, |
| 239 # so enable use_native_jni_exports which avoids adding another | 233 # so enable use_native_jni_exports which avoids adding another |
| 240 # version sript (android_no_jni_exports.lst) so we don't run afoul | 234 # version sript (android_no_jni_exports.lst) so we don't run afoul |
| (...skipping 485 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 726 }, | 720 }, |
| 727 ], | 721 ], |
| 728 }, | 722 }, |
| 729 ], | 723 ], |
| 730 'variables': { | 724 'variables': { |
| 731 'enable_data_reduction_proxy_support%': 0, | 725 'enable_data_reduction_proxy_support%': 0, |
| 732 }, | 726 }, |
| 733 }], # OS=="android" | 727 }], # OS=="android" |
| 734 ], | 728 ], |
| 735 } | 729 } |
| OLD | NEW |