| 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 10 matching lines...) Expand all Loading... |
| 21 } else if (is_mac) { | 21 } else if (is_mac) { |
| 22 import("//build/config/mac/mac_sdk.gni") | 22 import("//build/config/mac/mac_sdk.gni") |
| 23 } | 23 } |
| 24 | 24 |
| 25 # The list of net files is kept in net.gypi. Read it. | 25 # The list of net files is kept in net.gypi. Read it. |
| 26 gypi_values = exec_script("//build/gypi_to_gn.py", | 26 gypi_values = exec_script("//build/gypi_to_gn.py", |
| 27 [ rebase_path("net.gypi") ], | 27 [ rebase_path("net.gypi") ], |
| 28 "scope", | 28 "scope", |
| 29 [ "net.gypi" ]) | 29 [ "net.gypi" ]) |
| 30 | 30 |
| 31 # Disable Kerberos on ChromeOS, iOS, Chromecast and headless, at least for now. | |
| 32 # It needs configuration (krb5.conf and so on). | |
| 33 use_kerberos = !is_chromeos && !is_ios && !is_chromecast && !is_headless | |
| 34 | |
| 35 # The way the cache uses mmap() is inefficient on some Android devices. If | 31 # The way the cache uses mmap() is inefficient on some Android devices. If |
| 36 # this flag is set, we hackily avoid using mmap() in the disk cache. We are | 32 # this flag is set, we hackily avoid using mmap() in the disk cache. We are |
| 37 # pretty confident that mmap-ing the index would not hurt any existing x86 | 33 # pretty confident that mmap-ing the index would not hurt any existing x86 |
| 38 # android devices, but we cannot be so sure about the variety of ARM devices. | 34 # android devices, but we cannot be so sure about the variety of ARM devices. |
| 39 # So enable it for x86 only for now. | 35 # So enable it for x86 only for now. |
| 40 posix_avoid_mmap = is_android && current_cpu != "x86" | 36 posix_avoid_mmap = is_android && current_cpu != "x86" |
| 41 | 37 |
| 42 use_v8_in_net = !is_ios | 38 use_v8_in_net = !is_ios |
| 43 enable_built_in_dns = !is_ios | 39 enable_built_in_dns = !is_ios |
| 44 | 40 |
| 45 declare_args() { | 41 declare_args() { |
| 46 # Disables support for file URLs. File URL support requires use of icu. | 42 # Disables support for file URLs. File URL support requires use of icu. |
| 47 disable_file_support = false | 43 disable_file_support = false |
| 48 | 44 |
| 49 # WebSockets and socket stream code are not used on iOS and are optional in | 45 # WebSockets and socket stream code are not used on iOS and are optional in |
| 50 # cronet. | 46 # cronet. |
| 51 enable_websockets = !is_ios | 47 enable_websockets = !is_ios |
| 52 disable_ftp_support = is_ios | 48 disable_ftp_support = is_ios |
| 49 |
| 50 # Enable Kerberos authentication. It is disabled by default on ChromeOS, iOS, |
| 51 # Chromecast, at least for now. This feature needs configuration (krb5.conf |
| 52 # and so on). |
| 53 use_kerberos = !is_chromeos && !is_ios && !is_chromecast |
| 53 } | 54 } |
| 54 | 55 |
| 55 config("net_config") { | 56 config("net_config") { |
| 56 defines = [] | 57 defines = [] |
| 57 if (posix_avoid_mmap) { | 58 if (posix_avoid_mmap) { |
| 58 defines += [ "POSIX_AVOID_MMAP" ] | 59 defines += [ "POSIX_AVOID_MMAP" ] |
| 59 } | 60 } |
| 60 if (disable_file_support) { | 61 if (disable_file_support) { |
| 61 defines += [ "DISABLE_FILE_SUPPORT" ] | 62 defines += [ "DISABLE_FILE_SUPPORT" ] |
| 62 } | 63 } |
| (...skipping 1905 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1968 fuzzer_test("net_quic_crypto_framer_parse_message_fuzzer") { | 1969 fuzzer_test("net_quic_crypto_framer_parse_message_fuzzer") { |
| 1969 sources = [ | 1970 sources = [ |
| 1970 "quic/quic_crypto_framer_parse_message_fuzzer.cc", | 1971 "quic/quic_crypto_framer_parse_message_fuzzer.cc", |
| 1971 ] | 1972 ] |
| 1972 deps = [ | 1973 deps = [ |
| 1973 ":net_fuzzer_test_support", | 1974 ":net_fuzzer_test_support", |
| 1974 "//base", | 1975 "//base", |
| 1975 "//net", | 1976 "//net", |
| 1976 ] | 1977 ] |
| 1977 } | 1978 } |
| OLD | NEW |