| 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 by 'net' target. | 6 # This target is included by 'net' target. |
| 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', |
| 11 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_ann
otations', | 11 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_ann
otations', |
| 12 '../crypto/crypto.gyp:crypto', | 12 '../crypto/crypto.gyp:crypto', |
| 13 '../sdch/sdch.gyp:sdch', | 13 '../sdch/sdch.gyp:sdch', |
| 14 '../third_party/boringssl/boringssl.gyp:boringssl', |
| 14 '../third_party/protobuf/protobuf.gyp:protobuf_lite', | 15 '../third_party/protobuf/protobuf.gyp:protobuf_lite', |
| 15 '../third_party/zlib/zlib.gyp:zlib', | 16 '../third_party/zlib/zlib.gyp:zlib', |
| 16 '../url/url.gyp:url_url_features', | 17 '../url/url.gyp:url_url_features', |
| 17 'net_derived_sources', | 18 'net_derived_sources', |
| 18 'net_quic_proto', | 19 'net_quic_proto', |
| 19 'net_resources', | 20 'net_resources', |
| 20 ], | 21 ], |
| 21 'sources': [ | 22 'sources': [ |
| 22 '<@(net_nacl_common_sources)', | 23 '<@(net_nacl_common_sources)', |
| 23 '<@(net_non_nacl_sources)', | 24 '<@(net_non_nacl_sources)', |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 'defines': [ | 100 'defines': [ |
| 100 'ENABLE_BUILT_IN_DNS', | 101 'ENABLE_BUILT_IN_DNS', |
| 101 ] | 102 ] |
| 102 }, { # else | 103 }, { # else |
| 103 'sources!': [ | 104 'sources!': [ |
| 104 'dns/address_sorter_posix.cc', | 105 'dns/address_sorter_posix.cc', |
| 105 'dns/address_sorter_posix.h', | 106 'dns/address_sorter_posix.h', |
| 106 'dns/dns_client.cc', | 107 'dns/dns_client.cc', |
| 107 ], | 108 ], |
| 108 }], | 109 }], |
| 109 ['use_openssl==1', { | 110 [ 'use_nss_certs == 1', { |
| 110 'sources!': [ | |
| 111 'base/nss_memio.c', | |
| 112 'base/nss_memio.h', | |
| 113 'cert/ct_log_verifier_nss.cc', | |
| 114 'cert/ct_objects_extractor_nss.cc', | |
| 115 'cert/jwk_serializer_nss.cc', | |
| 116 'cert/scoped_nss_types.h', | |
| 117 'cert/x509_certificate_ios.cc', | |
| 118 'cert/x509_util_nss.cc', | |
| 119 'quic/crypto/aead_base_decrypter_nss.cc', | |
| 120 'quic/crypto/aead_base_encrypter_nss.cc', | |
| 121 'quic/crypto/aes_128_gcm_12_decrypter_nss.cc', | |
| 122 'quic/crypto/aes_128_gcm_12_encrypter_nss.cc', | |
| 123 'quic/crypto/chacha20_poly1305_rfc7539_decrypter_nss.cc', | |
| 124 'quic/crypto/chacha20_poly1305_rfc7539_encrypter_nss.cc', | |
| 125 'quic/crypto/channel_id_nss.cc', | |
| 126 'quic/crypto/p256_key_exchange_nss.cc', | |
| 127 'quic/crypto/proof_source_chromium_nss.cc', | |
| 128 'socket/nss_ssl_util.cc', | |
| 129 'socket/nss_ssl_util.h', | |
| 130 'socket/ssl_client_socket_nss.cc', | |
| 131 'socket/ssl_client_socket_nss.h', | |
| 132 'socket/ssl_server_socket_nss.cc', | |
| 133 'socket/ssl_server_socket_nss.h', | |
| 134 'ssl/token_binding_nss.cc', | |
| 135 ], | |
| 136 'dependencies': [ | 111 'dependencies': [ |
| 137 '../third_party/boringssl/boringssl.gyp:boringssl', | 112 '../build/linux/system.gyp:ssl', |
| 138 ], | |
| 139 'conditions': [ | |
| 140 ['chromecast==1 and use_nss_certs==1', { | |
| 141 'sources': [ | |
| 142 'ssl/ssl_platform_key_chromecast.cc', | |
| 143 ], | |
| 144 'sources!': [ | |
| 145 'ssl/ssl_platform_key_nss.cc', | |
| 146 ], | |
| 147 }], | |
| 148 ], | |
| 149 }, | |
| 150 { # else !use_openssl: remove the unneeded files and depend on NSS. | |
| 151 'sources!': [ | |
| 152 'cert/ct_log_verifier_openssl.cc', | |
| 153 'cert/ct_objects_extractor_openssl.cc', | |
| 154 'cert/jwk_serializer_openssl.cc', | |
| 155 'cert/x509_util_openssl.cc', | |
| 156 'cert/x509_util_openssl.h', | |
| 157 'quic/crypto/aead_base_decrypter_openssl.cc', | |
| 158 'quic/crypto/aead_base_encrypter_openssl.cc', | |
| 159 'quic/crypto/aes_128_gcm_12_decrypter_openssl.cc', | |
| 160 'quic/crypto/aes_128_gcm_12_encrypter_openssl.cc', | |
| 161 'quic/crypto/chacha20_poly1305_rfc7539_decrypter_openssl.cc', | |
| 162 'quic/crypto/chacha20_poly1305_rfc7539_encrypter_openssl.cc', | |
| 163 'quic/crypto/channel_id_openssl.cc', | |
| 164 'quic/crypto/p256_key_exchange_openssl.cc', | |
| 165 'quic/crypto/proof_source_chromium_openssl.cc', | |
| 166 'quic/crypto/scoped_evp_aead_ctx.cc', | |
| 167 'quic/crypto/scoped_evp_aead_ctx.h', | |
| 168 'socket/ssl_client_socket_openssl.cc', | |
| 169 'socket/ssl_client_socket_openssl.h', | |
| 170 'socket/ssl_server_socket_openssl.cc', | |
| 171 'socket/ssl_server_socket_openssl.h', | |
| 172 'ssl/client_key_store.cc', | |
| 173 'ssl/client_key_store.h', | |
| 174 'ssl/openssl_ssl_util.cc', | |
| 175 'ssl/openssl_ssl_util.h', | |
| 176 'ssl/ssl_client_session_cache_openssl.cc', | |
| 177 'ssl/ssl_client_session_cache_openssl.h', | |
| 178 'ssl/ssl_key_logger.cc', | |
| 179 'ssl/ssl_key_logger.h', | |
| 180 'ssl/ssl_platform_key.h', | |
| 181 'ssl/ssl_platform_key_nss.cc', | |
| 182 'ssl/ssl_platform_key_task_runner.cc', | |
| 183 'ssl/ssl_platform_key_task_runner.h', | |
| 184 'ssl/test_ssl_private_key.cc', | |
| 185 'ssl/test_ssl_private_key.h', | |
| 186 'ssl/threaded_ssl_private_key.cc', | |
| 187 'ssl/threaded_ssl_private_key.h', | |
| 188 'ssl/token_binding_openssl.cc', | |
| 189 ], | |
| 190 }, | |
| 191 ], | |
| 192 [ 'use_nss_verifier == 1', { | |
| 193 'conditions': [ | |
| 194 # Pull in the bundled or system NSS as appropriate. | |
| 195 [ 'desktop_linux == 1 or chromeos == 1', { | |
| 196 'dependencies': [ | |
| 197 '../build/linux/system.gyp:ssl', | |
| 198 ], | |
| 199 }, { | |
| 200 'dependencies': [ | |
| 201 '../third_party/nss/nss.gyp:nspr', | |
| 202 '../third_party/nss/nss.gyp:nss', | |
| 203 'third_party/nss/ssl.gyp:libssl', | |
| 204 ], | |
| 205 }] | |
| 206 ], | 113 ], |
| 207 }, { | 114 }, { |
| 208 'sources!': [ | 115 'sources!': [ |
| 209 'cert/x509_util_nss.h', | 116 'cert/x509_util_nss.h', |
| 210 ], | 117 ] |
| 211 }, | 118 } |
| 212 ], | 119 ], |
| 120 ['chromecast==1 and use_nss_certs==1', { |
| 121 'sources': [ |
| 122 'ssl/ssl_platform_key_chromecast.cc', |
| 123 ], |
| 124 'sources!': [ |
| 125 'ssl/ssl_platform_key_nss.cc', |
| 126 ], |
| 127 }], |
| 213 [ 'use_openssl_certs == 0', { | 128 [ 'use_openssl_certs == 0', { |
| 214 'sources!': [ | 129 'sources!': [ |
| 215 'base/crypto_module_openssl.cc', | 130 'base/crypto_module_openssl.cc', |
| 216 'base/keygen_handler_openssl.cc', | 131 'base/keygen_handler_openssl.cc', |
| 217 'base/openssl_private_key_store.h', | 132 'base/openssl_private_key_store.h', |
| 218 'base/openssl_private_key_store_android.cc', | 133 'base/openssl_private_key_store_android.cc', |
| 219 'base/openssl_private_key_store_memory.cc', | 134 'base/openssl_private_key_store_memory.cc', |
| 220 'cert/cert_database_openssl.cc', | 135 'cert/cert_database_openssl.cc', |
| 221 'cert/cert_verify_proc_openssl.cc', | 136 'cert/cert_verify_proc_openssl.cc', |
| 222 'cert/cert_verify_proc_openssl.h', | 137 'cert/cert_verify_proc_openssl.h', |
| (...skipping 30 matching lines...) Expand all Loading... |
| 253 }, | 168 }, |
| 254 }], | 169 }], |
| 255 ], | 170 ], |
| 256 }, | 171 }, |
| 257 ], | 172 ], |
| 258 [ 'use_nss_certs != 1', { | 173 [ 'use_nss_certs != 1', { |
| 259 'sources!': [ | 174 'sources!': [ |
| 260 'base/crypto_module_nss.cc', | 175 'base/crypto_module_nss.cc', |
| 261 'base/keygen_handler_nss.cc', | 176 'base/keygen_handler_nss.cc', |
| 262 'cert/cert_database_nss.cc', | 177 'cert/cert_database_nss.cc', |
| 178 'cert/cert_verify_proc_nss.cc', |
| 179 'cert/cert_verify_proc_nss.h', |
| 263 'cert/nss_cert_database.cc', | 180 'cert/nss_cert_database.cc', |
| 264 'cert/nss_cert_database.h', | 181 'cert/nss_cert_database.h', |
| 265 'cert/nss_cert_database_chromeos.cc', | 182 'cert/nss_cert_database_chromeos.cc', |
| 266 'cert/nss_cert_database_chromeos.h', | 183 'cert/nss_cert_database_chromeos.h', |
| 267 'cert/nss_profile_filter_chromeos.cc', | 184 'cert/nss_profile_filter_chromeos.cc', |
| 268 'cert/nss_profile_filter_chromeos.h', | 185 'cert/nss_profile_filter_chromeos.h', |
| 186 'cert/test_root_certs_nss.cc', |
| 269 'cert/x509_certificate_nss.cc', | 187 'cert/x509_certificate_nss.cc', |
| 188 'cert/x509_util_nss.cc', |
| 189 'cert_net/nss_ocsp.cc', |
| 190 'cert_net/nss_ocsp.h', |
| 270 'ssl/client_cert_store_nss.cc', | 191 'ssl/client_cert_store_nss.cc', |
| 271 'ssl/client_cert_store_nss.h', | 192 'ssl/client_cert_store_nss.h', |
| 272 'ssl/client_key_store.cc', | 193 'ssl/client_key_store.cc', |
| 273 'ssl/client_key_store.h', | 194 'ssl/client_key_store.h', |
| 274 'ssl/ssl_platform_key_nss.cc', | 195 'ssl/ssl_platform_key_nss.cc', |
| 275 'third_party/mozilla_security_manager/nsKeygenHandler.cpp', | 196 'third_party/mozilla_security_manager/nsKeygenHandler.cpp', |
| 276 'third_party/mozilla_security_manager/nsKeygenHandler.h', | 197 'third_party/mozilla_security_manager/nsKeygenHandler.h', |
| 277 'third_party/mozilla_security_manager/nsNSSCertificateDB.cpp', | 198 'third_party/mozilla_security_manager/nsNSSCertificateDB.cpp', |
| 278 'third_party/mozilla_security_manager/nsNSSCertificateDB.h', | 199 'third_party/mozilla_security_manager/nsNSSCertificateDB.h', |
| 279 'third_party/mozilla_security_manager/nsPKCS12Blob.cpp', | 200 'third_party/mozilla_security_manager/nsPKCS12Blob.cpp', |
| 280 'third_party/mozilla_security_manager/nsPKCS12Blob.h', | 201 'third_party/mozilla_security_manager/nsPKCS12Blob.h', |
| 281 ], | 202 ], |
| 282 }, | 203 }, |
| 283 ], | 204 ], |
| 284 [ 'use_nss_verifier != 1', { | |
| 285 'sources!': [ | |
| 286 'cert/cert_verify_proc_nss.cc', | |
| 287 'cert/cert_verify_proc_nss.h', | |
| 288 'cert/test_root_certs_nss.cc', | |
| 289 'cert/x509_util_nss_certs.cc', | |
| 290 'cert_net/nss_ocsp.cc', | |
| 291 'cert_net/nss_ocsp.h', | |
| 292 ], | |
| 293 }, | |
| 294 ], | |
| 295 # client_cert_store_nss.c requires NSS_CmpCertChainWCANames from NSS's | 205 # client_cert_store_nss.c requires NSS_CmpCertChainWCANames from NSS's |
| 296 # libssl, but our bundled copy is not built in OpenSSL ports. Pull that | 206 # libssl, but our bundled copy is not built in OpenSSL ports. Pull that |
| 297 # file in directly. | 207 # file in directly. |
| 298 [ 'use_nss_certs == 1 and use_openssl == 1', { | 208 [ 'use_nss_certs == 1', { |
| 299 'sources': [ | 209 'sources': [ |
| 300 'third_party/nss/ssl/cmpcert.c', | 210 'third_party/nss/ssl/cmpcert.c', |
| 301 ], | 211 ], |
| 302 }], | 212 }], |
| 303 [ 'OS == "ios" and use_nss_verifier == 0', { | |
| 304 'sources!': [ | |
| 305 'cert/x509_util_ios.cc', | |
| 306 'cert/x509_util_ios.h', | |
| 307 ], | |
| 308 }], | |
| 309 [ 'OS == "ios" and use_nss_verifier == 1', { | |
| 310 'sources!': [ | |
| 311 'cert/cert_verify_proc_ios.cc', | |
| 312 'cert/cert_verify_proc_ios.h', | |
| 313 'cert/x509_certificate_openssl_ios.cc', | |
| 314 ], | |
| 315 }], | |
| 316 [ 'enable_websockets == 1', { | 213 [ 'enable_websockets == 1', { |
| 317 'sources': ['<@(net_websockets_sources)'] | 214 'sources': ['<@(net_websockets_sources)'] |
| 318 }], | 215 }], |
| 319 [ 'enable_mdns != 1', { | 216 [ 'enable_mdns != 1', { |
| 320 'sources!' : [ | 217 'sources!' : [ |
| 321 'dns/mdns_cache.cc', | 218 'dns/mdns_cache.cc', |
| 322 'dns/mdns_cache.h', | 219 'dns/mdns_cache.h', |
| 323 'dns/mdns_client.cc', | 220 'dns/mdns_client.cc', |
| 324 'dns/mdns_client.h', | 221 'dns/mdns_client.h', |
| 325 'dns/mdns_client_impl.cc', | 222 'dns/mdns_client_impl.cc', |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 451 ['include', '^base/mac/url_conversions\\.mm$'], | 348 ['include', '^base/mac/url_conversions\\.mm$'], |
| 452 ['include', '^base/network_change_notifier_mac\\.cc$'], | 349 ['include', '^base/network_change_notifier_mac\\.cc$'], |
| 453 ['include', '^base/network_config_watcher_mac\\.cc$'], | 350 ['include', '^base/network_config_watcher_mac\\.cc$'], |
| 454 ['include', '^base/network_interfaces_mac\\.cc$'], | 351 ['include', '^base/network_interfaces_mac\\.cc$'], |
| 455 ['include', '^base/network_interfaces_mac\\.h$'], | 352 ['include', '^base/network_interfaces_mac\\.h$'], |
| 456 ['include', '^base/platform_mime_util_mac\\.mm$'], | 353 ['include', '^base/platform_mime_util_mac\\.mm$'], |
| 457 ['include', '^proxy/proxy_resolver_mac\\.cc$'], | 354 ['include', '^proxy/proxy_resolver_mac\\.cc$'], |
| 458 ['include', '^proxy/proxy_server_mac\\.cc$'], | 355 ['include', '^proxy/proxy_server_mac\\.cc$'], |
| 459 ], | 356 ], |
| 460 }], | 357 }], |
| 461 ['OS == "ios" and <(use_nss_verifier) == 0', { | 358 ['OS == "ios"', { |
| 462 'sources/': [ | 359 'sources/': [ |
| 463 ['include', '^cert/test_root_certs_mac\\.cc$'], | 360 ['include', '^cert/test_root_certs_mac\\.cc$'], |
| 464 ], | 361 ], |
| 465 }], | 362 }], |
| 466 ], | 363 ], |
| 467 } | 364 } |
| OLD | NEW |