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

Side by Side Diff: net/BUILD.gn

Issue 1542633004: GN: Make enable_websockets and disable_file_support GN args (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 | « no previous file | 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/config/chromecast_build.gni") 5 import("//build/config/chromecast_build.gni")
6 import("//build/config/compiler/compiler.gni") 6 import("//build/config/compiler/compiler.gni")
7 import("//build/config/crypto.gni") 7 import("//build/config/crypto.gni")
8 import("//build/config/features.gni") 8 import("//build/config/features.gni")
9 import("//build/config/ui.gni") 9 import("//build/config/ui.gni")
10 import("//build_overrides/v8.gni") 10 import("//build_overrides/v8.gni")
(...skipping 19 matching lines...) Expand all
30 # It needs configuration (krb5.conf and so on). 30 # It needs configuration (krb5.conf and so on).
31 use_kerberos = !is_chromeos && !is_ios && !is_chromecast && !is_headless 31 use_kerberos = !is_chromeos && !is_ios && !is_chromecast && !is_headless
32 32
33 # 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
34 # 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
35 # 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
36 # 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.
37 # So enable it for x86 only for now. 37 # So enable it for x86 only for now.
38 posix_avoid_mmap = is_android && current_cpu != "x86" 38 posix_avoid_mmap = is_android && current_cpu != "x86"
39 39
40 # WebSockets and socket stream code are used everywhere except iOS.
41 enable_websockets = !is_ios
42 use_v8_in_net = !is_ios 40 use_v8_in_net = !is_ios
43 enable_built_in_dns = !is_ios 41 enable_built_in_dns = !is_ios
44 disable_ftp_support = is_ios
45 42
46 declare_args() { 43 declare_args() {
47 # Disables support for file URLs. File URL support requires use of icu. 44 # Disables support for file URLs. File URL support requires use of icu.
48 disable_file_support = false 45 disable_file_support = false
49 enable_bidirectional_stream = false 46 enable_bidirectional_stream = false
47
48 # WebSockets and socket stream code are not used on iOS and are optional in
49 # cronet.
50 enable_websockets = !is_ios
51 disable_ftp_support = is_ios
50 } 52 }
51 53
52 config("net_config") { 54 config("net_config") {
53 defines = [] 55 defines = []
54 if (posix_avoid_mmap) { 56 if (posix_avoid_mmap) {
55 defines += [ "POSIX_AVOID_MMAP" ] 57 defines += [ "POSIX_AVOID_MMAP" ]
56 } 58 }
57 if (disable_file_support) { 59 if (disable_file_support) {
58 defines += [ "DISABLE_FILE_SUPPORT" ] 60 defines += [ "DISABLE_FILE_SUPPORT" ]
59 } 61 }
(...skipping 1644 matching lines...) Expand 10 before | Expand all | Expand 10 after
1704 if (enable_websockets) { 1706 if (enable_websockets) {
1705 sources += [ "websockets/websocket_frame_perftest.cc" ] 1707 sources += [ "websockets/websocket_frame_perftest.cc" ]
1706 } 1708 }
1707 1709
1708 if (use_v8_in_net) { 1710 if (use_v8_in_net) {
1709 deps += [ ":net_with_v8" ] 1711 deps += [ ":net_with_v8" ]
1710 } else { 1712 } else {
1711 sources -= [ "proxy/proxy_resolver_perftest.cc" ] 1713 sources -= [ "proxy/proxy_resolver_perftest.cc" ]
1712 } 1714 }
1713 } 1715 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698