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

Side by Side Diff: net/BUILD.gn

Issue 1326503003: Added a net::BidirectionalStream to expose a bidirectional streaming interface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address Misha's comments Created 4 years, 12 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 (c) 2013 The Chromium Authors. All rights reserved. 1 # Copyright (c) 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 import("//build/config/chromecast_build.gni") 5 import("//build/config/chromecast_build.gni")
6 import("//build/config/compiler/compiler.gni") 6 import("//build/config/compiler/compiler.gni")
7 import("//build/config/crypto.gni") 7 import("//build/config/crypto.gni")
8 import("//build/config/features.gni") 8 import("//build/config/features.gni")
9 import("//build/config/ui.gni") 9 import("//build/config/ui.gni")
10 import("//build_overrides/v8.gni") 10 import("//build_overrides/v8.gni")
(...skipping 28 matching lines...) Expand all
39 39
40 # WebSockets and socket stream code are used everywhere except iOS. 40 # WebSockets and socket stream code are used everywhere except iOS.
41 enable_websockets = !is_ios 41 enable_websockets = !is_ios
42 use_v8_in_net = !is_ios 42 use_v8_in_net = !is_ios
43 enable_built_in_dns = !is_ios 43 enable_built_in_dns = !is_ios
44 disable_ftp_support = is_ios 44 disable_ftp_support = is_ios
45 45
46 declare_args() { 46 declare_args() {
47 # Disables support for file URLs. File URL support requires use of icu. 47 # Disables support for file URLs. File URL support requires use of icu.
48 disable_file_support = false 48 disable_file_support = false
49 enable_bidirectional_stream = false
49 } 50 }
50 51
51 config("net_config") { 52 config("net_config") {
52 defines = [] 53 defines = []
53 if (posix_avoid_mmap) { 54 if (posix_avoid_mmap) {
54 defines += [ "POSIX_AVOID_MMAP" ] 55 defines += [ "POSIX_AVOID_MMAP" ]
55 } 56 }
56 if (disable_file_support) { 57 if (disable_file_support) {
57 defines += [ "DISABLE_FILE_SUPPORT" ] 58 defines += [ "DISABLE_FILE_SUPPORT" ]
58 } 59 }
59 if (disable_ftp_support) { 60 if (disable_ftp_support) {
60 defines += [ "DISABLE_FTP_SUPPORT=1" ] 61 defines += [ "DISABLE_FTP_SUPPORT=1" ]
61 } 62 }
63 if (enable_bidirectional_stream) {
64 defines += [ "ENABLE_BIDIRECTIONAL_STREAM=1" ]
65 }
62 } 66 }
63 67
64 # net_internal_config is shared with net and net_small. 68 # net_internal_config is shared with net and net_small.
65 config("net_internal_config") { 69 config("net_internal_config") {
66 defines = [ 70 defines = [
67 # TODO(GYP) Note that the GYP file supports linux_link_kerberos (defaults to 71 # TODO(GYP) Note that the GYP file supports linux_link_kerberos (defaults to
68 # 0) which implies that we run pkg_config on kerberos and link to that 72 # 0) which implies that we run pkg_config on kerberos and link to that
69 # rather than setting this define which will dynamically open it. That 73 # rather than setting this define which will dynamically open it. That
70 # doesn't seem to be set in the regular builds, so we're skipping this 74 # doesn't seem to be set in the regular builds, so we're skipping this
71 # capability here. 75 # capability here.
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after
416 420
417 if (!is_nacl) { 421 if (!is_nacl) {
418 if (!disable_file_support) { 422 if (!disable_file_support) {
419 sources += gypi_values.net_file_support_sources 423 sources += gypi_values.net_file_support_sources
420 } 424 }
421 425
422 if (!disable_ftp_support) { 426 if (!disable_ftp_support) {
423 sources += gypi_values.net_ftp_support_sources 427 sources += gypi_values.net_ftp_support_sources
424 } 428 }
425 429
430 if (enable_bidirectional_stream) {
431 sources += gypi_values.net_bidirectional_stream_sources
432 }
433
426 if (enable_websockets) { 434 if (enable_websockets) {
427 sources += gypi_values.net_websockets_sources 435 sources += gypi_values.net_websockets_sources
428 } 436 }
429 437
430 # ICU support. 438 # ICU support.
431 deps += [ 439 deps += [
432 "//base:i18n", 440 "//base:i18n",
433 "//third_party/icu", 441 "//third_party/icu",
434 ] 442 ]
435 sources += [ 443 sources += [
(...skipping 1085 matching lines...) Expand 10 before | Expand all | Expand 10 after
1521 "ftp/ftp_directory_listing_parser_unittest.cc", 1529 "ftp/ftp_directory_listing_parser_unittest.cc",
1522 "ftp/ftp_directory_listing_parser_unittest.h", 1530 "ftp/ftp_directory_listing_parser_unittest.h",
1523 "ftp/ftp_directory_listing_parser_vms_unittest.cc", 1531 "ftp/ftp_directory_listing_parser_vms_unittest.cc",
1524 "ftp/ftp_directory_listing_parser_windows_unittest.cc", 1532 "ftp/ftp_directory_listing_parser_windows_unittest.cc",
1525 "ftp/ftp_network_transaction_unittest.cc", 1533 "ftp/ftp_network_transaction_unittest.cc",
1526 "ftp/ftp_util_unittest.cc", 1534 "ftp/ftp_util_unittest.cc",
1527 "url_request/url_request_ftp_job_unittest.cc", 1535 "url_request/url_request_ftp_job_unittest.cc",
1528 ] 1536 ]
1529 } 1537 }
1530 1538
1539 if (!enable_bidirectional_stream) {
1540 sources -= [ "http/bidirectional_stream_unittest.cc" ]
1541 }
1531 if (!enable_built_in_dns) { 1542 if (!enable_built_in_dns) {
1532 sources -= [ 1543 sources -= [
1533 "dns/address_sorter_posix_unittest.cc", 1544 "dns/address_sorter_posix_unittest.cc",
1534 "dns/address_sorter_unittest.cc", 1545 "dns/address_sorter_unittest.cc",
1535 ] 1546 ]
1536 } 1547 }
1537 1548
1538 if (use_v8_in_net) { 1549 if (use_v8_in_net) {
1539 deps += [ ":net_with_v8" ] 1550 deps += [ ":net_with_v8" ]
1540 } else { 1551 } else {
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
1693 if (enable_websockets) { 1704 if (enable_websockets) {
1694 sources += [ "websockets/websocket_frame_perftest.cc" ] 1705 sources += [ "websockets/websocket_frame_perftest.cc" ]
1695 } 1706 }
1696 1707
1697 if (use_v8_in_net) { 1708 if (use_v8_in_net) {
1698 deps += [ ":net_with_v8" ] 1709 deps += [ ":net_with_v8" ]
1699 } else { 1710 } else {
1700 sources -= [ "proxy/proxy_resolver_perftest.cc" ] 1711 sources -= [ "proxy/proxy_resolver_perftest.cc" ]
1701 } 1712 }
1702 } 1713 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698