| 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") |
| 11 import("//net/features.gni") |
| 11 import("//testing/libfuzzer/fuzzer_test.gni") | 12 import("//testing/libfuzzer/fuzzer_test.gni") |
| 12 import("//testing/test.gni") | 13 import("//testing/test.gni") |
| 13 import("//third_party/icu/config.gni") | 14 import("//third_party/icu/config.gni") |
| 14 import("//third_party/protobuf/proto_library.gni") | 15 import("//third_party/protobuf/proto_library.gni") |
| 15 import("//tools/grit/grit_rule.gni") | 16 import("//tools/grit/grit_rule.gni") |
| 16 import("//url/features.gni") | 17 import("//url/features.gni") |
| 17 import("//v8/gni/v8.gni") | 18 import("//v8/gni/v8.gni") |
| 18 | 19 |
| 19 if (is_android) { | 20 if (is_android) { |
| 20 import("//build/config/android/config.gni") | 21 import("//build/config/android/config.gni") |
| (...skipping 11 matching lines...) Expand all Loading... |
| 32 # The way the cache uses mmap() is inefficient on some Android devices. If | 33 # The way the cache uses mmap() is inefficient on some Android devices. If |
| 33 # this flag is set, we hackily avoid using mmap() in the disk cache. We are | 34 # this flag is set, we hackily avoid using mmap() in the disk cache. We are |
| 34 # pretty confident that mmap-ing the index would not hurt any existing x86 | 35 # pretty confident that mmap-ing the index would not hurt any existing x86 |
| 35 # android devices, but we cannot be so sure about the variety of ARM devices. | 36 # android devices, but we cannot be so sure about the variety of ARM devices. |
| 36 # So enable it for x86 only for now. | 37 # So enable it for x86 only for now. |
| 37 posix_avoid_mmap = is_android && current_cpu != "x86" | 38 posix_avoid_mmap = is_android && current_cpu != "x86" |
| 38 | 39 |
| 39 use_v8_in_net = !is_ios | 40 use_v8_in_net = !is_ios |
| 40 enable_built_in_dns = !is_ios | 41 enable_built_in_dns = !is_ios |
| 41 | 42 |
| 42 declare_args() { | |
| 43 # Disables support for file URLs. File URL support requires use of icu. | |
| 44 disable_file_support = false | |
| 45 | |
| 46 # WebSockets and socket stream code are not used on iOS and are optional in | |
| 47 # cronet. | |
| 48 enable_websockets = !is_ios | |
| 49 disable_ftp_support = is_ios || is_chromecast | |
| 50 | |
| 51 # Enable Kerberos authentication. It is disabled by default on ChromeOS, iOS, | |
| 52 # Chromecast, at least for now. This feature needs configuration (krb5.conf | |
| 53 # and so on). | |
| 54 use_kerberos = !is_chromeos && !is_ios && !is_chromecast | |
| 55 | |
| 56 # Do not disable brotli filter by default. | |
| 57 disable_brotli_filter = false | |
| 58 } | |
| 59 | |
| 60 config("net_config") { | 43 config("net_config") { |
| 61 defines = [] | 44 defines = [] |
| 62 if (posix_avoid_mmap) { | 45 if (posix_avoid_mmap) { |
| 63 defines += [ "POSIX_AVOID_MMAP" ] | 46 defines += [ "POSIX_AVOID_MMAP" ] |
| 64 } | 47 } |
| 65 if (disable_file_support) { | 48 if (disable_file_support) { |
| 66 defines += [ "DISABLE_FILE_SUPPORT" ] | 49 defines += [ "DISABLE_FILE_SUPPORT" ] |
| 67 } | 50 } |
| 68 if (disable_ftp_support) { | 51 if (disable_ftp_support) { |
| 69 defines += [ "DISABLE_FTP_SUPPORT=1" ] | 52 defines += [ "DISABLE_FTP_SUPPORT=1" ] |
| (...skipping 1967 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2037 "url_request/url_request_fuzzer.cc", | 2020 "url_request/url_request_fuzzer.cc", |
| 2038 ] | 2021 ] |
| 2039 deps = [ | 2022 deps = [ |
| 2040 ":net_fuzzer_test_support", | 2023 ":net_fuzzer_test_support", |
| 2041 ":test_support", | 2024 ":test_support", |
| 2042 "//base", | 2025 "//base", |
| 2043 "//net", | 2026 "//net", |
| 2044 ] | 2027 ] |
| 2045 dict = "data/fuzzer_dictionaries/net_url_request_fuzzer.dict" | 2028 dict = "data/fuzzer_dictionaries/net_url_request_fuzzer.dict" |
| 2046 } | 2029 } |
| OLD | NEW |