| 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/buildflag_header.gni") | 5 import("//build/buildflag_header.gni") |
| 6 import("//build/config/chromecast_build.gni") | 6 import("//build/config/chromecast_build.gni") |
| 7 import("//build/config/compiler/compiler.gni") | 7 import("//build/config/compiler/compiler.gni") |
| 8 import("//build/config/crypto.gni") | 8 import("//build/config/crypto.gni") |
| 9 import("//build/config/features.gni") | 9 import("//build/config/features.gni") |
| 10 import("//build/config/ui.gni") | 10 import("//build/config/ui.gni") |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 import("//build/config/mac/mac_sdk.gni") | 27 import("//build/config/mac/mac_sdk.gni") |
| 28 } | 28 } |
| 29 | 29 |
| 30 # The way the cache uses mmap() is inefficient on some Android devices. If | 30 # The way the cache uses mmap() is inefficient on some Android devices. If |
| 31 # this flag is set, we hackily avoid using mmap() in the disk cache. We are | 31 # this flag is set, we hackily avoid using mmap() in the disk cache. We are |
| 32 # pretty confident that mmap-ing the index would not hurt any existing x86 | 32 # pretty confident that mmap-ing the index would not hurt any existing x86 |
| 33 # android devices, but we cannot be so sure about the variety of ARM devices. | 33 # android devices, but we cannot be so sure about the variety of ARM devices. |
| 34 # So enable it for x86 only for now. | 34 # So enable it for x86 only for now. |
| 35 posix_avoid_mmap = is_android && current_cpu != "x86" | 35 posix_avoid_mmap = is_android && current_cpu != "x86" |
| 36 | 36 |
| 37 use_v8_in_net = !is_ios && !is_proto_quic | 37 use_v8_in_net = !is_ios && !is_proto_quic && current_os != "fuchsia" |
| 38 enable_built_in_dns = !is_ios && !is_proto_quic | 38 enable_built_in_dns = !is_ios && !is_proto_quic && current_os != "fuchsia" |
| 39 | 39 |
| 40 buildflag_header("features") { | 40 buildflag_header("features") { |
| 41 header = "net_features.h" | 41 header = "net_features.h" |
| 42 flags = [ | 42 flags = [ |
| 43 "POSIX_AVOID_MMAP=$posix_avoid_mmap", | 43 "POSIX_AVOID_MMAP=$posix_avoid_mmap", |
| 44 "DISABLE_FILE_SUPPORT=$disable_file_support", | 44 "DISABLE_FILE_SUPPORT=$disable_file_support", |
| 45 "DISABLE_FTP_SUPPORT=$disable_ftp_support", | 45 "DISABLE_FTP_SUPPORT=$disable_ftp_support", |
| 46 "ENABLE_MDNS=$enable_mdns", | 46 "ENABLE_MDNS=$enable_mdns", |
| 47 "ENABLE_WEBSOCKETS=$enable_websockets", | 47 "ENABLE_WEBSOCKETS=$enable_websockets", |
| 48 ] | 48 ] |
| (...skipping 1617 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1666 } | 1666 } |
| 1667 | 1667 |
| 1668 if (is_posix) { | 1668 if (is_posix) { |
| 1669 if (posix_avoid_mmap) { | 1669 if (posix_avoid_mmap) { |
| 1670 sources -= [ "disk_cache/blockfile/mapped_file_posix.cc" ] | 1670 sources -= [ "disk_cache/blockfile/mapped_file_posix.cc" ] |
| 1671 } else { | 1671 } else { |
| 1672 sources -= [ "disk_cache/blockfile/mapped_file_avoid_mmap_posix.cc" ] | 1672 sources -= [ "disk_cache/blockfile/mapped_file_avoid_mmap_posix.cc" ] |
| 1673 } | 1673 } |
| 1674 } | 1674 } |
| 1675 | 1675 |
| 1676 if (!enable_built_in_dns) { | 1676 if (!enable_built_in_dns && current_os != "fuchsia") { |
| 1677 sources -= [ | 1677 sources -= [ |
| 1678 "dns/address_sorter_posix.cc", | 1678 "dns/address_sorter_posix.cc", |
| 1679 "dns/address_sorter_posix.h", | 1679 "dns/address_sorter_posix.h", |
| 1680 "dns/dns_client.cc", | 1680 "dns/dns_client.cc", |
| 1681 ] | 1681 ] |
| 1682 } | 1682 } |
| 1683 | 1683 |
| 1684 if (!use_openssl_certs) { | 1684 if (!use_openssl_certs) { |
| 1685 sources -= [ | 1685 sources -= [ |
| 1686 "base/crypto_module_openssl.cc", | 1686 "base/crypto_module_openssl.cc", |
| (...skipping 834 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2521 ] | 2521 ] |
| 2522 deps = [ | 2522 deps = [ |
| 2523 "//base", | 2523 "//base", |
| 2524 "//gin", | 2524 "//gin", |
| 2525 "//url", | 2525 "//url", |
| 2526 "//v8", | 2526 "//v8", |
| 2527 ] | 2527 ] |
| 2528 } | 2528 } |
| 2529 } | 2529 } |
| 2530 | 2530 |
| 2531 if (!is_ios && !is_android && !is_proto_quic) { | 2531 if (!is_ios && !is_android && !is_proto_quic && current_os != "fuchsia") { |
| 2532 source_set("net_browser_services") { | 2532 source_set("net_browser_services") { |
| 2533 sources = [ | 2533 sources = [ |
| 2534 "dns/mojo_host_resolver_impl.cc", | 2534 "dns/mojo_host_resolver_impl.cc", |
| 2535 "dns/mojo_host_resolver_impl.h", | 2535 "dns/mojo_host_resolver_impl.h", |
| 2536 "proxy/mojo_proxy_resolver_factory.h", | 2536 "proxy/mojo_proxy_resolver_factory.h", |
| 2537 "proxy/proxy_resolver_factory_mojo.cc", | 2537 "proxy/proxy_resolver_factory_mojo.cc", |
| 2538 "proxy/proxy_resolver_factory_mojo.h", | 2538 "proxy/proxy_resolver_factory_mojo.h", |
| 2539 "proxy/proxy_service_mojo.cc", | 2539 "proxy/proxy_service_mojo.cc", |
| 2540 "proxy/proxy_service_mojo.h", | 2540 "proxy/proxy_service_mojo.h", |
| 2541 ] | 2541 ] |
| (...skipping 2421 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4963 "ftp/ftp_directory_listing_parser_unittest.cc", | 4963 "ftp/ftp_directory_listing_parser_unittest.cc", |
| 4964 "ftp/ftp_directory_listing_parser_unittest.h", | 4964 "ftp/ftp_directory_listing_parser_unittest.h", |
| 4965 "ftp/ftp_directory_listing_parser_vms_unittest.cc", | 4965 "ftp/ftp_directory_listing_parser_vms_unittest.cc", |
| 4966 "ftp/ftp_directory_listing_parser_windows_unittest.cc", | 4966 "ftp/ftp_directory_listing_parser_windows_unittest.cc", |
| 4967 "ftp/ftp_network_transaction_unittest.cc", | 4967 "ftp/ftp_network_transaction_unittest.cc", |
| 4968 "ftp/ftp_util_unittest.cc", | 4968 "ftp/ftp_util_unittest.cc", |
| 4969 "url_request/url_request_ftp_job_unittest.cc", | 4969 "url_request/url_request_ftp_job_unittest.cc", |
| 4970 ] | 4970 ] |
| 4971 } | 4971 } |
| 4972 | 4972 |
| 4973 if (!enable_built_in_dns) { | 4973 if (!enable_built_in_dns && current_os != "fuchsia") { |
| 4974 sources -= [ | 4974 sources -= [ |
| 4975 "dns/address_sorter_posix_unittest.cc", | 4975 "dns/address_sorter_posix_unittest.cc", |
| 4976 "dns/address_sorter_unittest.cc", | 4976 "dns/address_sorter_unittest.cc", |
| 4977 ] | 4977 ] |
| 4978 } | 4978 } |
| 4979 | 4979 |
| 4980 if (use_v8_in_net) { | 4980 if (use_v8_in_net) { |
| 4981 deps += [ ":net_with_v8" ] | 4981 deps += [ ":net_with_v8" ] |
| 4982 } else { | 4982 } else { |
| 4983 sources -= [ | 4983 sources -= [ |
| (...skipping 745 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5729 "tools/transport_security_state_generator/trie/trie_writer.cc", | 5729 "tools/transport_security_state_generator/trie/trie_writer.cc", |
| 5730 "tools/transport_security_state_generator/trie/trie_writer.h", | 5730 "tools/transport_security_state_generator/trie/trie_writer.h", |
| 5731 ] | 5731 ] |
| 5732 deps = [ | 5732 deps = [ |
| 5733 "//base", | 5733 "//base", |
| 5734 "//crypto", | 5734 "//crypto", |
| 5735 "//third_party/boringssl", | 5735 "//third_party/boringssl", |
| 5736 ] | 5736 ] |
| 5737 } | 5737 } |
| 5738 } | 5738 } |
| OLD | NEW |