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 'conditions': [ |
| 114 # ICU Alternatives |
| 115 ['use_platform_icu_alternatives == 1', { |
| 116 'defines': [ |
| 117 'USE_PLATFORM_ICU_ALTERNATIVES=1', |
| 118 ], |
| 119 'conditions': [ |
| 120 ['OS == "android"', { |
| 121 'sources': [ |
| 122 'base/net_string_util_icu_alternatives_android.cc', |
| 123 'base/net_string_util_icu_alternatives_android.h', |
| 124 ], |
| 125 }], |
| 126 ['OS == "ios"', { |
| 127 'sources': [ |
| 128 'base/net_string_util_icu_alternatives_ios.mm', |
| 129 ], |
| 130 }], |
| 131 ], |
| 132 }, |
| 133 # 'use_platform_icu_alternatives != 1' |
| 134 { |
| 135 'sources': [ |
| 136 'base/filename_util_icu.cc', |
| 137 'base/net_string_util_icu.cc', |
| 138 ], |
| 139 'dependencies': [ |
| 140 '../base/base.gyp:base_i18n', |
| 141 '../third_party/icu/icu.gyp:icui18n', |
| 142 '../third_party/icu/icu.gyp:icuuc', |
| 143 '../third_party/protobuf/protobuf.gyp:protobuf_lite', |
| 144 'net_quic_proto', |
| 145 ], |
| 146 }], |
| 147 # Brotli support. |
| 148 ['disable_brotli_filter == 1', { |
| 149 'sources': [ |
| 150 'filter/brotli_filter_disabled.cc', |
| 151 ], |
| 152 }, |
| 153 # 'disable_brotli_filter != 1' |
| 154 { |
| 155 'sources': [ |
| 156 'filter/brotli_filter.cc', |
| 157 ], |
| 158 'dependencies': [ |
| 159 '../third_party/brotli/brotli.gyp:brotli', |
| 160 ], |
| 161 }], |
| 162 ], |
123 }, | 163 }, |
124 { | 164 { |
125 # GN version: //net:net_unittests | 165 # GN version: //net:net_unittests |
126 'target_name': 'net_unittests', | 166 'target_name': 'net_unittests', |
127 'type': '<(gtest_target_type)', | 167 'type': '<(gtest_target_type)', |
128 'dependencies': [ | 168 'dependencies': [ |
129 '../base/base.gyp:base', | 169 '../base/base.gyp:base', |
130 '../base/base.gyp:base_i18n', | 170 '../base/base.gyp:base_i18n', |
131 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic
_annotations', | 171 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic
_annotations', |
132 '../crypto/crypto.gyp:crypto', | 172 '../crypto/crypto.gyp:crypto', |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
214 }], | 254 }], |
215 [ 'use_kerberos==0 or OS == "android"', { | 255 [ 'use_kerberos==0 or OS == "android"', { |
216 # These are excluded on Android, because the actual Kerberos support, | 256 # These are excluded on Android, because the actual Kerberos support, |
217 # which these test, is in a separate app on Android. | 257 # which these test, is in a separate app on Android. |
218 'sources!': [ | 258 'sources!': [ |
219 'http/http_auth_gssapi_posix_unittest.cc', | 259 'http/http_auth_gssapi_posix_unittest.cc', |
220 'http/mock_gssapi_library_posix.cc', | 260 'http/mock_gssapi_library_posix.cc', |
221 'http/mock_gssapi_library_posix.h', | 261 'http/mock_gssapi_library_posix.h', |
222 ], | 262 ], |
223 }], | 263 }], |
224 [ 'use_kerberos==0', { | 264 [ 'use_kerberos==0', { |
225 'sources!': [ | 265 'sources!': [ |
226 'http/http_auth_handler_negotiate_unittest.cc', | 266 'http/http_auth_handler_negotiate_unittest.cc', |
227 ], | 267 ], |
228 }], | 268 }], |
229 [ 'use_nss_verifier == 0', { | 269 [ 'use_nss_verifier == 0', { |
230 # Only include this test when using NSS for cert verification. | 270 # Only include this test when using NSS for cert verification. |
231 'sources!': [ | 271 'sources!': [ |
232 'cert_net/nss_ocsp_unittest.cc', | 272 'cert_net/nss_ocsp_unittest.cc', |
233 ], | 273 ], |
234 }], | 274 }], |
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
414 # icu. Figure out a way to remove that dependency. | 454 # icu. Figure out a way to remove that dependency. |
415 'dependencies': [ | 455 'dependencies': [ |
416 '../testing/android/native_test.gyp:native_test_native_code', | 456 '../testing/android/native_test.gyp:native_test_native_code', |
417 ] | 457 ] |
418 }], | 458 }], |
419 ['use_v8_in_net==1 and v8_use_external_startup_data==1', { | 459 ['use_v8_in_net==1 and v8_use_external_startup_data==1', { |
420 'dependencies': [ | 460 'dependencies': [ |
421 '../gin/gin.gyp:gin', | 461 '../gin/gin.gyp:gin', |
422 ] | 462 ] |
423 }], | 463 }], |
| 464 # Unit tests that are not supported by the current ICU alternatives on A
ndroid. |
| 465 ['OS == "android" and use_platform_icu_alternatives == 1', { |
| 466 'sources!': [ |
| 467 'base/filename_util_unittest.cc', |
| 468 'url_request/url_request_job_unittest.cc', |
| 469 ], |
| 470 }], |
| 471 # Unit tests that are not supported by the current ICU alternatives on i
OS. |
| 472 ['OS == "ios" and use_platform_icu_alternatives == 1', { |
| 473 'sources!': [ |
| 474 'base/filename_util_unittest.cc', |
| 475 'base/url_util_unittest.cc', |
| 476 'cert/x509_certificate_unittest.cc', |
| 477 'socket/ssl_client_socket_pool_unittest.cc', |
| 478 'http/http_auth_handler_basic_unittest.cc', |
| 479 'http/http_auth_handler_digest_unittest.cc', |
| 480 'http/http_auth_handler_factory_unittest.cc', |
| 481 'http/http_auth_unittest.cc', |
| 482 'http/http_content_disposition_unittest.cc', |
| 483 'http/http_network_transaction_unittest.cc', |
| 484 'http/http_proxy_client_socket_pool_unittest.cc', |
| 485 'spdy/spdy_network_transaction_unittest.cc', |
| 486 'spdy/spdy_proxy_client_socket_unittest.cc', |
| 487 'url_request/url_request_job_unittest.cc', |
| 488 'url_request/url_request_unittest.cc', |
| 489 ], |
| 490 }], |
| 491 # Exclude brotli test if the support for brotli is disabled. |
| 492 ['disable_brotli_filter == 1', { |
| 493 'sources!': [ |
| 494 'filter/brotli_filter_unittest.cc', |
| 495 ], |
| 496 }], |
424 ], | 497 ], |
425 'target_conditions': [ | 498 'target_conditions': [ |
426 # These source files are excluded by default platform rules, but they | 499 # These source files are excluded by default platform rules, but they |
427 # are needed in specific cases on other platforms. Re-including them can | 500 # 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 | 501 # only be done in target_conditions as it is evaluated after the |
429 # platform rules. | 502 # platform rules. |
430 ['OS == "android"', { | 503 ['OS == "android"', { |
431 'sources/': [ | 504 'sources/': [ |
432 ['include', '^base/address_tracker_linux_unittest\\.cc$'], | 505 ['include', '^base/address_tracker_linux_unittest\\.cc$'], |
433 ], | 506 ], |
(...skipping 895 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1329 'simple_quic_tools', | 1402 'simple_quic_tools', |
1330 ], | 1403 ], |
1331 'sources': [ | 1404 'sources': [ |
1332 'tools/quic/quic_server_bin.cc', | 1405 'tools/quic/quic_server_bin.cc', |
1333 ], | 1406 ], |
1334 }, | 1407 }, |
1335 ] | 1408 ] |
1336 }], | 1409 }], |
1337 ['OS=="android"', { | 1410 ['OS=="android"', { |
1338 'targets': [ | 1411 '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 { | 1412 { |
1363 'target_name': 'net_jni_headers', | 1413 'target_name': 'net_jni_headers', |
1364 'type': 'none', | 1414 'type': 'none', |
1365 'sources': [ | 1415 'sources': [ |
1366 'android/java/src/org/chromium/net/AndroidCertVerifyResult.java', | 1416 'android/java/src/org/chromium/net/AndroidCertVerifyResult.java', |
1367 'android/java/src/org/chromium/net/AndroidKeyStore.java', | 1417 'android/java/src/org/chromium/net/AndroidKeyStore.java', |
1368 'android/java/src/org/chromium/net/AndroidNetworkLibrary.java', | 1418 'android/java/src/org/chromium/net/AndroidNetworkLibrary.java', |
1369 'android/java/src/org/chromium/net/AndroidTrafficStats.java', | 1419 'android/java/src/org/chromium/net/AndroidTrafficStats.java', |
1370 'android/java/src/org/chromium/net/GURLUtils.java', | 1420 'android/java/src/org/chromium/net/GURLUtils.java', |
1371 'android/java/src/org/chromium/net/HttpNegotiateAuthenticator.java', | 1421 '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', | 1778 '../build/isolate.gypi', |
1729 ], | 1779 ], |
1730 'sources': [ | 1780 'sources': [ |
1731 'net_unittests.isolate', | 1781 'net_unittests.isolate', |
1732 ], | 1782 ], |
1733 }, | 1783 }, |
1734 ], | 1784 ], |
1735 }], | 1785 }], |
1736 ], | 1786 ], |
1737 } | 1787 } |
OLD | NEW |