| 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 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 237 "quic/crypto/chacha20_poly1305_decrypter_openssl.cc", | 237 "quic/crypto/chacha20_poly1305_decrypter_openssl.cc", |
| 238 "quic/crypto/chacha20_poly1305_encrypter_openssl.cc", | 238 "quic/crypto/chacha20_poly1305_encrypter_openssl.cc", |
| 239 "quic/crypto/channel_id_openssl.cc", | 239 "quic/crypto/channel_id_openssl.cc", |
| 240 "quic/crypto/p256_key_exchange_openssl.cc", | 240 "quic/crypto/p256_key_exchange_openssl.cc", |
| 241 "quic/crypto/scoped_evp_aead_ctx.cc", | 241 "quic/crypto/scoped_evp_aead_ctx.cc", |
| 242 "quic/crypto/scoped_evp_aead_ctx.h", | 242 "quic/crypto/scoped_evp_aead_ctx.h", |
| 243 "socket/ssl_client_socket_openssl.cc", | 243 "socket/ssl_client_socket_openssl.cc", |
| 244 "socket/ssl_client_socket_openssl.h", | 244 "socket/ssl_client_socket_openssl.h", |
| 245 "socket/ssl_server_socket_openssl.cc", | 245 "socket/ssl_server_socket_openssl.cc", |
| 246 "socket/ssl_server_socket_openssl.h", | 246 "socket/ssl_server_socket_openssl.h", |
| 247 "ssl/openssl_platform_key.h", | |
| 248 "ssl/openssl_platform_key_nss.cc", | |
| 249 "ssl/openssl_ssl_util.cc", | 247 "ssl/openssl_ssl_util.cc", |
| 250 "ssl/openssl_ssl_util.h", | 248 "ssl/openssl_ssl_util.h", |
| 251 "ssl/ssl_client_session_cache_openssl.cc", | 249 "ssl/ssl_client_session_cache_openssl.cc", |
| 252 "ssl/ssl_client_session_cache_openssl.h", | 250 "ssl/ssl_client_session_cache_openssl.h", |
| 251 "ssl/ssl_platform_key.h", |
| 252 "ssl/threaded_ssl_private_key.cc", |
| 253 "ssl/threaded_ssl_private_key.h", |
| 253 ] | 254 ] |
| 254 if (is_mac) { | 255 if (is_mac) { |
| 255 sources -= [ "ssl/openssl_platform_key_mac.cc" ] | 256 sources -= [ "ssl/ssl_platform_key_mac.cc" ] |
| 256 } | 257 } |
| 257 if (is_win) { | 258 if (is_win) { |
| 258 sources -= [ | 259 sources -= [ |
| 259 "cert/sha256_legacy_support_openssl_win.cc", | 260 "cert/sha256_legacy_support_openssl_win.cc", |
| 260 "ssl/openssl_platform_key_win.cc", | 261 "ssl/ssl_platform_key_win.cc", |
| 261 ] | 262 ] |
| 262 } | 263 } |
| 264 if (use_nss_certs) { |
| 265 sources -= [ "ssl/ssl_platform_key_nss.cc" ] |
| 266 } |
| 263 } | 267 } |
| 264 | 268 |
| 265 if (!use_openssl_certs) { | 269 if (!use_openssl_certs) { |
| 266 sources -= [ | 270 sources -= [ |
| 267 "base/crypto_module_openssl.cc", | 271 "base/crypto_module_openssl.cc", |
| 268 "base/keygen_handler_openssl.cc", | 272 "base/keygen_handler_openssl.cc", |
| 269 "base/openssl_private_key_store.h", | 273 "base/openssl_private_key_store.h", |
| 270 "base/openssl_private_key_store_memory.cc", | 274 "base/openssl_private_key_store_memory.cc", |
| 271 "cert/cert_database_openssl.cc", | 275 "cert/cert_database_openssl.cc", |
| 272 "cert/cert_verify_proc_openssl.cc", | 276 "cert/cert_verify_proc_openssl.cc", |
| 273 "cert/cert_verify_proc_openssl.h", | 277 "cert/cert_verify_proc_openssl.h", |
| 274 "cert/test_root_certs_openssl.cc", | 278 "cert/test_root_certs_openssl.cc", |
| 275 "cert/x509_certificate_openssl.cc", | 279 "cert/x509_certificate_openssl.cc", |
| 276 "ssl/openssl_client_key_store.cc", | 280 "ssl/openssl_client_key_store.cc", |
| 277 "ssl/openssl_client_key_store.h", | 281 "ssl/openssl_client_key_store.h", |
| 278 ] | 282 ] |
| 279 if (is_android) { | 283 if (is_android) { |
| 280 sources -= [ "base/openssl_private_key_store_android.cc" ] | 284 sources -= [ "base/openssl_private_key_store_android.cc" ] |
| 281 } | 285 } |
| 282 } else if (is_android) { | 286 } else { |
| 283 # Android doesn't use these even when using OpenSSL. | 287 if (is_android) { |
| 288 # Android doesn't use these even when using OpenSSL. |
| 289 sources -= [ |
| 290 "base/openssl_private_key_store_memory.cc", |
| 291 "cert/cert_database_openssl.cc", |
| 292 "cert/cert_verify_proc_openssl.cc", |
| 293 "cert/test_root_certs_openssl.cc", |
| 294 ] |
| 295 } |
| 296 |
| 297 # TODO(davidben): Remove these exclusions when use_openssl_certs builds also |
| 298 # use the SSLPrivateKey machinery. |
| 284 sources -= [ | 299 sources -= [ |
| 285 "base/openssl_private_key_store_memory.cc", | 300 "ssl/threaded_ssl_private_key.cc", |
| 286 "cert/cert_database_openssl.cc", | 301 "ssl/threaded_ssl_private_key.h", |
| 287 "cert/cert_verify_proc_openssl.cc", | |
| 288 "cert/test_root_certs_openssl.cc", | |
| 289 ] | 302 ] |
| 290 } | 303 } |
| 291 | 304 |
| 292 if (use_glib && !is_chromeos) { | 305 if (use_glib && !is_chromeos) { |
| 293 configs += [ "//build/config/linux:gconf" ] | 306 configs += [ "//build/config/linux:gconf" ] |
| 294 deps += [ "//build/config/linux:gio" ] | 307 deps += [ "//build/config/linux:gio" ] |
| 295 } | 308 } |
| 296 | 309 |
| 297 if (is_linux) { | 310 if (is_linux) { |
| 298 configs += [ "//build/config/linux:libresolv" ] | 311 configs += [ "//build/config/linux:libresolv" ] |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 331 # These were already removed on non-ChromeOS. | 344 # These were already removed on non-ChromeOS. |
| 332 sources -= [ | 345 sources -= [ |
| 333 "cert/nss_cert_database_chromeos.cc", | 346 "cert/nss_cert_database_chromeos.cc", |
| 334 "cert/nss_cert_database_chromeos.h", | 347 "cert/nss_cert_database_chromeos.h", |
| 335 "cert/nss_profile_filter_chromeos.cc", | 348 "cert/nss_profile_filter_chromeos.cc", |
| 336 "cert/nss_profile_filter_chromeos.h", | 349 "cert/nss_profile_filter_chromeos.h", |
| 337 "ssl/client_cert_store_chromeos.cc", | 350 "ssl/client_cert_store_chromeos.cc", |
| 338 "ssl/client_cert_store_chromeos.h", | 351 "ssl/client_cert_store_chromeos.h", |
| 339 ] | 352 ] |
| 340 } | 353 } |
| 341 if (use_openssl) { | 354 sources -= [ "ssl/ssl_platform_key_nss.cc" ] |
| 342 sources -= [ "ssl/openssl_platform_key_nss.cc" ] | |
| 343 } | |
| 344 } else if (use_openssl) { | 355 } else if (use_openssl) { |
| 345 # client_cert_store_nss.c requires NSS_CmpCertChainWCANames from NSS's | 356 # client_cert_store_nss.c requires NSS_CmpCertChainWCANames from NSS's |
| 346 # libssl, but our bundled copy is not built in OpenSSL ports. Pull that file | 357 # libssl, but our bundled copy is not built in OpenSSL ports. Pull that file |
| 347 # in directly. | 358 # in directly. |
| 348 sources += [ "third_party/nss/ssl/cmpcert.c" ] | 359 sources += [ "third_party/nss/ssl/cmpcert.c" ] |
| 349 } | 360 } |
| 350 | 361 |
| 351 if (!enable_websockets) { | 362 if (!enable_websockets) { |
| 352 sources -= [ | 363 sources -= [ |
| 353 "websockets/websocket_basic_handshake_stream.cc", | 364 "websockets/websocket_basic_handshake_stream.cc", |
| (...skipping 1269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1623 } else { | 1634 } else { |
| 1624 sources -= [ "proxy/proxy_resolver_perftest.cc" ] | 1635 sources -= [ "proxy/proxy_resolver_perftest.cc" ] |
| 1625 } | 1636 } |
| 1626 | 1637 |
| 1627 if (is_win && icu_use_data_file) { | 1638 if (is_win && icu_use_data_file) { |
| 1628 # This is needed to trigger the dll copy step on windows. | 1639 # This is needed to trigger the dll copy step on windows. |
| 1629 # TODO(mark): Specifying this here shouldn't be necessary. | 1640 # TODO(mark): Specifying this here shouldn't be necessary. |
| 1630 deps += [ "//third_party/icu:icudata" ] | 1641 deps += [ "//third_party/icu:icudata" ] |
| 1631 } | 1642 } |
| 1632 } | 1643 } |
| OLD | NEW |