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/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("//build/module_args/v8.gni") | 8 import("//build/module_args/v8.gni") |
9 import("//url/config.gni") | 9 import("//url/config.gni") |
10 import("//testing/test.gni") | 10 import("//testing/test.gni") |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
57 defines = [] | 57 defines = [] |
58 if (posix_avoid_mmap) { | 58 if (posix_avoid_mmap) { |
59 defines += [ "POSIX_AVOID_MMAP" ] | 59 defines += [ "POSIX_AVOID_MMAP" ] |
60 } | 60 } |
61 if (disable_file_support) { | 61 if (disable_file_support) { |
62 defines += [ "DISABLE_FILE_SUPPORT" ] | 62 defines += [ "DISABLE_FILE_SUPPORT" ] |
63 } | 63 } |
64 } | 64 } |
65 | 65 |
66 component("net") { | 66 component("net") { |
67 sources = | 67 sources = gypi_values.net_nacl_common_sources |
68 gypi_values.net_nacl_common_sources + gypi_values.net_non_nacl_sources | |
69 | 68 |
70 cflags = [] | 69 cflags = [] |
71 defines = [ | 70 defines = [ |
72 # TODO(GYP) Note that the GYP file supports linux_link_kerberos (defaults to | 71 # TODO(GYP) Note that the GYP file supports linux_link_kerberos (defaults to |
73 # 0) which implies that we run pkg_config on kerberos and link to that | 72 # 0) which implies that we run pkg_config on kerberos and link to that |
74 # rather than setting this define which will dynamically open it. That | 73 # rather than setting this define which will dynamically open it. That |
75 # doesn't seem to be set in the regular builds, so we're skipping this | 74 # doesn't seem to be set in the regular builds, so we're skipping this |
76 # capability here. | 75 # capability here. |
77 "DLOPEN_KERBEROS", | 76 "DLOPEN_KERBEROS", |
78 "NET_IMPLEMENTATION", | 77 "NET_IMPLEMENTATION", |
79 ] | 78 ] |
80 | 79 |
81 configs += [ | 80 configs += [ |
82 "//build/config:precompiled_headers", | 81 "//build/config:precompiled_headers", |
83 | 82 |
84 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 83 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
85 "//build/config/compiler:no_size_t_to_int_warning", | 84 "//build/config/compiler:no_size_t_to_int_warning", |
86 ] | 85 ] |
87 public_configs = [ ":net_config" ] | 86 public_configs = [ ":net_config" ] |
88 include_dirs = [] | 87 include_dirs = [] |
89 | 88 |
90 public_deps = [ | 89 public_deps = [ |
91 ":net_quic_proto", | 90 ":net_quic_proto", |
92 "//crypto", | 91 "//crypto", |
93 "//crypto:platform", | 92 "//crypto:platform", |
94 "//url", | 93 "//url", |
95 ] | 94 ] |
95 | |
96 deps = [ | 96 deps = [ |
97 ":net_resources", | |
98 "//base", | 97 "//base", |
99 "//base:prefs", | |
100 "//base/third_party/dynamic_annotations", | |
101 "//net/base/registry_controlled_domains", | |
102 "//sdch", | |
103 "//third_party/protobuf:protobuf_lite", | 98 "//third_party/protobuf:protobuf_lite", |
104 "//third_party/zlib", | |
105 "//url", | |
106 ] | 99 ] |
107 | 100 |
108 if (use_kerberos) { | 101 if (!is_nacl) { |
109 defines += [ "USE_KERBEROS" ] | 102 sources += gypi_values.net_non_nacl_sources |
110 if (is_android) { | 103 |
111 include_dirs += [ "/usr/include/kerberosV" ] | 104 deps += [ |
112 } | 105 ":net_resources", |
113 } else { | 106 "//base:prefs", |
114 sources -= [ | 107 "//base/third_party/dynamic_annotations", |
115 "http/http_auth_gssapi_posix.cc", | 108 "//net/base/registry_controlled_domains", |
116 "http/http_auth_gssapi_posix.h", | 109 "//sdch", |
117 "http/http_auth_handler_negotiate.cc", | 110 "//third_party/zlib", |
118 "http/http_auth_handler_negotiate.h", | 111 "//url", |
davidben
2015/08/31 23:11:06
I think you want to just omit //url. Judging from
Sergey Ulanov
2015/09/01 00:06:46
this dep is added in !is_nacl only.
davidben
2015/09/01 18:06:47
It's also added for is_nacl in line 93. And in net
| |
119 ] | 112 ] |
120 } | 113 |
121 | 114 if (use_kerberos) { |
122 if (is_posix) { | 115 defines += [ "USE_KERBEROS" ] |
123 if (posix_avoid_mmap) { | 116 if (is_android) { |
124 sources -= [ "disk_cache/blockfile/mapped_file_posix.cc" ] | 117 include_dirs += [ "/usr/include/kerberosV" ] |
118 } | |
125 } else { | 119 } else { |
126 sources -= [ "disk_cache/blockfile/mapped_file_avoid_mmap_posix.cc" ] | 120 sources -= [ |
127 } | 121 "http/http_auth_gssapi_posix.cc", |
128 } | 122 "http/http_auth_gssapi_posix.h", |
129 | 123 "http/http_auth_handler_negotiate.cc", |
130 if (disable_file_support) { | 124 "http/http_auth_handler_negotiate.h", |
131 sources -= [ | 125 ] |
132 "base/directory_lister.cc", | 126 } |
133 "base/directory_lister.h", | 127 |
134 "url_request/file_protocol_handler.cc", | 128 if (is_posix) { |
135 "url_request/file_protocol_handler.h", | 129 if (posix_avoid_mmap) { |
136 "url_request/url_request_file_dir_job.cc", | 130 sources -= [ "disk_cache/blockfile/mapped_file_posix.cc" ] |
137 "url_request/url_request_file_dir_job.h", | 131 } else { |
138 "url_request/url_request_file_job.cc", | 132 sources -= [ "disk_cache/blockfile/mapped_file_avoid_mmap_posix.cc" ] |
139 "url_request/url_request_file_job.h", | 133 } |
140 ] | 134 } |
141 } | 135 |
142 | 136 if (disable_file_support) { |
143 if (disable_ftp_support) { | 137 sources -= [ |
144 sources -= [ | 138 "base/directory_lister.cc", |
145 "ftp/ftp_auth_cache.cc", | 139 "base/directory_lister.h", |
146 "ftp/ftp_auth_cache.h", | 140 "url_request/file_protocol_handler.cc", |
147 "ftp/ftp_ctrl_response_buffer.cc", | 141 "url_request/file_protocol_handler.h", |
148 "ftp/ftp_ctrl_response_buffer.h", | 142 "url_request/url_request_file_dir_job.cc", |
149 "ftp/ftp_directory_listing_parser.cc", | 143 "url_request/url_request_file_dir_job.h", |
150 "ftp/ftp_directory_listing_parser.h", | 144 "url_request/url_request_file_job.cc", |
151 "ftp/ftp_directory_listing_parser_ls.cc", | 145 "url_request/url_request_file_job.h", |
152 "ftp/ftp_directory_listing_parser_ls.h", | 146 ] |
153 "ftp/ftp_directory_listing_parser_netware.cc", | 147 } |
154 "ftp/ftp_directory_listing_parser_netware.h", | 148 |
155 "ftp/ftp_directory_listing_parser_os2.cc", | 149 if (disable_ftp_support) { |
156 "ftp/ftp_directory_listing_parser_os2.h", | 150 sources -= [ |
157 "ftp/ftp_directory_listing_parser_vms.cc", | 151 "ftp/ftp_auth_cache.cc", |
158 "ftp/ftp_directory_listing_parser_vms.h", | 152 "ftp/ftp_auth_cache.h", |
159 "ftp/ftp_directory_listing_parser_windows.cc", | 153 "ftp/ftp_ctrl_response_buffer.cc", |
160 "ftp/ftp_directory_listing_parser_windows.h", | 154 "ftp/ftp_ctrl_response_buffer.h", |
161 "ftp/ftp_network_layer.cc", | 155 "ftp/ftp_directory_listing_parser.cc", |
162 "ftp/ftp_network_layer.h", | 156 "ftp/ftp_directory_listing_parser.h", |
163 "ftp/ftp_network_session.cc", | 157 "ftp/ftp_directory_listing_parser_ls.cc", |
164 "ftp/ftp_network_session.h", | 158 "ftp/ftp_directory_listing_parser_ls.h", |
165 "ftp/ftp_network_transaction.cc", | 159 "ftp/ftp_directory_listing_parser_netware.cc", |
166 "ftp/ftp_network_transaction.h", | 160 "ftp/ftp_directory_listing_parser_netware.h", |
167 "ftp/ftp_request_info.h", | 161 "ftp/ftp_directory_listing_parser_os2.cc", |
168 "ftp/ftp_response_info.cc", | 162 "ftp/ftp_directory_listing_parser_os2.h", |
169 "ftp/ftp_response_info.h", | 163 "ftp/ftp_directory_listing_parser_vms.cc", |
170 "ftp/ftp_server_type_histograms.cc", | 164 "ftp/ftp_directory_listing_parser_vms.h", |
171 "ftp/ftp_server_type_histograms.h", | 165 "ftp/ftp_directory_listing_parser_windows.cc", |
172 "ftp/ftp_transaction.h", | 166 "ftp/ftp_directory_listing_parser_windows.h", |
173 "ftp/ftp_transaction_factory.h", | 167 "ftp/ftp_network_layer.cc", |
174 "ftp/ftp_util.cc", | 168 "ftp/ftp_network_layer.h", |
175 "ftp/ftp_util.h", | 169 "ftp/ftp_network_session.cc", |
176 "url_request/ftp_protocol_handler.cc", | 170 "ftp/ftp_network_session.h", |
177 "url_request/ftp_protocol_handler.h", | 171 "ftp/ftp_network_transaction.cc", |
178 "url_request/url_request_ftp_job.cc", | 172 "ftp/ftp_network_transaction.h", |
179 "url_request/url_request_ftp_job.h", | 173 "ftp/ftp_request_info.h", |
180 ] | 174 "ftp/ftp_response_info.cc", |
181 } | 175 "ftp/ftp_response_info.h", |
182 | 176 "ftp/ftp_server_type_histograms.cc", |
183 if (enable_built_in_dns) { | 177 "ftp/ftp_server_type_histograms.h", |
184 defines += [ "ENABLE_BUILT_IN_DNS" ] | 178 "ftp/ftp_transaction.h", |
185 } else { | 179 "ftp/ftp_transaction_factory.h", |
186 sources -= [ | 180 "ftp/ftp_util.cc", |
187 "dns/address_sorter_posix.cc", | 181 "ftp/ftp_util.h", |
188 "dns/address_sorter_posix.h", | 182 "url_request/ftp_protocol_handler.cc", |
189 "dns/dns_client.cc", | 183 "url_request/ftp_protocol_handler.h", |
190 ] | 184 "url_request/url_request_ftp_job.cc", |
191 } | 185 "url_request/url_request_ftp_job.h", |
192 | 186 ] |
193 if (use_openssl) { | 187 } |
194 sources -= [ | 188 |
195 "base/nss_memio.c", | 189 if (enable_built_in_dns) { |
196 "base/nss_memio.h", | 190 defines += [ "ENABLE_BUILT_IN_DNS" ] |
197 "cert/ct_log_verifier_nss.cc", | 191 } else { |
198 "cert/ct_objects_extractor_nss.cc", | 192 sources -= [ |
199 "cert/jwk_serializer_nss.cc", | 193 "dns/address_sorter_posix.cc", |
200 "cert/scoped_nss_types.h", | 194 "dns/address_sorter_posix.h", |
201 "cert/x509_util_nss.cc", | 195 "dns/dns_client.cc", |
202 "quic/crypto/aead_base_decrypter_nss.cc", | 196 ] |
203 "quic/crypto/aead_base_encrypter_nss.cc", | 197 } |
204 "quic/crypto/aes_128_gcm_12_decrypter_nss.cc", | 198 |
205 "quic/crypto/aes_128_gcm_12_encrypter_nss.cc", | 199 if (use_openssl) { |
206 "quic/crypto/chacha20_poly1305_decrypter_nss.cc", | 200 sources -= [ |
207 "quic/crypto/chacha20_poly1305_encrypter_nss.cc", | 201 "base/nss_memio.c", |
208 "quic/crypto/channel_id_nss.cc", | 202 "base/nss_memio.h", |
209 "quic/crypto/p256_key_exchange_nss.cc", | 203 "cert/ct_log_verifier_nss.cc", |
210 "socket/nss_ssl_util.cc", | 204 "cert/ct_objects_extractor_nss.cc", |
211 "socket/nss_ssl_util.h", | 205 "cert/jwk_serializer_nss.cc", |
212 "socket/ssl_client_socket_nss.cc", | 206 "cert/scoped_nss_types.h", |
213 "socket/ssl_client_socket_nss.h", | 207 "cert/x509_util_nss.cc", |
214 "socket/ssl_server_socket_nss.cc", | 208 "quic/crypto/aead_base_decrypter_nss.cc", |
215 "socket/ssl_server_socket_nss.h", | 209 "quic/crypto/aead_base_encrypter_nss.cc", |
216 ] | 210 "quic/crypto/aes_128_gcm_12_decrypter_nss.cc", |
217 if (is_ios) { | 211 "quic/crypto/aes_128_gcm_12_encrypter_nss.cc", |
218 # Always removed for !ios below. | 212 "quic/crypto/chacha20_poly1305_decrypter_nss.cc", |
219 sources -= [ | 213 "quic/crypto/chacha20_poly1305_encrypter_nss.cc", |
220 "cert/cert_verify_proc_nss.cc", | 214 "quic/crypto/channel_id_nss.cc", |
221 "cert/cert_verify_proc_nss.h", | 215 "quic/crypto/p256_key_exchange_nss.cc", |
222 ] | 216 "socket/nss_ssl_util.cc", |
223 } | 217 "socket/nss_ssl_util.h", |
224 if (is_win) { | 218 "socket/ssl_client_socket_nss.cc", |
225 sources -= [ "cert/sha256_legacy_support_nss_win.cc" ] | 219 "socket/ssl_client_socket_nss.h", |
226 } | 220 "socket/ssl_server_socket_nss.cc", |
227 if (!use_nss_certs && !is_ios) { | 221 "socket/ssl_server_socket_nss.h", |
228 sources -= [ "cert/x509_util_nss.h" ] | 222 ] |
229 } | 223 if (is_ios) { |
230 } else { | 224 # Always removed for !ios below. |
231 sources -= [ | 225 sources -= [ |
232 "cert/ct_log_verifier_openssl.cc", | 226 "cert/cert_verify_proc_nss.cc", |
233 "cert/ct_objects_extractor_openssl.cc", | 227 "cert/cert_verify_proc_nss.h", |
234 "cert/jwk_serializer_openssl.cc", | 228 ] |
235 "cert/x509_util_openssl.cc", | 229 } |
236 "cert/x509_util_openssl.h", | 230 if (is_win) { |
237 "quic/crypto/aead_base_decrypter_openssl.cc", | 231 sources -= [ "cert/sha256_legacy_support_nss_win.cc" ] |
238 "quic/crypto/aead_base_encrypter_openssl.cc", | 232 } |
239 "quic/crypto/aes_128_gcm_12_decrypter_openssl.cc", | 233 if (!use_nss_certs && !is_ios) { |
240 "quic/crypto/aes_128_gcm_12_encrypter_openssl.cc", | 234 sources -= [ "cert/x509_util_nss.h" ] |
241 "quic/crypto/chacha20_poly1305_decrypter_openssl.cc", | 235 } |
242 "quic/crypto/chacha20_poly1305_encrypter_openssl.cc", | 236 } else { |
243 "quic/crypto/channel_id_openssl.cc", | 237 sources -= [ |
244 "quic/crypto/p256_key_exchange_openssl.cc", | 238 "cert/ct_log_verifier_openssl.cc", |
245 "quic/crypto/scoped_evp_aead_ctx.cc", | 239 "cert/ct_objects_extractor_openssl.cc", |
246 "quic/crypto/scoped_evp_aead_ctx.h", | 240 "cert/jwk_serializer_openssl.cc", |
247 "socket/ssl_client_socket_openssl.cc", | 241 "cert/x509_util_openssl.cc", |
248 "socket/ssl_client_socket_openssl.h", | 242 "cert/x509_util_openssl.h", |
249 "socket/ssl_server_socket_openssl.cc", | 243 "quic/crypto/aead_base_decrypter_openssl.cc", |
250 "socket/ssl_server_socket_openssl.h", | 244 "quic/crypto/aead_base_encrypter_openssl.cc", |
251 "ssl/openssl_ssl_util.cc", | 245 "quic/crypto/aes_128_gcm_12_decrypter_openssl.cc", |
252 "ssl/openssl_ssl_util.h", | 246 "quic/crypto/aes_128_gcm_12_encrypter_openssl.cc", |
253 "ssl/ssl_client_session_cache_openssl.cc", | 247 "quic/crypto/chacha20_poly1305_decrypter_openssl.cc", |
254 "ssl/ssl_client_session_cache_openssl.h", | 248 "quic/crypto/chacha20_poly1305_encrypter_openssl.cc", |
255 "ssl/ssl_platform_key.h", | 249 "quic/crypto/channel_id_openssl.cc", |
256 "ssl/threaded_ssl_private_key.cc", | 250 "quic/crypto/p256_key_exchange_openssl.cc", |
257 "ssl/threaded_ssl_private_key.h", | 251 "quic/crypto/scoped_evp_aead_ctx.cc", |
258 ] | 252 "quic/crypto/scoped_evp_aead_ctx.h", |
259 if (is_mac) { | 253 "socket/ssl_client_socket_openssl.cc", |
260 sources -= [ "ssl/ssl_platform_key_mac.cc" ] | 254 "socket/ssl_client_socket_openssl.h", |
261 } | 255 "socket/ssl_server_socket_openssl.cc", |
262 if (is_win) { | 256 "socket/ssl_server_socket_openssl.h", |
263 sources -= [ | 257 "ssl/openssl_ssl_util.cc", |
264 "cert/sha256_legacy_support_openssl_win.cc", | 258 "ssl/openssl_ssl_util.h", |
265 "ssl/ssl_platform_key_win.cc", | 259 "ssl/ssl_client_session_cache_openssl.cc", |
266 ] | 260 "ssl/ssl_client_session_cache_openssl.h", |
267 } | 261 "ssl/ssl_platform_key.h", |
268 if (use_nss_certs) { | 262 "ssl/threaded_ssl_private_key.cc", |
263 "ssl/threaded_ssl_private_key.h", | |
264 ] | |
265 if (is_mac) { | |
266 sources -= [ "ssl/ssl_platform_key_mac.cc" ] | |
267 } | |
268 if (is_win) { | |
269 sources -= [ | |
270 "cert/sha256_legacy_support_openssl_win.cc", | |
271 "ssl/ssl_platform_key_win.cc", | |
272 ] | |
273 } | |
274 if (use_nss_certs) { | |
275 sources -= [ | |
276 "ssl/client_key_store.cc", | |
277 "ssl/client_key_store.h", | |
278 "ssl/ssl_platform_key_nss.cc", | |
279 ] | |
280 } | |
281 } | |
282 | |
283 if (!use_openssl_certs) { | |
284 sources -= [ | |
285 "base/crypto_module_openssl.cc", | |
286 "base/keygen_handler_openssl.cc", | |
287 "cert/cert_verify_proc_openssl.cc", | |
288 "cert/cert_verify_proc_openssl.h", | |
289 "cert/test_root_certs_openssl.cc", | |
davidben
2015/08/31 23:11:06
What happened to:
base/openssl_private_key_store.
Sergey Ulanov
2015/09/01 00:06:46
Yes, these files should still be in this list - re
| |
290 ] | |
291 if (is_android) { | |
292 sources -= [ "base/openssl_private_key_store_android.cc" ] | |
293 } | |
294 } else { | |
295 if (is_android) { | |
296 # Android doesn't use these even when using OpenSSL. | |
297 sources -= [ | |
298 "cert/cert_verify_proc_openssl.cc", | |
299 "cert/test_root_certs_openssl.cc", | |
davidben
2015/08/31 23:11:06
What happened to:
base/openssl_private_key_store_
Sergey Ulanov
2015/09/01 00:06:46
They are back now.
| |
300 ] | |
301 } | |
302 | |
303 # TODO(davidben): Remove these exclusions when use_openssl_certs builds | |
304 # also use the SSLPrivateKey machinery. | |
305 sources -= [ | |
306 "ssl/threaded_ssl_private_key.cc", | |
307 "ssl/threaded_ssl_private_key.h", | |
308 ] | |
309 } | |
310 | |
311 if (use_glib && !is_chromeos) { | |
312 configs += [ "//build/config/linux:gconf" ] | |
313 deps += [ "//build/config/linux:gio" ] | |
314 } | |
315 | |
316 if (is_linux) { | |
317 configs += [ "//build/config/linux:libresolv" ] | |
318 } | |
319 | |
320 if (!use_nss_certs) { | |
321 sources -= [ | |
322 "base/crypto_module_nss.cc", | |
323 "base/keygen_handler_nss.cc", | |
324 "cert/cert_database_nss.cc", | |
325 "cert/nss_cert_database.cc", | |
326 "cert/nss_cert_database.h", | |
327 "cert/x509_certificate_nss.cc", | |
328 "ssl/client_cert_store_nss.cc", | |
329 "ssl/client_cert_store_nss.h", | |
330 "third_party/mozilla_security_manager/nsKeygenHandler.cpp", | |
331 "third_party/mozilla_security_manager/nsKeygenHandler.h", | |
332 "third_party/mozilla_security_manager/nsNSSCertificateDB.cpp", | |
333 "third_party/mozilla_security_manager/nsNSSCertificateDB.h", | |
334 "third_party/mozilla_security_manager/nsPKCS12Blob.cpp", | |
335 "third_party/mozilla_security_manager/nsPKCS12Blob.h", | |
336 ] | |
337 if (!is_ios) { | |
338 # These files are part of the partial implementation of NSS on iOS so | |
339 # keep them in that case (even though use_nss_certs is not set). | |
340 sources -= [ | |
341 "cert/cert_verify_proc_nss.cc", | |
342 "cert/cert_verify_proc_nss.h", | |
343 "cert/test_root_certs_nss.cc", | |
344 "cert/x509_util_nss_certs.cc", | |
345 "cert_net/nss_ocsp.cc", | |
346 "cert_net/nss_ocsp.h", | |
347 ] | |
348 } | |
349 if (is_chromeos) { | |
350 # These were already removed on non-ChromeOS. | |
351 sources -= [ | |
352 "cert/nss_cert_database_chromeos.cc", | |
353 "cert/nss_cert_database_chromeos.h", | |
354 "cert/nss_profile_filter_chromeos.cc", | |
355 "cert/nss_profile_filter_chromeos.h", | |
356 ] | |
357 } | |
269 sources -= [ | 358 sources -= [ |
270 "ssl/client_key_store.cc", | 359 "ssl/client_key_store.cc", |
271 "ssl/client_key_store.h", | 360 "ssl/client_key_store.h", |
272 "ssl/ssl_platform_key_nss.cc", | 361 "ssl/ssl_platform_key_nss.cc", |
273 ] | 362 ] |
274 } | 363 } else if (use_openssl) { |
275 } | 364 # client_cert_store_nss.c requires NSS_CmpCertChainWCANames from NSS's |
276 | 365 # libssl, but our bundled copy is not built in OpenSSL ports. Pull that |
277 if (!use_openssl_certs) { | 366 # file in directly. |
278 sources -= [ | 367 sources += [ "third_party/nss/ssl/cmpcert.c" ] |
279 "base/crypto_module_openssl.cc", | 368 } |
280 "base/keygen_handler_openssl.cc", | 369 |
281 "base/openssl_private_key_store.h", | 370 if (!enable_websockets) { |
282 "base/openssl_private_key_store_memory.cc", | 371 sources -= [ |
283 "cert/cert_database_openssl.cc", | 372 "websockets/websocket_basic_handshake_stream.cc", |
284 "cert/cert_verify_proc_openssl.cc", | 373 "websockets/websocket_basic_handshake_stream.h", |
285 "cert/cert_verify_proc_openssl.h", | 374 "websockets/websocket_basic_stream.cc", |
286 "cert/test_root_certs_openssl.cc", | 375 "websockets/websocket_basic_stream.h", |
287 "cert/x509_certificate_openssl.cc", | 376 "websockets/websocket_channel.cc", |
288 "ssl/openssl_client_key_store.cc", | 377 "websockets/websocket_channel.h", |
289 "ssl/openssl_client_key_store.h", | 378 "websockets/websocket_deflate_predictor.h", |
290 ] | 379 "websockets/websocket_deflate_predictor_impl.cc", |
380 "websockets/websocket_deflate_predictor_impl.h", | |
381 "websockets/websocket_deflate_stream.cc", | |
382 "websockets/websocket_deflate_stream.h", | |
383 "websockets/websocket_deflater.cc", | |
384 "websockets/websocket_deflater.h", | |
385 "websockets/websocket_errors.cc", | |
386 "websockets/websocket_errors.h", | |
387 "websockets/websocket_extension.cc", | |
388 "websockets/websocket_extension.h", | |
389 "websockets/websocket_extension_parser.cc", | |
390 "websockets/websocket_extension_parser.h", | |
391 "websockets/websocket_frame.cc", | |
392 "websockets/websocket_frame.h", | |
393 "websockets/websocket_frame_parser.cc", | |
394 "websockets/websocket_frame_parser.h", | |
395 "websockets/websocket_handshake_challenge.cc", | |
396 "websockets/websocket_handshake_challenge.h", | |
397 "websockets/websocket_handshake_constants.cc", | |
398 "websockets/websocket_handshake_constants.h", | |
399 "websockets/websocket_handshake_request_info.cc", | |
400 "websockets/websocket_handshake_request_info.h", | |
401 "websockets/websocket_handshake_response_info.cc", | |
402 "websockets/websocket_handshake_response_info.h", | |
403 "websockets/websocket_handshake_stream_base.h", | |
404 "websockets/websocket_handshake_stream_create_helper.cc", | |
405 "websockets/websocket_handshake_stream_create_helper.h", | |
406 "websockets/websocket_inflater.cc", | |
407 "websockets/websocket_inflater.h", | |
408 "websockets/websocket_mux.h", | |
409 "websockets/websocket_stream.cc", | |
410 "websockets/websocket_stream.h", | |
411 ] | |
412 } | |
413 | |
414 if (!enable_mdns) { | |
415 sources -= [ | |
416 "dns/mdns_cache.cc", | |
417 "dns/mdns_cache.h", | |
418 "dns/mdns_client.cc", | |
419 "dns/mdns_client.h", | |
420 "dns/mdns_client_impl.cc", | |
421 "dns/mdns_client_impl.h", | |
422 "dns/record_parsed.cc", | |
423 "dns/record_parsed.h", | |
424 "dns/record_rdata.cc", | |
425 "dns/record_rdata.h", | |
426 ] | |
427 } | |
428 | |
429 if (is_win) { | |
430 sources -= [ | |
431 "http/http_auth_handler_ntlm_portable.cc", | |
432 "socket/socket_libevent.cc", | |
433 "socket/socket_libevent.h", | |
434 "socket/tcp_socket_libevent.cc", | |
435 "socket/tcp_socket_libevent.h", | |
436 "udp/udp_socket_libevent.cc", | |
437 "udp/udp_socket_libevent.h", | |
438 ] | |
439 } else { # !is_win | |
440 sources -= [ | |
441 "base/winsock_init.cc", | |
442 "base/winsock_init.h", | |
443 "base/winsock_util.cc", | |
444 "base/winsock_util.h", | |
445 "proxy/proxy_resolver_winhttp.cc", | |
446 "proxy/proxy_resolver_winhttp.h", | |
447 ] | |
448 } | |
449 | |
450 if (is_mac) { | |
451 libs = [ | |
452 "Foundation.framework", | |
453 "Security.framework", | |
454 "SystemConfiguration.framework", | |
455 "resolv", | |
456 ] | |
457 } | |
458 | |
459 if (is_ios) { | |
460 # Add back some sources that were otherwise filtered out. iOS needs some | |
461 # Mac files. | |
462 set_sources_assignment_filter([]) | |
463 sources += [ | |
464 "base/mac/url_conversions.h", | |
465 "base/mac/url_conversions.mm", | |
466 "base/network_change_notifier_mac.cc", | |
467 "base/network_config_watcher_mac.cc", | |
468 "base/network_interfaces_mac.cc", | |
469 "base/network_interfaces_mac.h", | |
470 "base/platform_mime_util_mac.mm", | |
471 "proxy/proxy_resolver_mac.cc", | |
472 "proxy/proxy_server_mac.cc", | |
473 ] | |
474 set_sources_assignment_filter(sources_assignment_filter) | |
475 | |
476 sources -= [ "disk_cache/blockfile/file_posix.cc" ] | |
477 libs = [ | |
478 "CFNetwork.framework", | |
479 "MobileCoreServices.framework", | |
480 "Security.framework", | |
481 "SystemConfiguration.framework", | |
482 "resolv", | |
483 ] | |
484 | |
485 deps += [ | |
486 "//third_party/nss:nspr", | |
487 "//third_party/nss", | |
488 "//net/third_party/nss/ssl:libssl", | |
489 ] | |
490 } | |
491 | |
492 if (is_ios || is_mac) { | |
493 sources += gypi_values.net_base_mac_ios_sources | |
494 } | |
495 | |
291 if (is_android) { | 496 if (is_android) { |
292 sources -= [ "base/openssl_private_key_store_android.cc" ] | 497 # Add some Linux sources that were excluded by the filter, but which |
293 } | 498 # are needed. |
294 } else { | 499 set_sources_assignment_filter([]) |
295 if (is_android) { | 500 sources += [ |
296 # Android doesn't use these even when using OpenSSL. | 501 "base/address_tracker_linux.cc", |
297 sources -= [ | 502 "base/address_tracker_linux.h", |
298 "base/openssl_private_key_store_memory.cc", | 503 "base/network_interfaces_linux.cc", |
299 "cert/cert_database_openssl.cc", | 504 "base/network_interfaces_linux.h", |
300 "cert/cert_verify_proc_openssl.cc", | 505 "base/platform_mime_util_linux.cc", |
301 "cert/test_root_certs_openssl.cc", | 506 ] |
302 ] | 507 set_sources_assignment_filter(sources_assignment_filter) |
303 } | 508 deps += [ ":net_jni_headers" ] |
304 | 509 } |
305 # TODO(davidben): Remove these exclusions when use_openssl_certs builds also | 510 |
306 # use the SSLPrivateKey machinery. | 511 if (use_icu_alternatives_on_android) { |
307 sources -= [ | 512 sources += [ |
308 "ssl/threaded_ssl_private_key.cc", | 513 "base/net_string_util_icu_alternatives_android.cc", |
309 "ssl/threaded_ssl_private_key.h", | 514 "base/net_string_util_icu_alternatives_android.h", |
310 ] | 515 ] |
311 } | 516 } else { |
312 | 517 deps += [ |
313 if (use_glib && !is_chromeos) { | 518 "//base:i18n", |
314 configs += [ "//build/config/linux:gconf" ] | 519 "//third_party/icu", |
315 deps += [ "//build/config/linux:gio" ] | 520 ] |
316 } | 521 sources += [ |
317 | 522 "base/filename_util_icu.cc", |
318 if (is_linux) { | 523 "base/net_string_util_icu.cc", |
319 configs += [ "//build/config/linux:libresolv" ] | 524 "base/net_util_icu.cc", |
320 } | 525 ] |
321 | 526 } |
322 if (!use_nss_certs) { | 527 } else { # is_nacl |
323 sources -= [ | 528 public_deps += [ "//native_client_sdk/src/libraries/nacl_io" ] |
324 "base/crypto_module_nss.cc", | |
325 "base/keygen_handler_nss.cc", | |
326 "cert/cert_database_nss.cc", | |
327 "cert/nss_cert_database.cc", | |
328 "cert/nss_cert_database.h", | |
329 "cert/x509_certificate_nss.cc", | |
330 "ssl/client_cert_store_nss.cc", | |
331 "ssl/client_cert_store_nss.h", | |
332 "third_party/mozilla_security_manager/nsKeygenHandler.cpp", | |
333 "third_party/mozilla_security_manager/nsKeygenHandler.h", | |
334 "third_party/mozilla_security_manager/nsNSSCertificateDB.cpp", | |
335 "third_party/mozilla_security_manager/nsNSSCertificateDB.h", | |
336 "third_party/mozilla_security_manager/nsPKCS12Blob.cpp", | |
337 "third_party/mozilla_security_manager/nsPKCS12Blob.h", | |
338 ] | |
339 if (!is_ios) { | |
340 # These files are part of the partial implementation of NSS on iOS so | |
341 # keep them in that case (even though use_nss_certs is not set). | |
342 sources -= [ | |
343 "cert/cert_verify_proc_nss.cc", | |
344 "cert/cert_verify_proc_nss.h", | |
345 "cert/test_root_certs_nss.cc", | |
346 "cert/x509_util_nss_certs.cc", | |
347 "cert_net/nss_ocsp.cc", | |
348 "cert_net/nss_ocsp.h", | |
349 ] | |
350 } | |
351 if (is_chromeos) { | |
352 # These were already removed on non-ChromeOS. | |
353 sources -= [ | |
354 "cert/nss_cert_database_chromeos.cc", | |
355 "cert/nss_cert_database_chromeos.h", | |
356 "cert/nss_profile_filter_chromeos.cc", | |
357 "cert/nss_profile_filter_chromeos.h", | |
358 ] | |
359 } | |
360 sources -= [ | |
361 "ssl/client_key_store.cc", | |
362 "ssl/client_key_store.h", | |
363 "ssl/ssl_platform_key_nss.cc", | |
364 ] | |
365 } else if (use_openssl) { | |
366 # client_cert_store_nss.c requires NSS_CmpCertChainWCANames from NSS's | |
367 # libssl, but our bundled copy is not built in OpenSSL ports. Pull that file | |
368 # in directly. | |
369 sources += [ "third_party/nss/ssl/cmpcert.c" ] | |
370 } | |
371 | |
372 if (!enable_websockets) { | |
373 sources -= [ | |
374 "websockets/websocket_basic_handshake_stream.cc", | |
375 "websockets/websocket_basic_handshake_stream.h", | |
376 "websockets/websocket_basic_stream.cc", | |
377 "websockets/websocket_basic_stream.h", | |
378 "websockets/websocket_channel.cc", | |
379 "websockets/websocket_channel.h", | |
380 "websockets/websocket_deflate_predictor.h", | |
381 "websockets/websocket_deflate_predictor_impl.cc", | |
382 "websockets/websocket_deflate_predictor_impl.h", | |
383 "websockets/websocket_deflate_stream.cc", | |
384 "websockets/websocket_deflate_stream.h", | |
385 "websockets/websocket_deflater.cc", | |
386 "websockets/websocket_deflater.h", | |
387 "websockets/websocket_errors.cc", | |
388 "websockets/websocket_errors.h", | |
389 "websockets/websocket_extension.cc", | |
390 "websockets/websocket_extension.h", | |
391 "websockets/websocket_extension_parser.cc", | |
392 "websockets/websocket_extension_parser.h", | |
393 "websockets/websocket_frame.cc", | |
394 "websockets/websocket_frame.h", | |
395 "websockets/websocket_frame_parser.cc", | |
396 "websockets/websocket_frame_parser.h", | |
397 "websockets/websocket_handshake_challenge.cc", | |
398 "websockets/websocket_handshake_challenge.h", | |
399 "websockets/websocket_handshake_constants.cc", | |
400 "websockets/websocket_handshake_constants.h", | |
401 "websockets/websocket_handshake_request_info.cc", | |
402 "websockets/websocket_handshake_request_info.h", | |
403 "websockets/websocket_handshake_response_info.cc", | |
404 "websockets/websocket_handshake_response_info.h", | |
405 "websockets/websocket_handshake_stream_base.h", | |
406 "websockets/websocket_handshake_stream_create_helper.cc", | |
407 "websockets/websocket_handshake_stream_create_helper.h", | |
408 "websockets/websocket_inflater.cc", | |
409 "websockets/websocket_inflater.h", | |
410 "websockets/websocket_mux.h", | |
411 "websockets/websocket_stream.cc", | |
412 "websockets/websocket_stream.h", | |
413 ] | |
414 } | |
415 | |
416 if (!enable_mdns) { | |
417 sources -= [ | |
418 "dns/mdns_cache.cc", | |
419 "dns/mdns_cache.h", | |
420 "dns/mdns_client.cc", | |
421 "dns/mdns_client.h", | |
422 "dns/mdns_client_impl.cc", | |
423 "dns/mdns_client_impl.h", | |
424 "dns/record_parsed.cc", | |
425 "dns/record_parsed.h", | |
426 "dns/record_rdata.cc", | |
427 "dns/record_rdata.h", | |
428 ] | |
429 } | |
430 | |
431 if (is_win) { | |
432 sources -= [ | |
433 "http/http_auth_handler_ntlm_portable.cc", | |
434 "socket/socket_libevent.cc", | |
435 "socket/socket_libevent.h", | |
436 "socket/tcp_socket_libevent.cc", | |
437 "socket/tcp_socket_libevent.h", | |
438 "udp/udp_socket_libevent.cc", | |
439 "udp/udp_socket_libevent.h", | |
440 ] | |
441 } else { # !is_win | |
442 sources -= [ | |
443 "base/winsock_init.cc", | |
444 "base/winsock_init.h", | |
445 "base/winsock_util.cc", | |
446 "base/winsock_util.h", | |
447 "proxy/proxy_resolver_winhttp.cc", | |
448 "proxy/proxy_resolver_winhttp.h", | |
449 ] | |
450 } | |
451 | |
452 if (is_mac) { | |
453 libs = [ | |
454 "Foundation.framework", | |
455 "Security.framework", | |
456 "SystemConfiguration.framework", | |
457 "resolv", | |
458 ] | |
459 } | |
460 | |
461 if (is_ios) { | |
462 # Add back some sources that were otherwise filtered out. iOS needs some Mac | |
463 # files. | |
464 set_sources_assignment_filter([]) | |
465 sources += [ | |
466 "base/mac/url_conversions.h", | |
467 "base/mac/url_conversions.mm", | |
468 "base/network_change_notifier_mac.cc", | |
469 "base/network_config_watcher_mac.cc", | |
470 "base/network_interfaces_mac.cc", | |
471 "base/network_interfaces_mac.h", | |
472 "base/platform_mime_util_mac.mm", | |
473 "proxy/proxy_resolver_mac.cc", | |
474 "proxy/proxy_server_mac.cc", | |
475 ] | |
476 set_sources_assignment_filter(sources_assignment_filter) | |
477 | |
478 sources -= [ "disk_cache/blockfile/file_posix.cc" ] | |
479 libs = [ | |
480 "CFNetwork.framework", | |
481 "MobileCoreServices.framework", | |
482 "Security.framework", | |
483 "SystemConfiguration.framework", | |
484 "resolv", | |
485 ] | |
486 | |
487 deps += [ | |
488 "//third_party/nss:nspr", | |
489 "//third_party/nss", | |
490 "//net/third_party/nss/ssl:libssl", | |
491 ] | |
492 } | |
493 | |
494 if (is_ios || is_mac) { | |
495 sources += gypi_values.net_base_mac_ios_sources | |
496 } | |
497 | |
498 if (is_android) { | |
499 # Add some Linux sources that were excluded by the filter, but which | |
500 # are needed. | |
501 set_sources_assignment_filter([]) | |
502 sources += [ | |
503 "base/address_tracker_linux.cc", | |
504 "base/address_tracker_linux.h", | |
505 "base/network_interfaces_linux.cc", | |
506 "base/network_interfaces_linux.h", | |
507 "base/platform_mime_util_linux.cc", | |
508 ] | |
509 set_sources_assignment_filter(sources_assignment_filter) | |
510 deps += [ ":net_jni_headers" ] | |
511 } | |
512 | |
513 if (use_icu_alternatives_on_android) { | |
514 sources += [ | |
515 "base/net_string_util_icu_alternatives_android.cc", | |
516 "base/net_string_util_icu_alternatives_android.h", | |
517 ] | |
518 } else { | |
519 deps += [ | |
520 "//base:i18n", | |
521 "//third_party/icu", | |
522 ] | |
523 sources += [ | |
524 "base/filename_util_icu.cc", | |
525 "base/net_string_util_icu.cc", | |
526 "base/net_util_icu.cc", | |
527 ] | |
528 } | 529 } |
529 } | 530 } |
530 | 531 |
531 grit("net_resources") { | 532 grit("net_resources") { |
532 source = "base/net_resources.grd" | 533 source = "base/net_resources.grd" |
533 use_qualified_include = true | 534 use_qualified_include = true |
534 outputs = [ | 535 outputs = [ |
535 "grit/net_resources.h", | 536 "grit/net_resources.h", |
536 "net_resources.pak", | 537 "net_resources.pak", |
537 ] | 538 ] |
(...skipping 1162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1700 if (enable_websockets) { | 1701 if (enable_websockets) { |
1701 sources += [ "websockets/websocket_frame_perftest.cc" ] | 1702 sources += [ "websockets/websocket_frame_perftest.cc" ] |
1702 } | 1703 } |
1703 | 1704 |
1704 if (use_v8_in_net) { | 1705 if (use_v8_in_net) { |
1705 deps += [ ":net_with_v8" ] | 1706 deps += [ ":net_with_v8" ] |
1706 } else { | 1707 } else { |
1707 sources -= [ "proxy/proxy_resolver_perftest.cc" ] | 1708 sources -= [ "proxy/proxy_resolver_perftest.cc" ] |
1708 } | 1709 } |
1709 } | 1710 } |
OLD | NEW |