Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(16)

Side by Side Diff: net/BUILD.gn

Issue 1808963004: Adding macro to enable changing SSL library (Part 1) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix nits. Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ios/web/app/web_main_loop.mm ('k') | net/cert/cert_verify_proc.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/buildflag_header.gni") 5 import("//build/buildflag_header.gni")
6 import("//build/config/chromecast_build.gni") 6 import("//build/config/chromecast_build.gni")
7 import("//build/config/compiler/compiler.gni") 7 import("//build/config/compiler/compiler.gni")
8 import("//build/config/crypto.gni") 8 import("//build/config/crypto.gni")
9 import("//build/config/features.gni") 9 import("//build/config/features.gni")
10 import("//build/config/ui.gni") 10 import("//build/config/ui.gni")
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 "quic/crypto/proof_source_chromium_nss.cc", 175 "quic/crypto/proof_source_chromium_nss.cc",
176 "socket/nss_ssl_util.cc", 176 "socket/nss_ssl_util.cc",
177 "socket/nss_ssl_util.h", 177 "socket/nss_ssl_util.h",
178 "socket/ssl_client_socket_nss.cc", 178 "socket/ssl_client_socket_nss.cc",
179 "socket/ssl_client_socket_nss.h", 179 "socket/ssl_client_socket_nss.h",
180 "socket/ssl_server_socket_nss.cc", 180 "socket/ssl_server_socket_nss.cc",
181 "socket/ssl_server_socket_nss.h", 181 "socket/ssl_server_socket_nss.h",
182 "ssl/token_binding_nss.cc", 182 "ssl/token_binding_nss.cc",
183 ] 183 ]
184 if (is_ios) { 184 if (is_ios) {
185 # Always removed for !ios below. 185 net_shared_sources -= [ "cert/x509_util_ios.cc" ]
davidben 2016/03/17 20:19:45 Nit: This corresponds to line 310 on the GRD file,
186 net_shared_sources -= [
187 "cert/cert_verify_proc_nss.cc",
188 "cert/cert_verify_proc_nss.h",
189 ]
190 }
191 if (!use_nss_certs && !is_ios) {
192 net_shared_sources -= [ "cert/x509_util_nss.h" ]
193 } 186 }
194 } else { 187 } else {
195 net_shared_sources -= [ 188 net_shared_sources -= [
196 "cert/ct_log_verifier_openssl.cc", 189 "cert/ct_log_verifier_openssl.cc",
197 "cert/ct_objects_extractor_openssl.cc", 190 "cert/ct_objects_extractor_openssl.cc",
198 "cert/jwk_serializer_openssl.cc", 191 "cert/jwk_serializer_openssl.cc",
199 "cert/x509_util_openssl.cc", 192 "cert/x509_util_openssl.cc",
200 "cert/x509_util_openssl.h", 193 "cert/x509_util_openssl.h",
201 "quic/crypto/aead_base_decrypter_openssl.cc", 194 "quic/crypto/aead_base_decrypter_openssl.cc",
202 "quic/crypto/aead_base_encrypter_openssl.cc", 195 "quic/crypto/aead_base_encrypter_openssl.cc",
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 "cert/x509_certificate_nss.cc", 280 "cert/x509_certificate_nss.cc",
288 "ssl/client_cert_store_nss.cc", 281 "ssl/client_cert_store_nss.cc",
289 "ssl/client_cert_store_nss.h", 282 "ssl/client_cert_store_nss.h",
290 "third_party/mozilla_security_manager/nsKeygenHandler.cpp", 283 "third_party/mozilla_security_manager/nsKeygenHandler.cpp",
291 "third_party/mozilla_security_manager/nsKeygenHandler.h", 284 "third_party/mozilla_security_manager/nsKeygenHandler.h",
292 "third_party/mozilla_security_manager/nsNSSCertificateDB.cpp", 285 "third_party/mozilla_security_manager/nsNSSCertificateDB.cpp",
293 "third_party/mozilla_security_manager/nsNSSCertificateDB.h", 286 "third_party/mozilla_security_manager/nsNSSCertificateDB.h",
294 "third_party/mozilla_security_manager/nsPKCS12Blob.cpp", 287 "third_party/mozilla_security_manager/nsPKCS12Blob.cpp",
295 "third_party/mozilla_security_manager/nsPKCS12Blob.h", 288 "third_party/mozilla_security_manager/nsPKCS12Blob.h",
296 ] 289 ]
297 if (!is_ios) {
298 # These files are part of the partial implementation of NSS on iOS so
299 # keep them in that case (even though use_nss_certs is not set).
300 net_shared_sources -= [
301 "cert/cert_verify_proc_nss.cc",
302 "cert/cert_verify_proc_nss.h",
303 "cert/test_root_certs_nss.cc",
304 "cert/x509_util_nss_certs.cc",
305 "cert_net/nss_ocsp.cc",
306 "cert_net/nss_ocsp.h",
307 ]
308 }
309 if (is_chromeos) { 290 if (is_chromeos) {
310 # These were already removed on non-ChromeOS. 291 # These were already removed on non-ChromeOS.
311 net_shared_sources -= [ 292 net_shared_sources -= [
312 "cert/nss_cert_database_chromeos.cc", 293 "cert/nss_cert_database_chromeos.cc",
313 "cert/nss_cert_database_chromeos.h", 294 "cert/nss_cert_database_chromeos.h",
314 "cert/nss_profile_filter_chromeos.cc", 295 "cert/nss_profile_filter_chromeos.cc",
315 "cert/nss_profile_filter_chromeos.h", 296 "cert/nss_profile_filter_chromeos.h",
316 ] 297 ]
317 } 298 }
318 net_shared_sources -= [ 299 net_shared_sources -= [
319 "ssl/client_key_store.cc", 300 "ssl/client_key_store.cc",
320 "ssl/client_key_store.h", 301 "ssl/client_key_store.h",
321 "ssl/ssl_platform_key_nss.cc", 302 "ssl/ssl_platform_key_nss.cc",
322 ] 303 ]
323 } else if (use_openssl) { 304 } else if (use_openssl) {
324 # client_cert_store_nss.c requires NSS_CmpCertChainWCANames from NSS's 305 # client_cert_store_nss.c requires NSS_CmpCertChainWCANames from NSS's
325 # libssl, but our bundled copy is not built in OpenSSL ports. Pull that file 306 # libssl, but our bundled copy is not built in OpenSSL ports. Pull that file
326 # in directly. 307 # in directly.
327 net_shared_sources += [ "third_party/nss/ssl/cmpcert.c" ] 308 net_shared_sources += [ "third_party/nss/ssl/cmpcert.c" ]
328 } 309 }
329 310
311 if (!use_nss_verifier) {
312 # These files are part of the partial implementation of NSS for
313 # cert verification, so keep them in that case.
314 net_shared_sources -= [
315 "cert/cert_verify_proc_nss.cc",
316 "cert/cert_verify_proc_nss.h",
317 "cert/test_root_certs_nss.cc",
318 "cert/x509_util_nss_certs.cc",
319 "cert_net/nss_ocsp.cc",
320 "cert_net/nss_ocsp.h",
321 ]
322 }
323
330 if (is_chromecast && use_nss_certs) { 324 if (is_chromecast && use_nss_certs) {
331 net_shared_sources += [ "ssl/ssl_platform_key_chromecast.cc" ] 325 net_shared_sources += [ "ssl/ssl_platform_key_chromecast.cc" ]
332 net_shared_sources -= [ "ssl/ssl_platform_key_nss.cc" ] 326 net_shared_sources -= [ "ssl/ssl_platform_key_nss.cc" ]
333 } 327 }
334 328
335 if (!enable_mdns) { 329 if (!enable_mdns) {
336 net_shared_sources -= [ 330 net_shared_sources -= [
337 "dns/mdns_cache.cc", 331 "dns/mdns_cache.cc",
338 "dns/mdns_cache.h", 332 "dns/mdns_cache.h",
339 "dns/mdns_client.cc", 333 "dns/mdns_client.cc",
(...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after
706 "//net/tools/tld_cleanup", 700 "//net/tools/tld_cleanup",
707 "//testing/gmock", 701 "//testing/gmock",
708 "//testing/gtest", 702 "//testing/gtest",
709 "//url", 703 "//url",
710 ] 704 ]
711 705
712 if (!is_ios) { 706 if (!is_ios) {
713 public_deps += [ "//third_party/protobuf:py_proto" ] 707 public_deps += [ "//third_party/protobuf:py_proto" ]
714 } 708 }
715 709
716 if (use_nss_certs || is_ios) { 710 if (use_nss_verifier) {
717 public_deps += [ "//crypto:platform" ] 711 public_deps += [ "//crypto:platform" ]
718 } 712 }
719 713
720 if (is_android) { 714 if (is_android) {
721 sources += [ 715 sources += [
722 "test/spawned_test_server/remote_test_server.cc", 716 "test/spawned_test_server/remote_test_server.cc",
723 "test/spawned_test_server/remote_test_server.h", 717 "test/spawned_test_server/remote_test_server.h",
724 "test/spawned_test_server/spawner_communicator.cc", 718 "test/spawned_test_server/spawner_communicator.cc",
725 "test/spawned_test_server/spawner_communicator.h", 719 "test/spawned_test_server/spawner_communicator.h",
726 ] 720 ]
(...skipping 769 matching lines...) Expand 10 before | Expand all | Expand 10 after
1496 sources -= [ 1490 sources -= [
1497 "http/http_auth_gssapi_posix_unittest.cc", 1491 "http/http_auth_gssapi_posix_unittest.cc",
1498 "http/mock_gssapi_library_posix.cc", 1492 "http/mock_gssapi_library_posix.cc",
1499 "http/mock_gssapi_library_posix.h", 1493 "http/mock_gssapi_library_posix.h",
1500 ] 1494 ]
1501 } 1495 }
1502 if (!use_kerberos) { 1496 if (!use_kerberos) {
1503 sources -= [ "http/http_auth_handler_negotiate_unittest.cc" ] 1497 sources -= [ "http/http_auth_handler_negotiate_unittest.cc" ]
1504 } 1498 }
1505 1499
1506 if (!use_nss_certs && !is_ios) { 1500 if (!use_nss_verifier) {
1507 # Only include this test when on Posix and using NSS for 1501 # Only include this test when using NSS for cert verification.
1508 # cert verification or on iOS (which also uses NSS for certs).
1509 sources -= [ "cert_net/nss_ocsp_unittest.cc" ] 1502 sources -= [ "cert_net/nss_ocsp_unittest.cc" ]
1510 } 1503 }
1511 1504
1512 if (!use_openssl_certs) { 1505 if (!use_openssl_certs) {
1513 sources -= [ "ssl/openssl_client_key_store_unittest.cc" ] 1506 sources -= [ "ssl/openssl_client_key_store_unittest.cc" ]
1514 } 1507 }
1515 1508
1516 if (!enable_websockets) { 1509 if (!enable_websockets) {
1517 sources -= [ 1510 sources -= [
1518 "server/http_connection_unittest.cc", 1511 "server/http_connection_unittest.cc",
(...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after
1923 "//base", 1916 "//base",
1924 "//net", 1917 "//net",
1925 ] 1918 ]
1926 } 1919 }
1927 1920
1928 buildflag_header("features") { 1921 buildflag_header("features") {
1929 header = "net_features.h" 1922 header = "net_features.h"
1930 1923
1931 flags = [ "ENABLE_BIDIRECTIONAL_STREAM=$enable_bidirectional_stream" ] 1924 flags = [ "ENABLE_BIDIRECTIONAL_STREAM=$enable_bidirectional_stream" ]
1932 } 1925 }
OLDNEW
« no previous file with comments | « ios/web/app/web_main_loop.mm ('k') | net/cert/cert_verify_proc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698