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_platform_icu_alternatives == 1', { | |
116 'defines': [ | |
117 'USE_PLATFORM_ICU_ALTERNATIVES=1', | |
118 'DISABLE_FILE_SUPPORT=1', | |
119 'DISABLE_FTP_SUPPORT=1', | |
xunjieli
2016/04/01 14:16:43
The two defines (other than USE_PLATFORM_ICU_ALTER
kapishnikov
2016/04/01 18:55:01
Yes, these ones are defined in common.gypi. Thanks
| |
120 ], | |
121 'conditions': [ | |
122 ['OS == "android"', { | |
123 'sources': [ | |
124 'base/net_string_util_icu_alternatives_android.cc', | |
125 'base/net_string_util_icu_alternatives_android.h', | |
126 'filter/brotli_filter_disabled.cc', | |
127 ], | |
128 }], | |
129 ['OS == "ios"', { | |
130 'sources': [ | |
131 'base/net_string_util_icu_alternatives_ios.mm', | |
132 'filter/brotli_filter_disabled.cc', | |
133 ], | |
134 }], | |
135 ], | |
136 }, | |
137 # 'use_platform_icu_alternatives != 1' | |
138 { | |
139 'sources': [ | |
140 'base/filename_util_icu.cc', | |
141 'base/net_string_util_icu.cc', | |
142 'filter/brotli_filter.cc', | |
143 ], | |
144 'dependencies': [ | |
145 '../base/base.gyp:base_i18n', | |
146 '../third_party/brotli/brotli.gyp:brotli', | |
147 '../third_party/icu/icu.gyp:icui18n', | |
148 '../third_party/icu/icu.gyp:icuuc', | |
149 '../third_party/protobuf/protobuf.gyp:protobuf_lite', | |
150 'net_quic_proto', | |
151 ], | |
152 }], | |
153 ], | |
123 }, | 154 }, |
124 { | 155 { |
125 # GN version: //net:net_unittests | 156 # GN version: //net:net_unittests |
126 'target_name': 'net_unittests', | 157 'target_name': 'net_unittests', |
127 'type': '<(gtest_target_type)', | 158 'type': '<(gtest_target_type)', |
128 'dependencies': [ | 159 'dependencies': [ |
129 '../base/base.gyp:base', | 160 '../base/base.gyp:base', |
130 '../base/base.gyp:base_i18n', | 161 '../base/base.gyp:base_i18n', |
131 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic _annotations', | 162 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic _annotations', |
132 '../crypto/crypto.gyp:crypto', | 163 '../crypto/crypto.gyp:crypto', |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
214 }], | 245 }], |
215 [ 'use_kerberos==0 or OS == "android"', { | 246 [ 'use_kerberos==0 or OS == "android"', { |
216 # These are excluded on Android, because the actual Kerberos support, | 247 # These are excluded on Android, because the actual Kerberos support, |
217 # which these test, is in a separate app on Android. | 248 # which these test, is in a separate app on Android. |
218 'sources!': [ | 249 'sources!': [ |
219 'http/http_auth_gssapi_posix_unittest.cc', | 250 'http/http_auth_gssapi_posix_unittest.cc', |
220 'http/mock_gssapi_library_posix.cc', | 251 'http/mock_gssapi_library_posix.cc', |
221 'http/mock_gssapi_library_posix.h', | 252 'http/mock_gssapi_library_posix.h', |
222 ], | 253 ], |
223 }], | 254 }], |
224 [ 'use_kerberos==0', { | 255 [ 'use_kerberos==0', { |
225 'sources!': [ | 256 'sources!': [ |
226 'http/http_auth_handler_negotiate_unittest.cc', | 257 'http/http_auth_handler_negotiate_unittest.cc', |
227 ], | 258 ], |
228 }], | 259 }], |
229 [ 'use_nss_verifier == 0', { | 260 [ 'use_nss_verifier == 0', { |
230 # Only include this test when using NSS for cert verification. | 261 # Only include this test when using NSS for cert verification. |
231 'sources!': [ | 262 'sources!': [ |
232 'cert_net/nss_ocsp_unittest.cc', | 263 'cert_net/nss_ocsp_unittest.cc', |
233 ], | 264 ], |
234 }], | 265 }], |
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
414 # icu. Figure out a way to remove that dependency. | 445 # icu. Figure out a way to remove that dependency. |
415 'dependencies': [ | 446 'dependencies': [ |
416 '../testing/android/native_test.gyp:native_test_native_code', | 447 '../testing/android/native_test.gyp:native_test_native_code', |
417 ] | 448 ] |
418 }], | 449 }], |
419 ['use_v8_in_net==1 and v8_use_external_startup_data==1', { | 450 ['use_v8_in_net==1 and v8_use_external_startup_data==1', { |
420 'dependencies': [ | 451 'dependencies': [ |
421 '../gin/gin.gyp:gin', | 452 '../gin/gin.gyp:gin', |
422 ] | 453 ] |
423 }], | 454 }], |
455 # Unit tests that are not supported by the current ICU alternatives on A ndroid. | |
456 ['OS == "android" and use_platform_icu_alternatives == 1', { | |
457 'sources!': [ | |
458 'base/filename_util_unittest.cc', | |
459 'filter/brotli_filter_unittest.cc', | |
460 'url_request/url_request_job_unittest.cc', | |
461 ], | |
462 }], | |
463 # Unit tests that are not supported by the current ICU alternatives on i OS. | |
464 ['OS == "ios" and use_platform_icu_alternatives == 1', { | |
465 'sources!': [ | |
466 'base/filename_util_unittest.cc', | |
467 'base/url_util_unittest.cc', | |
468 'cert/x509_certificate_unittest.cc', | |
469 'socket/ssl_client_socket_pool_unittest.cc', | |
470 'http/http_auth_handler_basic_unittest.cc', | |
471 'http/http_auth_handler_digest_unittest.cc', | |
472 'http/http_auth_handler_factory_unittest.cc', | |
473 'http/http_auth_unittest.cc', | |
474 'http/http_content_disposition_unittest.cc', | |
475 'http/http_network_transaction_unittest.cc', | |
476 'http/http_proxy_client_socket_pool_unittest.cc', | |
477 'spdy/spdy_network_transaction_unittest.cc', | |
478 'spdy/spdy_proxy_client_socket_unittest.cc', | |
479 'url_request/url_request_job_unittest.cc', | |
480 'url_request/url_request_unittest.cc', | |
481 ], | |
482 }], | |
424 ], | 483 ], |
425 'target_conditions': [ | 484 'target_conditions': [ |
426 # These source files are excluded by default platform rules, but they | 485 # These source files are excluded by default platform rules, but they |
427 # are needed in specific cases on other platforms. Re-including them can | 486 # 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 | 487 # only be done in target_conditions as it is evaluated after the |
429 # platform rules. | 488 # platform rules. |
430 ['OS == "android"', { | 489 ['OS == "android"', { |
431 'sources/': [ | 490 'sources/': [ |
432 ['include', '^base/address_tracker_linux_unittest\\.cc$'], | 491 ['include', '^base/address_tracker_linux_unittest\\.cc$'], |
433 ], | 492 ], |
(...skipping 895 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1329 'simple_quic_tools', | 1388 'simple_quic_tools', |
1330 ], | 1389 ], |
1331 'sources': [ | 1390 'sources': [ |
1332 'tools/quic/quic_server_bin.cc', | 1391 'tools/quic/quic_server_bin.cc', |
1333 ], | 1392 ], |
1334 }, | 1393 }, |
1335 ] | 1394 ] |
1336 }], | 1395 }], |
1337 ['OS=="android"', { | 1396 ['OS=="android"', { |
1338 'targets': [ | 1397 '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 { | 1398 { |
1363 'target_name': 'net_jni_headers', | 1399 'target_name': 'net_jni_headers', |
1364 'type': 'none', | 1400 'type': 'none', |
1365 'sources': [ | 1401 'sources': [ |
1366 'android/java/src/org/chromium/net/AndroidCertVerifyResult.java', | 1402 'android/java/src/org/chromium/net/AndroidCertVerifyResult.java', |
1367 'android/java/src/org/chromium/net/AndroidKeyStore.java', | 1403 'android/java/src/org/chromium/net/AndroidKeyStore.java', |
1368 'android/java/src/org/chromium/net/AndroidNetworkLibrary.java', | 1404 'android/java/src/org/chromium/net/AndroidNetworkLibrary.java', |
1369 'android/java/src/org/chromium/net/AndroidTrafficStats.java', | 1405 'android/java/src/org/chromium/net/AndroidTrafficStats.java', |
1370 'android/java/src/org/chromium/net/GURLUtils.java', | 1406 'android/java/src/org/chromium/net/GURLUtils.java', |
1371 'android/java/src/org/chromium/net/HttpNegotiateAuthenticator.java', | 1407 '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', | 1764 '../build/isolate.gypi', |
1729 ], | 1765 ], |
1730 'sources': [ | 1766 'sources': [ |
1731 'net_unittests.isolate', | 1767 'net_unittests.isolate', |
1732 ], | 1768 ], |
1733 }, | 1769 }, |
1734 ], | 1770 ], |
1735 }], | 1771 }], |
1736 ], | 1772 ], |
1737 } | 1773 } |
OLD | NEW |