Index: net/BUILD.gn |
diff --git a/net/BUILD.gn b/net/BUILD.gn |
index 8ca7cdf2941f699622b06a1d88b221a601e09379..a0ae5fb9de0b22880d730e38003dc4177cdda293 100644 |
--- a/net/BUILD.gn |
+++ b/net/BUILD.gn |
@@ -46,6 +46,7 @@ disable_ftp_support = is_ios |
declare_args() { |
# Disables support for file URLs. File URL support requires use of icu. |
disable_file_support = false |
+ enable_bidirectional_stream = false |
} |
config("net_config") { |
@@ -59,6 +60,9 @@ 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. |
@@ -423,6 +427,10 @@ component("net") { |
sources += gypi_values.net_ftp_support_sources |
} |
+ if (enable_bidirectional_stream) { |
+ sources += gypi_values.net_bidirectional_stream_sources |
+ } |
+ |
if (enable_websockets) { |
sources += gypi_values.net_websockets_sources |
} |
@@ -1528,6 +1536,9 @@ test("net_unittests") { |
] |
} |
+ if (!enable_bidirectional_stream) { |
+ sources -= [ "http/bidirectional_stream_unittest.cc" ] |
+ } |
if (!enable_built_in_dns) { |
sources -= [ |
"dns/address_sorter_posix_unittest.cc", |