Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(84)

Side by Side Diff: net/BUILD.gn

Issue 1845473003: headless: Replace is_headless gn setting with an args template (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Release => Debug. Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « media/media_options.gni ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 # Disable Kerberos on ChromeOS, iOS, Chromecast, at least for now.
51 # It needs configuration (krb5.conf and so on).
asanka 2016/03/31 17:48:06 Nit: Comments in declare_args() are used to descri
Sami 2016/03/31 17:56:38 Good point. I've clarified the comment (to the bes
52 use_kerberos = !is_chromeos && !is_ios && !is_chromecast
53 } 53 }
54 54
55 config("net_config") { 55 config("net_config") {
56 defines = [] 56 defines = []
57 if (posix_avoid_mmap) { 57 if (posix_avoid_mmap) {
58 defines += [ "POSIX_AVOID_MMAP" ] 58 defines += [ "POSIX_AVOID_MMAP" ]
59 } 59 }
60 if (disable_file_support) { 60 if (disable_file_support) {
61 defines += [ "DISABLE_FILE_SUPPORT" ] 61 defines += [ "DISABLE_FILE_SUPPORT" ]
62 } 62 }
(...skipping 1866 matching lines...) Expand 10 before | Expand all | Expand 10 after
1929 fuzzer_test("net_quic_crypto_framer_parse_message_fuzzer") { 1929 fuzzer_test("net_quic_crypto_framer_parse_message_fuzzer") {
1930 sources = [ 1930 sources = [
1931 "quic/quic_crypto_framer_parse_message_fuzzer.cc", 1931 "quic/quic_crypto_framer_parse_message_fuzzer.cc",
1932 ] 1932 ]
1933 deps = [ 1933 deps = [
1934 ":net_fuzzer_test_support", 1934 ":net_fuzzer_test_support",
1935 "//base", 1935 "//base",
1936 "//net", 1936 "//net",
1937 ] 1937 ]
1938 } 1938 }
OLDNEW
« no previous file with comments | « media/media_options.gni ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698