| 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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 ] | 118 ] |
| 119 }, { # else | 119 }, { # else |
| 120 'sources!': [ | 120 'sources!': [ |
| 121 'dns/address_sorter_posix.cc', | 121 'dns/address_sorter_posix.cc', |
| 122 'dns/address_sorter_posix.h', | 122 'dns/address_sorter_posix.h', |
| 123 'dns/dns_client.cc', | 123 'dns/dns_client.cc', |
| 124 ], | 124 ], |
| 125 }], | 125 }], |
| 126 ['use_openssl==1', { | 126 ['use_openssl==1', { |
| 127 'sources!': [ | 127 'sources!': [ |
| 128 'base/crypto_module_nss.cc', | |
| 129 'base/keygen_handler_nss.cc', | |
| 130 'base/nss_memio.c', | 128 'base/nss_memio.c', |
| 131 'base/nss_memio.h', | 129 'base/nss_memio.h', |
| 132 'cert/cert_database_nss.cc', | |
| 133 'cert/cert_verify_proc_nss.cc', | |
| 134 'cert/cert_verify_proc_nss.h', | |
| 135 'cert/ct_log_verifier_nss.cc', | 130 'cert/ct_log_verifier_nss.cc', |
| 136 'cert/ct_objects_extractor_nss.cc', | 131 'cert/ct_objects_extractor_nss.cc', |
| 137 'cert/jwk_serializer_nss.cc', | 132 'cert/jwk_serializer_nss.cc', |
| 138 'cert/nss_cert_database.cc', | |
| 139 'cert/nss_cert_database.h', | |
| 140 'cert/nss_cert_database_chromeos.cc', | |
| 141 'cert/nss_cert_database_chromeos.h', | |
| 142 'cert/nss_profile_filter_chromeos.cc', | |
| 143 'cert/nss_profile_filter_chromeos.h', | |
| 144 'cert/scoped_nss_types.h', | 133 'cert/scoped_nss_types.h', |
| 145 'cert/sha256_legacy_support_nss_win.cc', | 134 'cert/sha256_legacy_support_nss_win.cc', |
| 146 'cert/test_root_certs_nss.cc', | |
| 147 'cert/x509_certificate_nss.cc', | |
| 148 'cert/x509_util_nss.cc', | 135 'cert/x509_util_nss.cc', |
| 149 'cert/x509_util_nss.h', | |
| 150 'cert_net/nss_ocsp.cc', | |
| 151 'cert_net/nss_ocsp.h', | |
| 152 'quic/crypto/aead_base_decrypter_nss.cc', | 136 'quic/crypto/aead_base_decrypter_nss.cc', |
| 153 'quic/crypto/aead_base_encrypter_nss.cc', | 137 'quic/crypto/aead_base_encrypter_nss.cc', |
| 154 'quic/crypto/aes_128_gcm_12_decrypter_nss.cc', | 138 'quic/crypto/aes_128_gcm_12_decrypter_nss.cc', |
| 155 'quic/crypto/aes_128_gcm_12_encrypter_nss.cc', | 139 'quic/crypto/aes_128_gcm_12_encrypter_nss.cc', |
| 156 'quic/crypto/chacha20_poly1305_decrypter_nss.cc', | 140 'quic/crypto/chacha20_poly1305_decrypter_nss.cc', |
| 157 'quic/crypto/chacha20_poly1305_encrypter_nss.cc', | 141 'quic/crypto/chacha20_poly1305_encrypter_nss.cc', |
| 158 'quic/crypto/channel_id_nss.cc', | 142 'quic/crypto/channel_id_nss.cc', |
| 159 'quic/crypto/p256_key_exchange_nss.cc', | 143 'quic/crypto/p256_key_exchange_nss.cc', |
| 160 'socket/nss_ssl_util.cc', | 144 'socket/nss_ssl_util.cc', |
| 161 'socket/nss_ssl_util.h', | 145 'socket/nss_ssl_util.h', |
| 162 'socket/ssl_client_socket_nss.cc', | 146 'socket/ssl_client_socket_nss.cc', |
| 163 'socket/ssl_client_socket_nss.h', | 147 'socket/ssl_client_socket_nss.h', |
| 164 'socket/ssl_server_socket_nss.cc', | 148 'socket/ssl_server_socket_nss.cc', |
| 165 'socket/ssl_server_socket_nss.h', | 149 'socket/ssl_server_socket_nss.h', |
| 166 'third_party/mozilla_security_manager/nsKeygenHandler.cpp', | |
| 167 'third_party/mozilla_security_manager/nsKeygenHandler.h', | |
| 168 'third_party/mozilla_security_manager/nsNSSCertificateDB.cpp', | |
| 169 'third_party/mozilla_security_manager/nsNSSCertificateDB.h', | |
| 170 'third_party/mozilla_security_manager/nsPKCS12Blob.cpp', | |
| 171 'third_party/mozilla_security_manager/nsPKCS12Blob.h', | |
| 172 ], | 150 ], |
| 173 'dependencies': [ | 151 'dependencies': [ |
| 174 '../third_party/boringssl/boringssl.gyp:boringssl', | 152 '../third_party/boringssl/boringssl.gyp:boringssl', |
| 175 ], | 153 ], |
| 176 }, | 154 }, |
| 177 { # else !use_openssl: remove the unneeded files and depend on NSS. | 155 { # else !use_openssl: remove the unneeded files and depend on NSS. |
| 178 'sources!': [ | 156 'sources!': [ |
| 179 'base/crypto_module_openssl.cc', | |
| 180 'cert/ct_log_verifier_openssl.cc', | 157 'cert/ct_log_verifier_openssl.cc', |
| 181 'cert/ct_objects_extractor_openssl.cc', | 158 'cert/ct_objects_extractor_openssl.cc', |
| 182 'cert/jwk_serializer_openssl.cc', | 159 'cert/jwk_serializer_openssl.cc', |
| 183 'cert/sha256_legacy_support_openssl_win.cc', | 160 'cert/sha256_legacy_support_openssl_win.cc', |
| 184 'cert/x509_util_openssl.cc', | 161 'cert/x509_util_openssl.cc', |
| 185 'cert/x509_util_openssl.h', | 162 'cert/x509_util_openssl.h', |
| 186 'quic/crypto/aead_base_decrypter_openssl.cc', | 163 'quic/crypto/aead_base_decrypter_openssl.cc', |
| 187 'quic/crypto/aead_base_encrypter_openssl.cc', | 164 'quic/crypto/aead_base_encrypter_openssl.cc', |
| 188 'quic/crypto/aes_128_gcm_12_decrypter_openssl.cc', | 165 'quic/crypto/aes_128_gcm_12_decrypter_openssl.cc', |
| 189 'quic/crypto/aes_128_gcm_12_encrypter_openssl.cc', | 166 'quic/crypto/aes_128_gcm_12_encrypter_openssl.cc', |
| 190 'quic/crypto/chacha20_poly1305_decrypter_openssl.cc', | 167 'quic/crypto/chacha20_poly1305_decrypter_openssl.cc', |
| 191 'quic/crypto/chacha20_poly1305_encrypter_openssl.cc', | 168 'quic/crypto/chacha20_poly1305_encrypter_openssl.cc', |
| 192 'quic/crypto/channel_id_openssl.cc', | 169 'quic/crypto/channel_id_openssl.cc', |
| 193 'quic/crypto/p256_key_exchange_openssl.cc', | 170 'quic/crypto/p256_key_exchange_openssl.cc', |
| 194 'quic/crypto/scoped_evp_aead_ctx.cc', | 171 'quic/crypto/scoped_evp_aead_ctx.cc', |
| 195 'quic/crypto/scoped_evp_aead_ctx.h', | 172 'quic/crypto/scoped_evp_aead_ctx.h', |
| 196 'socket/ssl_client_socket_openssl.cc', | 173 'socket/ssl_client_socket_openssl.cc', |
| 197 'socket/ssl_client_socket_openssl.h', | 174 'socket/ssl_client_socket_openssl.h', |
| 198 'socket/ssl_server_socket_openssl.cc', | 175 'socket/ssl_server_socket_openssl.cc', |
| 199 'socket/ssl_server_socket_openssl.h', | 176 'socket/ssl_server_socket_openssl.h', |
| 200 'ssl/openssl_platform_key.h', | 177 'ssl/openssl_platform_key.h', |
| 201 'ssl/openssl_platform_key_mac.cc', | 178 'ssl/openssl_platform_key_mac.cc', |
| 179 'ssl/openssl_platform_key_nss.cc', |
| 202 'ssl/openssl_platform_key_win.cc', | 180 'ssl/openssl_platform_key_win.cc', |
| 203 'ssl/openssl_ssl_util.cc', | 181 'ssl/openssl_ssl_util.cc', |
| 204 'ssl/openssl_ssl_util.h', | 182 'ssl/openssl_ssl_util.h', |
| 205 'ssl/ssl_client_session_cache_openssl.cc', | 183 'ssl/ssl_client_session_cache_openssl.cc', |
| 206 'ssl/ssl_client_session_cache_openssl.h', | 184 'ssl/ssl_client_session_cache_openssl.h', |
| 207 ], | 185 ], |
| 186 }, |
| 187 ], |
| 188 [ 'use_nss_certs == 1 or OS == "ios" or use_openssl == 0', { |
| 208 'conditions': [ | 189 'conditions': [ |
| 209 # Pull in the bundled or system NSS as appropriate. | 190 # Pull in the bundled or system NSS as appropriate. |
| 210 [ 'desktop_linux == 1 or chromeos == 1', { | 191 [ 'desktop_linux == 1 or chromeos == 1', { |
| 211 'dependencies': [ | 192 'dependencies': [ |
| 212 '../build/linux/system.gyp:ssl', | 193 '../build/linux/system.gyp:ssl', |
| 213 ], | 194 ], |
| 214 }, { | 195 }, { |
| 215 'dependencies': [ | 196 'dependencies': [ |
| 216 '../third_party/nss/nss.gyp:nspr', | 197 '../third_party/nss/nss.gyp:nspr', |
| 217 '../third_party/nss/nss.gyp:nss', | 198 '../third_party/nss/nss.gyp:nss', |
| 218 'third_party/nss/ssl.gyp:libssl', | 199 'third_party/nss/ssl.gyp:libssl', |
| 219 ], | 200 ], |
| 220 }] | 201 }] |
| 221 ], | 202 ], |
| 203 }, { |
| 204 'sources!': [ |
| 205 'cert/x509_util_nss.h', |
| 206 ], |
| 222 }, | 207 }, |
| 223 ], | 208 ], |
| 224 [ 'use_openssl_certs == 0', { | 209 [ 'use_openssl_certs == 0', { |
| 225 'sources!': [ | 210 'sources!': [ |
| 211 'base/crypto_module_openssl.cc', |
| 226 'base/keygen_handler_openssl.cc', | 212 'base/keygen_handler_openssl.cc', |
| 227 'base/openssl_private_key_store.h', | 213 'base/openssl_private_key_store.h', |
| 228 'base/openssl_private_key_store_android.cc', | 214 'base/openssl_private_key_store_android.cc', |
| 229 'base/openssl_private_key_store_memory.cc', | 215 'base/openssl_private_key_store_memory.cc', |
| 230 'cert/cert_database_openssl.cc', | 216 'cert/cert_database_openssl.cc', |
| 231 'cert/cert_verify_proc_openssl.cc', | 217 'cert/cert_verify_proc_openssl.cc', |
| 232 'cert/cert_verify_proc_openssl.h', | 218 'cert/cert_verify_proc_openssl.h', |
| 233 'cert/test_root_certs_openssl.cc', | 219 'cert/test_root_certs_openssl.cc', |
| 234 'cert/x509_certificate_openssl.cc', | 220 'cert/x509_certificate_openssl.cc', |
| 235 'ssl/openssl_client_key_store.cc', | 221 'ssl/openssl_client_key_store.cc', |
| (...skipping 21 matching lines...) Expand all Loading... |
| 257 }], | 243 }], |
| 258 ['OS=="solaris"', { | 244 ['OS=="solaris"', { |
| 259 'link_settings': { | 245 'link_settings': { |
| 260 'ldflags': [ | 246 'ldflags': [ |
| 261 '-R/usr/lib/mps', | 247 '-R/usr/lib/mps', |
| 262 ], | 248 ], |
| 263 }, | 249 }, |
| 264 }], | 250 }], |
| 265 ], | 251 ], |
| 266 }, | 252 }, |
| 267 { # else: OS is not in the above list | 253 ], |
| 254 [ 'use_nss_certs != 1', { |
| 268 'sources!': [ | 255 'sources!': [ |
| 269 'base/crypto_module_nss.cc', | 256 'base/crypto_module_nss.cc', |
| 270 'base/keygen_handler_nss.cc', | 257 'base/keygen_handler_nss.cc', |
| 271 'cert/cert_database_nss.cc', | 258 'cert/cert_database_nss.cc', |
| 259 'cert/cert_verify_proc_nss.cc', |
| 260 'cert/cert_verify_proc_nss.h', |
| 272 'cert/nss_cert_database.cc', | 261 'cert/nss_cert_database.cc', |
| 273 'cert/nss_cert_database.h', | 262 'cert/nss_cert_database.h', |
| 263 'cert/nss_cert_database_chromeos.cc', |
| 264 'cert/nss_cert_database_chromeos.h', |
| 265 'cert/nss_profile_filter_chromeos.cc', |
| 266 'cert/nss_profile_filter_chromeos.h', |
| 274 'cert/test_root_certs_nss.cc', | 267 'cert/test_root_certs_nss.cc', |
| 275 'cert/x509_certificate_nss.cc', | 268 'cert/x509_certificate_nss.cc', |
| 269 'cert/x509_util_nss_certs.cc', |
| 276 'cert_net/nss_ocsp.cc', | 270 'cert_net/nss_ocsp.cc', |
| 277 'cert_net/nss_ocsp.h', | 271 'cert_net/nss_ocsp.h', |
| 272 'ssl/client_cert_store_chromeos.cc', |
| 273 'ssl/client_cert_store_chromeos.h', |
| 274 'ssl/client_cert_store_nss.cc', |
| 275 'ssl/client_cert_store_nss.h', |
| 276 'ssl/openssl_platform_key_nss.cc', |
| 278 'third_party/mozilla_security_manager/nsKeygenHandler.cpp', | 277 'third_party/mozilla_security_manager/nsKeygenHandler.cpp', |
| 279 'third_party/mozilla_security_manager/nsKeygenHandler.h', | 278 'third_party/mozilla_security_manager/nsKeygenHandler.h', |
| 280 'third_party/mozilla_security_manager/nsNSSCertificateDB.cpp', | 279 'third_party/mozilla_security_manager/nsNSSCertificateDB.cpp', |
| 281 'third_party/mozilla_security_manager/nsNSSCertificateDB.h', | 280 'third_party/mozilla_security_manager/nsNSSCertificateDB.h', |
| 282 'third_party/mozilla_security_manager/nsPKCS12Blob.cpp', | 281 'third_party/mozilla_security_manager/nsPKCS12Blob.cpp', |
| 283 'third_party/mozilla_security_manager/nsPKCS12Blob.h', | 282 'third_party/mozilla_security_manager/nsPKCS12Blob.h', |
| 284 ], | 283 ], |
| 285 }, | 284 }, |
| 286 ], | 285 ], |
| 287 [ 'use_nss_certs != 1', { | 286 # client_cert_store_nss.c requires NSS_CmpCertChainWCANames from NSS's |
| 288 'sources!': [ | 287 # libssl, but our bundled copy is not built in OpenSSL ports. Pull that |
| 289 'cert/cert_verify_proc_nss.cc', | 288 # file in directly. |
| 290 'cert/cert_verify_proc_nss.h', | 289 [ 'use_nss_certs == 1 and use_openssl == 1', { |
| 291 'ssl/client_cert_store_chromeos.cc', | 290 'sources': [ |
| 292 'ssl/client_cert_store_chromeos.h', | 291 'third_party/nss/ssl/cmpcert.c', |
| 293 'ssl/client_cert_store_nss.cc', | |
| 294 'ssl/client_cert_store_nss.h', | |
| 295 ], | 292 ], |
| 296 }], | 293 }], |
| 297 [ 'enable_websockets != 1', { | 294 [ 'enable_websockets != 1', { |
| 298 'sources/': [ | 295 'sources/': [ |
| 299 ['exclude', '^websockets/'], | 296 ['exclude', '^websockets/'], |
| 300 ], | 297 ], |
| 301 }], | 298 }], |
| 302 [ 'enable_mdns != 1', { | 299 [ 'enable_mdns != 1', { |
| 303 'sources!' : [ | 300 'sources!' : [ |
| 304 'dns/mdns_cache.cc', | 301 'dns/mdns_cache.cc', |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 409 ['include', '^base/network_change_notifier_mac\\.cc$'], | 406 ['include', '^base/network_change_notifier_mac\\.cc$'], |
| 410 ['include', '^base/network_config_watcher_mac\\.cc$'], | 407 ['include', '^base/network_config_watcher_mac\\.cc$'], |
| 411 ['include', '^base/platform_mime_util_mac\\.mm$'], | 408 ['include', '^base/platform_mime_util_mac\\.mm$'], |
| 412 # The iOS implementation only partially uses NSS and thus does not | 409 # The iOS implementation only partially uses NSS and thus does not |
| 413 # defines |use_nss_certs|. In particular the |USE_NSS_CERTS| | 410 # defines |use_nss_certs|. In particular the |USE_NSS_CERTS| |
| 414 # preprocessor definition is not used. The following files are needed | 411 # preprocessor definition is not used. The following files are needed |
| 415 # though: | 412 # though: |
| 416 ['include', '^cert/cert_verify_proc_nss\\.cc$'], | 413 ['include', '^cert/cert_verify_proc_nss\\.cc$'], |
| 417 ['include', '^cert/cert_verify_proc_nss\\.h$'], | 414 ['include', '^cert/cert_verify_proc_nss\\.h$'], |
| 418 ['include', '^cert/test_root_certs_nss\\.cc$'], | 415 ['include', '^cert/test_root_certs_nss\\.cc$'], |
| 419 ['include', '^cert/x509_util_nss\\.cc$'], | 416 ['include', '^cert/x509_util_nss_certs\\.cc$'], |
| 420 ['include', '^cert/x509_util_nss\\.h$'], | |
| 421 ['include', '^cert_net/nss_ocsp\\.cc$'], | 417 ['include', '^cert_net/nss_ocsp\\.cc$'], |
| 422 ['include', '^cert_net/nss_ocsp\\.h$'], | 418 ['include', '^cert_net/nss_ocsp\\.h$'], |
| 423 ['include', '^proxy/proxy_resolver_mac\\.cc$'], | 419 ['include', '^proxy/proxy_resolver_mac\\.cc$'], |
| 424 ['include', '^proxy/proxy_server_mac\\.cc$'], | 420 ['include', '^proxy/proxy_server_mac\\.cc$'], |
| 425 ], | 421 ], |
| 426 }], | 422 }], |
| 427 ], | 423 ], |
| 428 } | 424 } |
| OLD | NEW |