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