OLD | NEW |
---|---|
1 # Copyright 2013 The Chromium Authors. All rights reserved. | 1 # Copyright 2013 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 'variables': { | 6 'variables': { |
7 'chromium_code': 1, | 7 'chromium_code': 1, |
8 'linux_link_kerberos%': 0, | 8 'linux_link_kerberos%': 0, |
9 'conditions': [ | 9 'conditions': [ |
10 ['chromeos==1 or embedded==1 or OS=="ios"', { | 10 ['chromeos==1 or embedded==1 or OS=="ios"', { |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
99 '../build/protoc.gypi', | 99 '../build/protoc.gypi', |
100 ], | 100 ], |
101 'defines': [ | 101 'defines': [ |
102 'NET_IMPLEMENTATION', | 102 'NET_IMPLEMENTATION', |
103 ], | 103 ], |
104 }, | 104 }, |
105 { | 105 { |
106 # GN version: //net | 106 # GN version: //net |
107 'target_name': 'net', | 107 'target_name': 'net', |
108 'dependencies': [ | 108 'dependencies': [ |
109 '../base/base.gyp:base_i18n', | |
110 '../third_party/brotli/brotli.gyp:brotli', | |
111 '../third_party/icu/icu.gyp:icui18n', | |
112 '../third_party/icu/icu.gyp:icuuc', | |
113 '../third_party/protobuf/protobuf.gyp:protobuf_lite', | |
114 '../url/url.gyp:url_lib', | 109 '../url/url.gyp:url_lib', |
115 'net_quic_proto', | |
116 ], | |
117 'sources': [ | |
118 'base/filename_util_icu.cc', | |
119 'base/net_string_util_icu.cc', | |
120 'filter/brotli_filter.cc', | |
121 ], | 110 ], |
122 'includes': [ 'net_common.gypi' ], | 111 'includes': [ 'net_common.gypi' ], |
112 | |
113 # ICU Alternatives | |
114 'conditions': [ | |
115 ['use_icu_alternatives == 1', { | |
116 'conditions': [ | |
117 ['OS == "android"', { | |
118 'sources': [ | |
119 'base/net_string_util_icu_alternatives_android.cc', | |
120 'base/net_string_util_icu_alternatives_android.h', | |
121 'filter/brotli_filter_disabled.cc', | |
122 ], | |
123 'variables': { | |
124 'disable_ftp_support': 1, | |
125 'disable_file_support': 1, | |
126 'enable_websockets': 0, | |
127 }, | |
128 'defines': [ | |
129 'USE_ICU_ALTERNATIVES_ON_ANDROID=1', | |
130 'DISABLE_FILE_SUPPORT=1', | |
131 'DISABLE_FTP_SUPPORT=1', | |
132 ], | |
133 }], | |
134 ['OS == "ios"', { | |
135 'sources': [ | |
136 'base/net_string_util_icu_alternatives_ios.mm', | |
137 'filter/brotli_filter_disabled.cc', | |
138 ], | |
139 'variables': { | |
140 'disable_ftp_support': 1, | |
141 'disable_file_support': 1, | |
142 'enable_websockets': 0, | |
143 }, | |
144 'defines': [ | |
145 'USE_ICU_ALTERNATIVES_ON_IOS=1', | |
xunjieli
2016/03/31 13:59:41
USE_ICU_ALTERNATIVES_ON_ANDROID and USE_ICU_ALTERN
kapishnikov
2016/03/31 16:25:52
Done. Renamed to USE_PLATFORM_ICU_ALTERNATIVES.
| |
146 'DISABLE_FILE_SUPPORT=1', | |
147 'DISABLE_FTP_SUPPORT=1', | |
148 ], | |
149 }], | |
150 ], | |
151 }, | |
152 # 'use_icu_alternatives != 1' | |
153 { | |
154 'sources': [ | |
155 'base/filename_util_icu.cc', | |
156 'base/net_string_util_icu.cc', | |
157 'filter/brotli_filter.cc', | |
158 ], | |
159 'dependencies': [ | |
160 '../base/base.gyp:base_i18n', | |
161 '../third_party/brotli/brotli.gyp:brotli', | |
162 '../third_party/icu/icu.gyp:icui18n', | |
163 '../third_party/icu/icu.gyp:icuuc', | |
164 '../third_party/protobuf/protobuf.gyp:protobuf_lite', | |
165 'net_quic_proto', | |
166 ], | |
167 }], | |
168 ], | |
123 }, | 169 }, |
124 { | 170 { |
125 # GN version: //net:net_unittests | 171 # GN version: //net:net_unittests |
126 'target_name': 'net_unittests', | 172 'target_name': 'net_unittests', |
127 'type': '<(gtest_target_type)', | 173 'type': '<(gtest_target_type)', |
128 'dependencies': [ | 174 'dependencies': [ |
129 '../base/base.gyp:base', | 175 '../base/base.gyp:base', |
130 '../base/base.gyp:base_i18n', | 176 '../base/base.gyp:base_i18n', |
131 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic _annotations', | 177 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic _annotations', |
132 '../crypto/crypto.gyp:crypto', | 178 '../crypto/crypto.gyp:crypto', |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
214 }], | 260 }], |
215 [ 'use_kerberos==0 or OS == "android"', { | 261 [ 'use_kerberos==0 or OS == "android"', { |
216 # These are excluded on Android, because the actual Kerberos support, | 262 # These are excluded on Android, because the actual Kerberos support, |
217 # which these test, is in a separate app on Android. | 263 # which these test, is in a separate app on Android. |
218 'sources!': [ | 264 'sources!': [ |
219 'http/http_auth_gssapi_posix_unittest.cc', | 265 'http/http_auth_gssapi_posix_unittest.cc', |
220 'http/mock_gssapi_library_posix.cc', | 266 'http/mock_gssapi_library_posix.cc', |
221 'http/mock_gssapi_library_posix.h', | 267 'http/mock_gssapi_library_posix.h', |
222 ], | 268 ], |
223 }], | 269 }], |
224 [ 'use_kerberos==0', { | 270 [ 'use_kerberos==0', { |
225 'sources!': [ | 271 'sources!': [ |
226 'http/http_auth_handler_negotiate_unittest.cc', | 272 'http/http_auth_handler_negotiate_unittest.cc', |
227 ], | 273 ], |
228 }], | 274 }], |
229 [ 'use_nss_verifier == 0', { | 275 [ 'use_nss_verifier == 0', { |
230 # Only include this test when using NSS for cert verification. | 276 # Only include this test when using NSS for cert verification. |
231 'sources!': [ | 277 'sources!': [ |
232 'cert_net/nss_ocsp_unittest.cc', | 278 'cert_net/nss_ocsp_unittest.cc', |
233 ], | 279 ], |
234 }], | 280 }], |
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
414 # icu. Figure out a way to remove that dependency. | 460 # icu. Figure out a way to remove that dependency. |
415 'dependencies': [ | 461 'dependencies': [ |
416 '../testing/android/native_test.gyp:native_test_native_code', | 462 '../testing/android/native_test.gyp:native_test_native_code', |
417 ] | 463 ] |
418 }], | 464 }], |
419 ['use_v8_in_net==1 and v8_use_external_startup_data==1', { | 465 ['use_v8_in_net==1 and v8_use_external_startup_data==1', { |
420 'dependencies': [ | 466 'dependencies': [ |
421 '../gin/gin.gyp:gin', | 467 '../gin/gin.gyp:gin', |
422 ] | 468 ] |
423 }], | 469 }], |
470 # Unit tests that are not supported by the current ICU alternatives on A ndroid. | |
471 ['OS == "android" and use_icu_alternatives == 1', { | |
472 'sources!': [ | |
473 'base/filename_util_unittest.cc', | |
474 'filter/brotli_filter_unittest.cc', | |
475 'url_request/url_request_job_unittest.cc', | |
476 ], | |
477 }], | |
478 # Unit tests that are not supported by the current ICU alternatives on i OS. | |
479 ['OS == "ios" and use_icu_alternatives == 1', { | |
480 'sources!': [ | |
481 'base/filename_util_unittest.cc', | |
482 'base/url_util_unittest.cc', | |
483 'cert/x509_certificate_unittest.cc', | |
484 'socket/ssl_client_socket_pool_unittest.cc', | |
485 'http/http_auth_handler_basic_unittest.cc', | |
486 'http/http_auth_handler_digest_unittest.cc', | |
487 'http/http_auth_handler_factory_unittest.cc', | |
488 'http/http_auth_unittest.cc', | |
489 'http/http_content_disposition_unittest.cc', | |
490 'http/http_network_transaction_unittest.cc', | |
491 'http/http_proxy_client_socket_pool_unittest.cc', | |
492 'spdy/spdy_network_transaction_unittest.cc', | |
493 'spdy/spdy_proxy_client_socket_unittest.cc', | |
494 'url_request/url_request_job_unittest.cc', | |
495 'url_request/url_request_unittest.cc', | |
496 ], | |
497 }], | |
424 ], | 498 ], |
425 'target_conditions': [ | 499 'target_conditions': [ |
426 # These source files are excluded by default platform rules, but they | 500 # These source files are excluded by default platform rules, but they |
427 # are needed in specific cases on other platforms. Re-including them can | 501 # are needed in specific cases on other platforms. Re-including them can |
428 # only be done in target_conditions as it is evaluated after the | 502 # only be done in target_conditions as it is evaluated after the |
429 # platform rules. | 503 # platform rules. |
430 ['OS == "android"', { | 504 ['OS == "android"', { |
431 'sources/': [ | 505 'sources/': [ |
432 ['include', '^base/address_tracker_linux_unittest\\.cc$'], | 506 ['include', '^base/address_tracker_linux_unittest\\.cc$'], |
433 ], | 507 ], |
(...skipping 895 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1329 'simple_quic_tools', | 1403 'simple_quic_tools', |
1330 ], | 1404 ], |
1331 'sources': [ | 1405 'sources': [ |
1332 'tools/quic/quic_server_bin.cc', | 1406 'tools/quic/quic_server_bin.cc', |
1333 ], | 1407 ], |
1334 }, | 1408 }, |
1335 ] | 1409 ] |
1336 }], | 1410 }], |
1337 ['OS=="android"', { | 1411 ['OS=="android"', { |
1338 'targets': [ | 1412 'targets': [ |
1339 { # The same target as 'net', but with smaller binary size due to | |
1340 # exclusion of ICU, FTP, FILE and WebSockets support. | |
1341 'target_name': 'net_small', | |
1342 'variables': { | |
1343 'disable_ftp_support': 1, | |
1344 'disable_file_support': 1, | |
1345 'enable_websockets': 0, | |
1346 }, | |
1347 'dependencies': [ | |
1348 '../url/url.gyp:url_lib_use_icu_alternatives_on_android', | |
1349 ], | |
1350 'defines': [ | |
1351 'USE_ICU_ALTERNATIVES_ON_ANDROID=1', | |
1352 'DISABLE_FILE_SUPPORT=1', | |
1353 'DISABLE_FTP_SUPPORT=1', | |
1354 ], | |
1355 'sources': [ | |
1356 'filter/brotli_filter_disabled.cc', | |
1357 'base/net_string_util_icu_alternatives_android.cc', | |
1358 'base/net_string_util_icu_alternatives_android.h', | |
1359 ], | |
1360 'includes': [ 'net_common.gypi' ], | |
1361 }, | |
1362 { | 1413 { |
1363 'target_name': 'net_jni_headers', | 1414 'target_name': 'net_jni_headers', |
1364 'type': 'none', | 1415 'type': 'none', |
1365 'sources': [ | 1416 'sources': [ |
1366 'android/java/src/org/chromium/net/AndroidCertVerifyResult.java', | 1417 'android/java/src/org/chromium/net/AndroidCertVerifyResult.java', |
1367 'android/java/src/org/chromium/net/AndroidKeyStore.java', | 1418 'android/java/src/org/chromium/net/AndroidKeyStore.java', |
1368 'android/java/src/org/chromium/net/AndroidNetworkLibrary.java', | 1419 'android/java/src/org/chromium/net/AndroidNetworkLibrary.java', |
1369 'android/java/src/org/chromium/net/AndroidTrafficStats.java', | 1420 'android/java/src/org/chromium/net/AndroidTrafficStats.java', |
1370 'android/java/src/org/chromium/net/GURLUtils.java', | 1421 'android/java/src/org/chromium/net/GURLUtils.java', |
1371 'android/java/src/org/chromium/net/HttpNegotiateAuthenticator.java', | 1422 'android/java/src/org/chromium/net/HttpNegotiateAuthenticator.java', |
(...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1728 '../build/isolate.gypi', | 1779 '../build/isolate.gypi', |
1729 ], | 1780 ], |
1730 'sources': [ | 1781 'sources': [ |
1731 'net_unittests.isolate', | 1782 'net_unittests.isolate', |
1732 ], | 1783 ], |
1733 }, | 1784 }, |
1734 ], | 1785 ], |
1735 }], | 1786 }], |
1736 ], | 1787 ], |
1737 } | 1788 } |
OLD | NEW |