| 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_fuchsia && !is_proto_quic |
| 38 enable_built_in_dns = !is_ios && !is_proto_quic | 38 enable_built_in_dns = !is_ios && !is_fuchsia && !is_proto_quic |
| 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 2472 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_fuchsia && !is_proto_quic) { |
| 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 3187 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 |