OLD | NEW |
1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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 { | 5 { |
6 # This target is included in both 'net' and 'net_small'. | 6 # This target is included in both 'net' and 'net_small'. |
7 'type': '<(component)', | 7 'type': '<(component)', |
8 'variables': { 'enable_wexit_time_destructors': 1, }, | 8 'variables': { 'enable_wexit_time_destructors': 1, }, |
9 'dependencies': [ | 9 'dependencies': [ |
10 '../base/base.gyp:base', | 10 '../base/base.gyp:base', |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 ], | 110 ], |
111 }], | 111 }], |
112 ['use_openssl==1', { | 112 ['use_openssl==1', { |
113 'sources!': [ | 113 'sources!': [ |
114 'base/nss_memio.c', | 114 'base/nss_memio.c', |
115 'base/nss_memio.h', | 115 'base/nss_memio.h', |
116 'cert/ct_log_verifier_nss.cc', | 116 'cert/ct_log_verifier_nss.cc', |
117 'cert/ct_objects_extractor_nss.cc', | 117 'cert/ct_objects_extractor_nss.cc', |
118 'cert/jwk_serializer_nss.cc', | 118 'cert/jwk_serializer_nss.cc', |
119 'cert/scoped_nss_types.h', | 119 'cert/scoped_nss_types.h', |
| 120 'cert/x509_certificate_ios.cc', |
120 'cert/x509_util_nss.cc', | 121 'cert/x509_util_nss.cc', |
121 'quic/crypto/aead_base_decrypter_nss.cc', | 122 'quic/crypto/aead_base_decrypter_nss.cc', |
122 'quic/crypto/aead_base_encrypter_nss.cc', | 123 'quic/crypto/aead_base_encrypter_nss.cc', |
123 'quic/crypto/aes_128_gcm_12_decrypter_nss.cc', | 124 'quic/crypto/aes_128_gcm_12_decrypter_nss.cc', |
124 'quic/crypto/aes_128_gcm_12_encrypter_nss.cc', | 125 'quic/crypto/aes_128_gcm_12_encrypter_nss.cc', |
125 'quic/crypto/chacha20_poly1305_decrypter_nss.cc', | 126 'quic/crypto/chacha20_poly1305_decrypter_nss.cc', |
126 'quic/crypto/chacha20_poly1305_encrypter_nss.cc', | 127 'quic/crypto/chacha20_poly1305_encrypter_nss.cc', |
127 'quic/crypto/chacha20_poly1305_rfc7539_decrypter_nss.cc', | 128 'quic/crypto/chacha20_poly1305_rfc7539_decrypter_nss.cc', |
128 'quic/crypto/chacha20_poly1305_rfc7539_encrypter_nss.cc', | 129 'quic/crypto/chacha20_poly1305_rfc7539_encrypter_nss.cc', |
129 'quic/crypto/channel_id_nss.cc', | 130 'quic/crypto/channel_id_nss.cc', |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 'ssl/ssl_platform_key_task_runner.cc', | 189 'ssl/ssl_platform_key_task_runner.cc', |
189 'ssl/ssl_platform_key_task_runner.h', | 190 'ssl/ssl_platform_key_task_runner.h', |
190 'ssl/test_ssl_private_key.cc', | 191 'ssl/test_ssl_private_key.cc', |
191 'ssl/test_ssl_private_key.h', | 192 'ssl/test_ssl_private_key.h', |
192 'ssl/threaded_ssl_private_key.cc', | 193 'ssl/threaded_ssl_private_key.cc', |
193 'ssl/threaded_ssl_private_key.h', | 194 'ssl/threaded_ssl_private_key.h', |
194 'ssl/token_binding_openssl.cc', | 195 'ssl/token_binding_openssl.cc', |
195 ], | 196 ], |
196 }, | 197 }, |
197 ], | 198 ], |
198 [ 'use_nss_certs == 1 or OS == "ios" or use_openssl == 0', { | 199 [ 'use_nss_verifier == 1', { |
199 'conditions': [ | 200 'conditions': [ |
200 # Pull in the bundled or system NSS as appropriate. | 201 # Pull in the bundled or system NSS as appropriate. |
201 [ 'desktop_linux == 1 or chromeos == 1', { | 202 [ 'desktop_linux == 1 or chromeos == 1', { |
202 'dependencies': [ | 203 'dependencies': [ |
203 '../build/linux/system.gyp:ssl', | 204 '../build/linux/system.gyp:ssl', |
204 ], | 205 ], |
205 }, { | 206 }, { |
206 'dependencies': [ | 207 'dependencies': [ |
207 '../third_party/nss/nss.gyp:nspr', | 208 '../third_party/nss/nss.gyp:nspr', |
208 '../third_party/nss/nss.gyp:nss', | 209 '../third_party/nss/nss.gyp:nss', |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
259 }, | 260 }, |
260 }], | 261 }], |
261 ], | 262 ], |
262 }, | 263 }, |
263 ], | 264 ], |
264 [ 'use_nss_certs != 1', { | 265 [ 'use_nss_certs != 1', { |
265 'sources!': [ | 266 'sources!': [ |
266 'base/crypto_module_nss.cc', | 267 'base/crypto_module_nss.cc', |
267 'base/keygen_handler_nss.cc', | 268 'base/keygen_handler_nss.cc', |
268 'cert/cert_database_nss.cc', | 269 'cert/cert_database_nss.cc', |
269 'cert/cert_verify_proc_nss.cc', | |
270 'cert/cert_verify_proc_nss.h', | |
271 'cert/nss_cert_database.cc', | 270 'cert/nss_cert_database.cc', |
272 'cert/nss_cert_database.h', | 271 'cert/nss_cert_database.h', |
273 'cert/nss_cert_database_chromeos.cc', | 272 'cert/nss_cert_database_chromeos.cc', |
274 'cert/nss_cert_database_chromeos.h', | 273 'cert/nss_cert_database_chromeos.h', |
275 'cert/nss_profile_filter_chromeos.cc', | 274 'cert/nss_profile_filter_chromeos.cc', |
276 'cert/nss_profile_filter_chromeos.h', | 275 'cert/nss_profile_filter_chromeos.h', |
277 'cert/test_root_certs_nss.cc', | |
278 'cert/x509_certificate_nss.cc', | 276 'cert/x509_certificate_nss.cc', |
279 'cert/x509_util_nss_certs.cc', | |
280 'cert_net/nss_ocsp.cc', | |
281 'cert_net/nss_ocsp.h', | |
282 'ssl/client_cert_store_nss.cc', | 277 'ssl/client_cert_store_nss.cc', |
283 'ssl/client_cert_store_nss.h', | 278 'ssl/client_cert_store_nss.h', |
284 'ssl/client_key_store.cc', | 279 'ssl/client_key_store.cc', |
285 'ssl/client_key_store.h', | 280 'ssl/client_key_store.h', |
286 'ssl/ssl_platform_key_nss.cc', | 281 'ssl/ssl_platform_key_nss.cc', |
287 'third_party/mozilla_security_manager/nsKeygenHandler.cpp', | 282 'third_party/mozilla_security_manager/nsKeygenHandler.cpp', |
288 'third_party/mozilla_security_manager/nsKeygenHandler.h', | 283 'third_party/mozilla_security_manager/nsKeygenHandler.h', |
289 'third_party/mozilla_security_manager/nsNSSCertificateDB.cpp', | 284 'third_party/mozilla_security_manager/nsNSSCertificateDB.cpp', |
290 'third_party/mozilla_security_manager/nsNSSCertificateDB.h', | 285 'third_party/mozilla_security_manager/nsNSSCertificateDB.h', |
291 'third_party/mozilla_security_manager/nsPKCS12Blob.cpp', | 286 'third_party/mozilla_security_manager/nsPKCS12Blob.cpp', |
292 'third_party/mozilla_security_manager/nsPKCS12Blob.h', | 287 'third_party/mozilla_security_manager/nsPKCS12Blob.h', |
293 ], | 288 ], |
294 }, | 289 }, |
295 ], | 290 ], |
| 291 [ 'use_nss_verifier != 1', { |
| 292 'sources!': [ |
| 293 'cert/cert_verify_proc_nss.cc', |
| 294 'cert/cert_verify_proc_nss.h', |
| 295 'cert/test_root_certs_nss.cc', |
| 296 'cert/x509_util_nss_certs.cc', |
| 297 'cert_net/nss_ocsp.cc', |
| 298 'cert_net/nss_ocsp.h', |
| 299 ], |
| 300 }, |
| 301 ], |
296 # client_cert_store_nss.c requires NSS_CmpCertChainWCANames from NSS's | 302 # client_cert_store_nss.c requires NSS_CmpCertChainWCANames from NSS's |
297 # libssl, but our bundled copy is not built in OpenSSL ports. Pull that | 303 # libssl, but our bundled copy is not built in OpenSSL ports. Pull that |
298 # file in directly. | 304 # file in directly. |
299 [ 'use_nss_certs == 1 and use_openssl == 1', { | 305 [ 'use_nss_certs == 1 and use_openssl == 1', { |
300 'sources': [ | 306 'sources': [ |
301 'third_party/nss/ssl/cmpcert.c', | 307 'third_party/nss/ssl/cmpcert.c', |
302 ], | 308 ], |
303 }], | 309 }], |
| 310 [ 'OS == "ios" and use_nss_verifier == 0', { |
| 311 'sources!': [ |
| 312 'cert/x509_util_ios.cc', |
| 313 'cert/x509_util_ios.h', |
| 314 ], |
| 315 }], |
304 [ 'enable_websockets == 1', { | 316 [ 'enable_websockets == 1', { |
305 'sources': ['<@(net_websockets_sources)'] | 317 'sources': ['<@(net_websockets_sources)'] |
306 }], | 318 }], |
307 [ 'enable_mdns != 1', { | 319 [ 'enable_mdns != 1', { |
308 'sources!' : [ | 320 'sources!' : [ |
309 'dns/mdns_cache.cc', | 321 'dns/mdns_cache.cc', |
310 'dns/mdns_cache.h', | 322 'dns/mdns_cache.h', |
311 'dns/mdns_client.cc', | 323 'dns/mdns_client.cc', |
312 'dns/mdns_client.h', | 324 'dns/mdns_client.h', |
313 'dns/mdns_client_impl.cc', | 325 'dns/mdns_client_impl.cc', |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
407 }], | 419 }], |
408 ['OS == "ios"', { | 420 ['OS == "ios"', { |
409 'sources/': [ | 421 'sources/': [ |
410 ['include', '^base/mac/url_conversions\\.h$'], | 422 ['include', '^base/mac/url_conversions\\.h$'], |
411 ['include', '^base/mac/url_conversions\\.mm$'], | 423 ['include', '^base/mac/url_conversions\\.mm$'], |
412 ['include', '^base/network_change_notifier_mac\\.cc$'], | 424 ['include', '^base/network_change_notifier_mac\\.cc$'], |
413 ['include', '^base/network_config_watcher_mac\\.cc$'], | 425 ['include', '^base/network_config_watcher_mac\\.cc$'], |
414 ['include', '^base/network_interfaces_mac\\.cc$'], | 426 ['include', '^base/network_interfaces_mac\\.cc$'], |
415 ['include', '^base/network_interfaces_mac\\.h$'], | 427 ['include', '^base/network_interfaces_mac\\.h$'], |
416 ['include', '^base/platform_mime_util_mac\\.mm$'], | 428 ['include', '^base/platform_mime_util_mac\\.mm$'], |
417 # The iOS implementation only partially uses NSS and thus does not | |
418 # defines |use_nss_certs|. In particular the |USE_NSS_CERTS| | |
419 # preprocessor definition is not used. The following files are needed | |
420 # though: | |
421 ['include', '^cert/cert_verify_proc_nss\\.cc$'], | |
422 ['include', '^cert/cert_verify_proc_nss\\.h$'], | |
423 ['include', '^cert/test_root_certs_nss\\.cc$'], | |
424 ['include', '^cert/x509_util_nss_certs\\.cc$'], | |
425 ['include', '^cert_net/nss_ocsp\\.cc$'], | |
426 ['include', '^cert_net/nss_ocsp\\.h$'], | |
427 ['include', '^proxy/proxy_resolver_mac\\.cc$'], | 429 ['include', '^proxy/proxy_resolver_mac\\.cc$'], |
428 ['include', '^proxy/proxy_server_mac\\.cc$'], | 430 ['include', '^proxy/proxy_server_mac\\.cc$'], |
429 ], | 431 ], |
430 }], | 432 }], |
431 ], | 433 ], |
432 } | 434 } |
OLD | NEW |