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

Side by Side Diff: net/BUILD.gn

Issue 253603004: Make it so net/ can be built without file:// support. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Add TODO, minor cleanups Created 6 years, 7 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 | Annotate | Revision Log
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/crypto.gni") 5 import("//build/config/crypto.gni")
6 import("//build/config/features.gni") 6 import("//build/config/features.gni")
7 import("//build/config/ui.gni") 7 import("//build/config/ui.gni")
8 import("//tools/grit/grit_rule.gni") 8 import("//tools/grit/grit_rule.gni")
9 9
10 if (is_android) { 10 if (is_android) {
(...skipping 19 matching lines...) Expand all
30 # android devices, but we cannot be so sure about the variety of ARM devices. 30 # android devices, but we cannot be so sure about the variety of ARM devices.
31 # So enable it for x86 only for now. 31 # So enable it for x86 only for now.
32 posix_avoid_mmap = is_android && cpu_arch != "x86" 32 posix_avoid_mmap = is_android && cpu_arch != "x86"
33 33
34 # WebSockets and socket stream code are used everywhere except iOS. 34 # WebSockets and socket stream code are used everywhere except iOS.
35 enable_websockets = !is_ios 35 enable_websockets = !is_ios
36 # TODO(brettw) put back to "!is_ios" when v8 is supported in GN build. 36 # TODO(brettw) put back to "!is_ios" when v8 is supported in GN build.
37 use_v8_in_net = false # TODO(brettw)!is_ios 37 use_v8_in_net = false # TODO(brettw)!is_ios
38 enable_built_in_dns = !is_ios 38 enable_built_in_dns = !is_ios
39 39
40 enable_file_support = 1
mef 2014/05/06 15:21:30 is there file support on ios?
mmenke 2014/05/06 18:13:06 I'm not sure, but the file file:// code all appear
41
40 enable_ftp_support = !is_ios 42 enable_ftp_support = !is_ios
41 43
42 config("net_config") { 44 config("net_config") {
43 defines = [] 45 defines = []
44 if (posix_avoid_mmap) { 46 if (posix_avoid_mmap) {
45 defines += [ "POSIX_AVOID_MMAP" ] 47 defines += [ "POSIX_AVOID_MMAP" ]
46 } 48 }
47 } 49 }
48 50
49 # Disables Windows warning about size to int truncations. 51 # Disables Windows warning about size to int truncations.
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 } 103 }
102 104
103 if (is_posix) { 105 if (is_posix) {
104 if (posix_avoid_mmap) { 106 if (posix_avoid_mmap) {
105 sources -= [ "disk_cache/blockfile/mapped_file_posix.cc" ] 107 sources -= [ "disk_cache/blockfile/mapped_file_posix.cc" ]
106 } else { 108 } else {
107 sources -= [ "disk_cache/blockfile/mapped_file_avoid_mmap_posix.cc" ] 109 sources -= [ "disk_cache/blockfile/mapped_file_avoid_mmap_posix.cc" ]
108 } 110 }
109 } 111 }
110 112
113 if (!enable_file_support) {
114 sources -= [
115 'base/directory_lister.cc',
116 'base/directory_lister.h',
117 'url_request/url_request_file_dir_job.cc',
118 'url_request/url_request_file_dir_job.h',
119 'url_request/url_request_file_job.cc',
120 'url_request/url_request_file_job.h',
121 'url_request/file_protocol_handler.cc',
122 'url_request/file_protocol_handler.h',
123 ]
124 }
125
111 if (!enable_ftp_support) { 126 if (!enable_ftp_support) {
112 sources -= [ 127 sources -= [
113 "ftp/ftp_auth_cache.cc", 128 "ftp/ftp_auth_cache.cc",
114 "ftp/ftp_auth_cache.h", 129 "ftp/ftp_auth_cache.h",
115 "ftp/ftp_ctrl_response_buffer.cc", 130 "ftp/ftp_ctrl_response_buffer.cc",
116 "ftp/ftp_ctrl_response_buffer.h", 131 "ftp/ftp_ctrl_response_buffer.h",
117 "ftp/ftp_directory_listing_parser.cc", 132 "ftp/ftp_directory_listing_parser.cc",
118 "ftp/ftp_directory_listing_parser.h", 133 "ftp/ftp_directory_listing_parser.h",
119 "ftp/ftp_directory_listing_parser_ls.cc", 134 "ftp/ftp_directory_listing_parser_ls.cc",
120 "ftp/ftp_directory_listing_parser_ls.h", 135 "ftp/ftp_directory_listing_parser_ls.h",
(...skipping 793 matching lines...) Expand 10 before | Expand all | Expand 10 after
914 929
915 if (is_android || is_linux) { 930 if (is_android || is_linux) {
916 executable("disk_cache_memory_test") { 931 executable("disk_cache_memory_test") {
917 sources = [ "tools/disk_cache_memory_test/disk_cache_memory_test.cc" ] 932 sources = [ "tools/disk_cache_memory_test/disk_cache_memory_test.cc" ]
918 deps = [ 933 deps = [
919 ":net", 934 ":net",
920 "//base", 935 "//base",
921 ] 936 ]
922 } 937 }
923 } 938 }
OLDNEW
« no previous file with comments | « build/common.gypi ('k') | net/net.gyp » ('j') | net/url_request/url_request_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698