| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 1081 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1517 "ftp/ftp_directory_listing_parser_unittest.cc", | 1525 "ftp/ftp_directory_listing_parser_unittest.cc", |
| 1518 "ftp/ftp_directory_listing_parser_unittest.h", | 1526 "ftp/ftp_directory_listing_parser_unittest.h", |
| 1519 "ftp/ftp_directory_listing_parser_vms_unittest.cc", | 1527 "ftp/ftp_directory_listing_parser_vms_unittest.cc", |
| 1520 "ftp/ftp_directory_listing_parser_windows_unittest.cc", | 1528 "ftp/ftp_directory_listing_parser_windows_unittest.cc", |
| 1521 "ftp/ftp_network_transaction_unittest.cc", | 1529 "ftp/ftp_network_transaction_unittest.cc", |
| 1522 "ftp/ftp_util_unittest.cc", | 1530 "ftp/ftp_util_unittest.cc", |
| 1523 "url_request/url_request_ftp_job_unittest.cc", | 1531 "url_request/url_request_ftp_job_unittest.cc", |
| 1524 ] | 1532 ] |
| 1525 } | 1533 } |
| 1526 | 1534 |
| 1535 if (!enable_bidirectional_stream) { |
| 1536 sources -= [ "http/bidirectional_stream_unittest.cc" ] |
| 1537 } |
| 1527 if (!enable_built_in_dns) { | 1538 if (!enable_built_in_dns) { |
| 1528 sources -= [ | 1539 sources -= [ |
| 1529 "dns/address_sorter_posix_unittest.cc", | 1540 "dns/address_sorter_posix_unittest.cc", |
| 1530 "dns/address_sorter_unittest.cc", | 1541 "dns/address_sorter_unittest.cc", |
| 1531 ] | 1542 ] |
| 1532 } | 1543 } |
| 1533 | 1544 |
| 1534 if (use_v8_in_net) { | 1545 if (use_v8_in_net) { |
| 1535 deps += [ ":net_with_v8" ] | 1546 deps += [ ":net_with_v8" ] |
| 1536 } else { | 1547 } else { |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1688 if (enable_websockets) { | 1699 if (enable_websockets) { |
| 1689 sources += [ "websockets/websocket_frame_perftest.cc" ] | 1700 sources += [ "websockets/websocket_frame_perftest.cc" ] |
| 1690 } | 1701 } |
| 1691 | 1702 |
| 1692 if (use_v8_in_net) { | 1703 if (use_v8_in_net) { |
| 1693 deps += [ ":net_with_v8" ] | 1704 deps += [ ":net_with_v8" ] |
| 1694 } else { | 1705 } else { |
| 1695 sources -= [ "proxy/proxy_resolver_perftest.cc" ] | 1706 sources -= [ "proxy/proxy_resolver_perftest.cc" ] |
| 1696 } | 1707 } |
| 1697 } | 1708 } |
| OLD | NEW |