Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1014)

Side by Side Diff: net/net.gyp

Issue 1839803002: Remove net & url small, iOS ICU alternatives, unit tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Code cleaning Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 '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 ],
122 }],
123 ['OS == "ios"', {
124 'sources': [
125 'base/net_string_util_icu_alternatives_ios.mm',
126 ],
127 }],
128 ],
129 },
130 # 'use_platform_icu_alternatives != 1'
131 {
132 'sources': [
133 'base/filename_util_icu.cc',
134 'base/net_string_util_icu.cc',
135 ],
136 'dependencies': [
137 '../base/base.gyp:base_i18n',
138 '../third_party/icu/icu.gyp:icui18n',
139 '../third_party/icu/icu.gyp:icuuc',
140 '../third_party/protobuf/protobuf.gyp:protobuf_lite',
141 'net_quic_proto',
142 ],
143 }],
144 # Brotli support.
145 ['disable_brotli_filter == 1', {
146 'sources': [
147 'filter/brotli_filter_disabled.cc',
148 ],
149 },
150 # 'disable_brotli_filter != 1'
151 {
152 'sources': [
153 'filter/brotli_filter.cc',
154 ],
155 'dependencies': [
156 '../third_party/brotli/brotli.gyp:brotli',
157 ],
158 }],
159 ],
123 }, 160 },
124 { 161 {
125 # GN version: //net:net_unittests 162 # GN version: //net:net_unittests
126 'target_name': 'net_unittests', 163 'target_name': 'net_unittests',
127 'type': '<(gtest_target_type)', 164 'type': '<(gtest_target_type)',
128 'dependencies': [ 165 'dependencies': [
brettw 2016/04/08 21:40:06 GYP hard deps aren't transitive and the generated
kapishnikov 2016/04/11 19:58:48 Done.
129 '../base/base.gyp:base', 166 '../base/base.gyp:base',
130 '../base/base.gyp:base_i18n', 167 '../base/base.gyp:base_i18n',
131 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic _annotations', 168 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic _annotations',
132 '../crypto/crypto.gyp:crypto', 169 '../crypto/crypto.gyp:crypto',
133 '../crypto/crypto.gyp:crypto_test_support', 170 '../crypto/crypto.gyp:crypto_test_support',
134 '../testing/gmock.gyp:gmock', 171 '../testing/gmock.gyp:gmock',
135 '../testing/gtest.gyp:gtest', 172 '../testing/gtest.gyp:gtest',
136 '../third_party/zlib/zlib.gyp:zlib', 173 '../third_party/zlib/zlib.gyp:zlib',
137 '../url/url.gyp:url_lib', 174 '../url/url.gyp:url_lib',
138 'balsa', 175 'balsa',
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 }], 250 }],
214 [ 'use_kerberos==0 or OS == "android"', { 251 [ 'use_kerberos==0 or OS == "android"', {
215 # These are excluded on Android, because the actual Kerberos support, 252 # These are excluded on Android, because the actual Kerberos support,
216 # which these test, is in a separate app on Android. 253 # which these test, is in a separate app on Android.
217 'sources!': [ 254 'sources!': [
218 'http/http_auth_gssapi_posix_unittest.cc', 255 'http/http_auth_gssapi_posix_unittest.cc',
219 'http/mock_gssapi_library_posix.cc', 256 'http/mock_gssapi_library_posix.cc',
220 'http/mock_gssapi_library_posix.h', 257 'http/mock_gssapi_library_posix.h',
221 ], 258 ],
222 }], 259 }],
223 [ 'use_kerberos==0', { 260 [ 'use_kerberos==0', {
224 'sources!': [ 261 'sources!': [
225 'http/http_auth_handler_negotiate_unittest.cc', 262 'http/http_auth_handler_negotiate_unittest.cc',
226 ], 263 ],
227 }], 264 }],
228 [ 'use_nss_verifier == 0', { 265 [ 'use_nss_verifier == 0', {
229 # Only include this test when using NSS for cert verification. 266 # Only include this test when using NSS for cert verification.
230 'sources!': [ 267 'sources!': [
231 'cert_net/nss_ocsp_unittest.cc', 268 'cert_net/nss_ocsp_unittest.cc',
232 ], 269 ],
233 }], 270 }],
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
412 # icu. Figure out a way to remove that dependency. 449 # icu. Figure out a way to remove that dependency.
413 'dependencies': [ 450 'dependencies': [
414 '../testing/android/native_test.gyp:native_test_native_code', 451 '../testing/android/native_test.gyp:native_test_native_code',
415 ] 452 ]
416 }], 453 }],
417 ['use_v8_in_net==1 and v8_use_external_startup_data==1', { 454 ['use_v8_in_net==1 and v8_use_external_startup_data==1', {
418 'dependencies': [ 455 'dependencies': [
419 '../gin/gin.gyp:gin', 456 '../gin/gin.gyp:gin',
420 ] 457 ]
421 }], 458 }],
459 # Unit tests that are not supported by the current ICU alternatives on A ndroid.
460 ['OS == "android" and use_platform_icu_alternatives == 1', {
461 'sources!': [
462 'base/filename_util_unittest.cc',
463 'url_request/url_request_job_unittest.cc',
464 ],
465 }],
466 # Unit tests that are not supported by the current ICU alternatives on i OS.
467 ['OS == "ios" and use_platform_icu_alternatives == 1', {
468 'sources!': [
469 'base/filename_util_unittest.cc',
470 'base/url_util_unittest.cc',
471 'cert/x509_certificate_unittest.cc',
472 'socket/ssl_client_socket_pool_unittest.cc',
473 'http/http_auth_handler_basic_unittest.cc',
474 'http/http_auth_handler_digest_unittest.cc',
475 'http/http_auth_handler_factory_unittest.cc',
476 'http/http_auth_unittest.cc',
477 'http/http_content_disposition_unittest.cc',
478 'http/http_network_transaction_unittest.cc',
479 'http/http_proxy_client_socket_pool_unittest.cc',
480 'spdy/spdy_network_transaction_unittest.cc',
481 'spdy/spdy_proxy_client_socket_unittest.cc',
482 'url_request/url_request_job_unittest.cc',
483 'url_request/url_request_unittest.cc',
484 ],
485 }],
486 # Exclude brotli test if the support for brotli is disabled.
487 ['disable_brotli_filter == 1', {
488 'sources!': [
489 'filter/brotli_filter_unittest.cc',
490 ],
491 }],
422 ], 492 ],
423 'target_conditions': [ 493 'target_conditions': [
424 # These source files are excluded by default platform rules, but they 494 # These source files are excluded by default platform rules, but they
425 # are needed in specific cases on other platforms. Re-including them can 495 # are needed in specific cases on other platforms. Re-including them can
426 # only be done in target_conditions as it is evaluated after the 496 # only be done in target_conditions as it is evaluated after the
427 # platform rules. 497 # platform rules.
428 ['OS == "android"', { 498 ['OS == "android"', {
429 'sources/': [ 499 'sources/': [
430 ['include', '^base/address_tracker_linux_unittest\\.cc$'], 500 ['include', '^base/address_tracker_linux_unittest\\.cc$'],
431 ], 501 ],
(...skipping 419 matching lines...) Expand 10 before | Expand all | Expand 10 after
851 'dependencies': [ 921 'dependencies': [
852 '../base/base.gyp:base', 922 '../base/base.gyp:base',
853 'net', 923 'net',
854 'net_derived_sources', 924 'net_derived_sources',
855 ], 925 ],
856 'sources': [ 926 'sources': [
857 'base/stale_while_revalidate_experiment_domains.cc', 927 'base/stale_while_revalidate_experiment_domains.cc',
858 'base/stale_while_revalidate_experiment_domains.h', 928 'base/stale_while_revalidate_experiment_domains.h',
859 ], 929 ],
860 }, 930 },
931 {
932 # GN version: //net:features
933 'target_name': 'net_features',
934 'includes': [ '../build/buildflag_header.gypi' ],
935 'variables': {
936 'buildflag_header_path': 'net/features.h',
937 'buildflag_flags': [
938 'USE_PLATFORM_ICU_ALTERNATIVES=<(use_platform_icu_alternatives)',
939 ],
940 },
941 }
861 ], 942 ],
862 'conditions': [ 943 'conditions': [
863 ['use_v8_in_net == 1', { 944 ['use_v8_in_net == 1', {
864 'targets': [ 945 'targets': [
865 { 946 {
866 'target_name': 'net_with_v8', 947 'target_name': 'net_with_v8',
867 'type': '<(component)', 948 'type': '<(component)',
868 'variables': { 'enable_wexit_time_destructors': 1, }, 949 'variables': { 'enable_wexit_time_destructors': 1, },
869 'dependencies': [ 950 'dependencies': [
870 '../base/base.gyp:base', 951 '../base/base.gyp:base',
(...skipping 456 matching lines...) Expand 10 before | Expand all | Expand 10 after
1327 'simple_quic_tools', 1408 'simple_quic_tools',
1328 ], 1409 ],
1329 'sources': [ 1410 'sources': [
1330 'tools/quic/quic_server_bin.cc', 1411 'tools/quic/quic_server_bin.cc',
1331 ], 1412 ],
1332 }, 1413 },
1333 ] 1414 ]
1334 }], 1415 }],
1335 ['OS=="android"', { 1416 ['OS=="android"', {
1336 'targets': [ 1417 'targets': [
1337 { # The same target as 'net', but with smaller binary size due to
1338 # exclusion of ICU, FTP, FILE and WebSockets support.
1339 'target_name': 'net_small',
1340 'variables': {
1341 'disable_ftp_support': 1,
1342 'disable_file_support': 1,
1343 'enable_websockets': 0,
1344 },
1345 'dependencies': [
1346 '../url/url.gyp:url_lib_use_icu_alternatives_on_android',
1347 ],
1348 'defines': [
1349 'USE_ICU_ALTERNATIVES_ON_ANDROID=1',
1350 'DISABLE_FILE_SUPPORT=1',
1351 'DISABLE_FTP_SUPPORT=1',
1352 ],
1353 'sources': [
1354 'filter/brotli_filter_disabled.cc',
1355 'base/net_string_util_icu_alternatives_android.cc',
1356 'base/net_string_util_icu_alternatives_android.h',
1357 ],
1358 'includes': [ 'net_common.gypi' ],
1359 },
1360 { 1418 {
1361 'target_name': 'net_jni_headers', 1419 'target_name': 'net_jni_headers',
1362 'type': 'none', 1420 'type': 'none',
1363 'sources': [ 1421 'sources': [
1364 'android/java/src/org/chromium/net/AndroidCertVerifyResult.java', 1422 'android/java/src/org/chromium/net/AndroidCertVerifyResult.java',
1365 'android/java/src/org/chromium/net/AndroidKeyStore.java', 1423 'android/java/src/org/chromium/net/AndroidKeyStore.java',
1366 'android/java/src/org/chromium/net/AndroidNetworkLibrary.java', 1424 'android/java/src/org/chromium/net/AndroidNetworkLibrary.java',
1367 'android/java/src/org/chromium/net/AndroidTrafficStats.java', 1425 'android/java/src/org/chromium/net/AndroidTrafficStats.java',
1368 'android/java/src/org/chromium/net/GURLUtils.java', 1426 'android/java/src/org/chromium/net/GURLUtils.java',
1369 'android/java/src/org/chromium/net/HttpNegotiateAuthenticator.java', 1427 'android/java/src/org/chromium/net/HttpNegotiateAuthenticator.java',
(...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after
1726 '../build/isolate.gypi', 1784 '../build/isolate.gypi',
1727 ], 1785 ],
1728 'sources': [ 1786 'sources': [
1729 'net_unittests.isolate', 1787 'net_unittests.isolate',
1730 ], 1788 ],
1731 }, 1789 },
1732 ], 1790 ],
1733 }], 1791 }],
1734 ], 1792 ],
1735 } 1793 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698