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

Side by Side Diff: net/net.gyp

Issue 1550843002: Convert enable_bidirectional_stream into build flag local to net. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Sync Created 4 years, 11 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
« no previous file with comments | « net/http/http_stream_factory_impl_unittest.cc ('k') | net/net_common.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 # Enables BidirectionalStream; Used in cronet, disabled by default.
10 'enable_bidirectional_stream%': 0,
9 'conditions': [ 11 'conditions': [
10 ['chromeos==1 or embedded==1 or OS=="ios"', { 12 ['chromeos==1 or embedded==1 or OS=="ios"', {
11 # Disable Kerberos on ChromeOS and iOS, at least for now. 13 # Disable Kerberos on ChromeOS and iOS, at least for now.
12 # It needs configuration (krb5.conf and so on). 14 # It needs configuration (krb5.conf and so on).
13 'use_kerberos%': 0, 15 'use_kerberos%': 0,
14 }, { # chromeos == 0 and embedded==0 and OS!="ios" 16 }, { # chromeos == 0 and embedded==0 and OS!="ios"
15 'use_kerberos%': 1, 17 'use_kerberos%': 1,
16 }], 18 }],
17 ['OS=="android" and target_arch != "ia32"', { 19 ['OS=="android" and target_arch != "ia32"', {
18 # The way the cache uses mmap() is inefficient on some Android devices. 20 # The way the cache uses mmap() is inefficient on some Android devices.
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 { 107 {
106 # GN version: //net 108 # GN version: //net
107 'target_name': 'net', 109 'target_name': 'net',
108 'dependencies': [ 110 'dependencies': [
109 '../base/base.gyp:base_i18n', 111 '../base/base.gyp:base_i18n',
110 '../third_party/brotli/brotli.gyp:brotli', 112 '../third_party/brotli/brotli.gyp:brotli',
111 '../third_party/icu/icu.gyp:icui18n', 113 '../third_party/icu/icu.gyp:icui18n',
112 '../third_party/icu/icu.gyp:icuuc', 114 '../third_party/icu/icu.gyp:icuuc',
113 '../third_party/protobuf/protobuf.gyp:protobuf_lite', 115 '../third_party/protobuf/protobuf.gyp:protobuf_lite',
114 '../url/url.gyp:url_lib', 116 '../url/url.gyp:url_lib',
117 'net_features',
115 'net_quic_proto', 118 'net_quic_proto',
116 ], 119 ],
117 'sources': [ 120 'sources': [
118 'base/filename_util_icu.cc', 121 'base/filename_util_icu.cc',
119 'base/net_string_util_icu.cc', 122 'base/net_string_util_icu.cc',
120 'filter/brotli_filter.cc', 123 'filter/brotli_filter.cc',
121 ], 124 ],
122 'includes': [ 'net_common.gypi' ], 125 'includes': [ 'net_common.gypi' ],
123 }, 126 },
124 { 127 {
128 # GN version: //net:features
129 'target_name': 'net_features',
130 'includes': [ '../build/buildflag_header.gypi' ],
131 'variables': {
132 'buildflag_header_path': 'net/net_features.h',
133 'buildflag_flags': [
134 'ENABLE_BIDIRECTIONAL_STREAM=<(enable_bidirectional_stream)',
135 ],
136 },
137 },
138 {
125 # GN version: //net:net_unittests 139 # GN version: //net:net_unittests
126 'target_name': 'net_unittests', 140 'target_name': 'net_unittests',
127 'type': '<(gtest_target_type)', 141 'type': '<(gtest_target_type)',
128 'dependencies': [ 142 'dependencies': [
129 '../base/base.gyp:base', 143 '../base/base.gyp:base',
130 '../base/base.gyp:base_i18n', 144 '../base/base.gyp:base_i18n',
131 '../base/base.gyp:base_prefs_test_support', 145 '../base/base.gyp:base_prefs_test_support',
132 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic _annotations', 146 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic _annotations',
133 '../crypto/crypto.gyp:crypto', 147 '../crypto/crypto.gyp:crypto',
134 '../crypto/crypto.gyp:crypto_test_support', 148 '../crypto/crypto.gyp:crypto_test_support',
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 ], 296 ],
283 'sources!': [ 297 'sources!': [
284 'url_request/url_request_ftp_job_unittest.cc', 298 'url_request/url_request_ftp_job_unittest.cc',
285 ], 299 ],
286 }, 300 },
287 ], 301 ],
288 [ 'enable_bidirectional_stream!=1', { 302 [ 'enable_bidirectional_stream!=1', {
289 'sources!': [ 303 'sources!': [
290 'http/bidirectional_stream_unittest.cc', 304 'http/bidirectional_stream_unittest.cc',
291 ], 305 ],
292 }, { # else 306 },
293 'defines': [
294 'ENABLE_BIDIRECTIONAL_STREAM',
295 ],
296 }
297 ], 307 ],
298 [ 'enable_built_in_dns!=1', { 308 [ 'enable_built_in_dns!=1', {
299 'sources!': [ 309 'sources!': [
300 'dns/address_sorter_posix_unittest.cc', 310 'dns/address_sorter_posix_unittest.cc',
301 'dns/address_sorter_unittest.cc', 311 'dns/address_sorter_unittest.cc',
302 ], 312 ],
303 }, 313 },
304 ], 314 ],
305 [ 'use_v8_in_net==1', { 315 [ 'use_v8_in_net==1', {
306 'dependencies': [ 316 'dependencies': [
(...skipping 1045 matching lines...) Expand 10 before | Expand all | Expand 10 after
1352 { # The same target as 'net', but with smaller binary size due to 1362 { # The same target as 'net', but with smaller binary size due to
1353 # exclusion of ICU, FTP, FILE and WebSockets support. 1363 # exclusion of ICU, FTP, FILE and WebSockets support.
1354 'target_name': 'net_small', 1364 'target_name': 'net_small',
1355 'variables': { 1365 'variables': {
1356 'disable_ftp_support': 1, 1366 'disable_ftp_support': 1,
1357 'disable_file_support': 1, 1367 'disable_file_support': 1,
1358 'enable_websockets': 0, 1368 'enable_websockets': 0,
1359 }, 1369 },
1360 'dependencies': [ 1370 'dependencies': [
1361 '../url/url.gyp:url_lib_use_icu_alternatives_on_android', 1371 '../url/url.gyp:url_lib_use_icu_alternatives_on_android',
1372 'net_features',
1362 ], 1373 ],
1363 'defines': [ 1374 'defines': [
1364 'USE_ICU_ALTERNATIVES_ON_ANDROID=1', 1375 'USE_ICU_ALTERNATIVES_ON_ANDROID=1',
1365 'DISABLE_FILE_SUPPORT=1', 1376 'DISABLE_FILE_SUPPORT=1',
1366 'DISABLE_FTP_SUPPORT=1', 1377 'DISABLE_FTP_SUPPORT=1',
1367 ], 1378 ],
1368 'sources': [ 1379 'sources': [
1369 'filter/brotli_filter_disabled.cc', 1380 'filter/brotli_filter_disabled.cc',
1370 'base/net_string_util_icu_alternatives_android.cc', 1381 'base/net_string_util_icu_alternatives_android.cc',
1371 'base/net_string_util_icu_alternatives_android.h', 1382 'base/net_string_util_icu_alternatives_android.h',
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after
1708 '../build/isolate.gypi', 1719 '../build/isolate.gypi',
1709 ], 1720 ],
1710 'sources': [ 1721 'sources': [
1711 'net_unittests.isolate', 1722 'net_unittests.isolate',
1712 ], 1723 ],
1713 }, 1724 },
1714 ], 1725 ],
1715 }], 1726 }],
1716 ], 1727 ],
1717 } 1728 }
OLDNEW
« no previous file with comments | « net/http/http_stream_factory_impl_unittest.cc ('k') | net/net_common.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698