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("//crypto/ssl/flags.gni") | 5 import("//crypto/ssl/flags.gni") |
6 import("//tools/grit/grit_rule.gni") | 6 import("//tools/grit/grit_rule.gni") |
7 | 7 |
8 component("net") { | 8 component("net") { |
9 external = true | 9 external = true |
10 sources = [ | 10 sources = [ |
(...skipping 1091 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1102 "ssl/client_cert_store_nss.h", | 1102 "ssl/client_cert_store_nss.h", |
1103 ] | 1103 ] |
1104 deps += [ | 1104 deps += [ |
1105 #"//net/third_party/nss:ssl", | 1105 #"//net/third_party/nss:ssl", |
1106 #"//third_party/nss:nspr", | 1106 #"//third_party/nss:nspr", |
1107 #"//third_party/nss:nss", | 1107 #"//third_party/nss:nss", |
1108 ] | 1108 ] |
1109 } | 1109 } |
1110 | 1110 |
1111 if (is_linux && use_nss) { | 1111 if (is_linux && use_nss) { |
1112 configs += "//third_party/nss:nss_linux_config" | 1112 configs += [ "//third_party/nss:nss_linux_config" ] |
1113 } | 1113 } |
1114 | 1114 |
1115 if (is_chromeos) { | 1115 if (is_chromeos) { |
1116 sources -= [ | 1116 sources -= [ |
1117 "base/network_change_notifier_linux.cc", | 1117 "base/network_change_notifier_linux.cc", |
1118 "base/network_change_notifier_linux.h", | 1118 "base/network_change_notifier_linux.h", |
1119 "proxy/proxy_config_service_linux.cc", | 1119 "proxy/proxy_config_service_linux.cc", |
1120 "proxy/proxy_config_service_linux.h", | 1120 "proxy/proxy_config_service_linux.h", |
1121 ] | 1121 ] |
1122 } | 1122 } |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1183 "socket/ssl_server_socket_openssl.cc", | 1183 "socket/ssl_server_socket_openssl.cc", |
1184 "ssl/openssl_client_key_store.cc", | 1184 "ssl/openssl_client_key_store.cc", |
1185 "ssl/openssl_client_key_store.h", | 1185 "ssl/openssl_client_key_store.h", |
1186 ] | 1186 ] |
1187 } | 1187 } |
1188 | 1188 |
1189 if (is_posix) { | 1189 if (is_posix) { |
1190 posix_avoid_mmap = false # TODO(brettw) should be true on 32-bit Android. | 1190 posix_avoid_mmap = false # TODO(brettw) should be true on 32-bit Android. |
1191 if (posix_avoid_mmap) { | 1191 if (posix_avoid_mmap) { |
1192 defines = [ "POSIX_AVOID_MMAP" ] | 1192 defines = [ "POSIX_AVOID_MMAP" ] |
1193 sources -= "disk_cache/mapped_file_posix.cc" | 1193 sources -= [ "disk_cache/mapped_file_posix.cc" ] |
1194 } else { # !posix_avoid_mmap | 1194 } else { # !posix_avoid_mmap |
1195 sources -= "disk_cache/mapped_file_avoid_mmap_posix.cc" | 1195 sources -= [ "disk_cache/mapped_file_avoid_mmap_posix.cc" ] |
1196 } | 1196 } |
1197 } | 1197 } |
1198 } | 1198 } |
1199 | 1199 |
1200 #grit("net_resources") { | 1200 #grit("net_resources") { |
1201 # external = true | 1201 # external = true |
1202 # source = "base/net_resources.grd" | 1202 # source = "base/net_resources.grd" |
1203 #} | 1203 #} |
1204 | 1204 |
1205 static_library("http_server") { | 1205 static_library("http_server") { |
1206 external = true | 1206 external = true |
1207 sources = [ | 1207 sources = [ |
1208 "server/http_connection.cc", | 1208 "server/http_connection.cc", |
1209 "server/http_connection.h", | 1209 "server/http_connection.h", |
1210 "server/http_server.cc", | 1210 "server/http_server.cc", |
1211 "server/http_server.h", | 1211 "server/http_server.h", |
1212 "server/http_server_request_info.cc", | 1212 "server/http_server_request_info.cc", |
1213 "server/http_server_request_info.h", | 1213 "server/http_server_request_info.h", |
1214 "server/http_server_response_info.cc", | 1214 "server/http_server_response_info.cc", |
1215 "server/http_server_response_info.h", | 1215 "server/http_server_response_info.h", |
1216 "server/web_socket.cc", | 1216 "server/web_socket.cc", |
1217 "server/web_socket.h", | 1217 "server/web_socket.h", |
1218 ] | 1218 ] |
1219 configs += [ "//build/config/compiler:wexit_time_destructors" ] | 1219 configs += [ "//build/config/compiler:wexit_time_destructors" ] |
1220 deps = [ | 1220 deps = [ |
1221 ":net", | 1221 ":net", |
1222 "//base", | 1222 "//base", |
1223 ] | 1223 ] |
1224 } | 1224 } |
OLD | NEW |