| Index: net/BUILD.gn
|
| diff --git a/net/BUILD.gn b/net/BUILD.gn
|
| index 0238a40264c9c5245f01fd6033cb5816aa940bc6..ec775a2ef52c3155421bc47db2907dadb6d2496c 100644
|
| --- a/net/BUILD.gn
|
| +++ b/net/BUILD.gn
|
| @@ -2,6 +2,7 @@
|
| # Use of this source code is governed by a BSD-style license that can be
|
| # found in the LICENSE file.
|
|
|
| +import("//build/buildflag_header.gni")
|
| import("//build/config/chromecast_build.gni")
|
| import("//build/config/compiler/compiler.gni")
|
| import("//build/config/crypto.gni")
|
| @@ -43,6 +44,8 @@ enable_built_in_dns = !is_ios
|
| declare_args() {
|
| # Disables support for file URLs. File URL support requires use of icu.
|
| disable_file_support = false
|
| +
|
| + # Enables BidirectionalStream; Used in cronet, disabled by default.
|
| enable_bidirectional_stream = false
|
|
|
| # WebSockets and socket stream code are not used on iOS and are optional in
|
| @@ -62,9 +65,6 @@ config("net_config") {
|
| if (disable_ftp_support) {
|
| defines += [ "DISABLE_FTP_SUPPORT=1" ]
|
| }
|
| - if (enable_bidirectional_stream) {
|
| - defines += [ "ENABLE_BIDIRECTIONAL_STREAM=1" ]
|
| - }
|
| }
|
|
|
| # net_internal_config is shared with net and net_small.
|
| @@ -105,6 +105,7 @@ net_shared_configs = [
|
| ]
|
|
|
| net_shared_public_deps = [
|
| + ":features",
|
| ":net_quic_proto",
|
| "//crypto",
|
| "//crypto:platform",
|
| @@ -1728,3 +1729,9 @@ executable("net_perftests") {
|
| sources -= [ "proxy/proxy_resolver_perftest.cc" ]
|
| }
|
| }
|
| +
|
| +buildflag_header("features") {
|
| + header = "net_features.h"
|
| +
|
| + flags = [ "ENABLE_BIDIRECTIONAL_STREAM=$enable_bidirectional_stream" ]
|
| +}
|
|
|