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

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: 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
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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 defines = [] 59 defines = []
60 if (posix_avoid_mmap) { 60 if (posix_avoid_mmap) {
61 defines += [ "POSIX_AVOID_MMAP" ] 61 defines += [ "POSIX_AVOID_MMAP" ]
62 } 62 }
63 if (disable_file_support) { 63 if (disable_file_support) {
64 defines += [ "DISABLE_FILE_SUPPORT" ] 64 defines += [ "DISABLE_FILE_SUPPORT" ]
65 } 65 }
66 if (disable_ftp_support) { 66 if (disable_ftp_support) {
67 defines += [ "DISABLE_FTP_SUPPORT=1" ] 67 defines += [ "DISABLE_FTP_SUPPORT=1" ]
68 } 68 }
69 if (use_nss_verifier) {
70 defines += [ "USE_NSS_VERIFIER=1" ]
71 }
davidben 2016/03/17 19:48:08 This is already in build/config/BUILD.gn, right?
svaldez 2016/03/17 20:04:18 Done.
69 } 72 }
70 73
71 # net_internal_config is shared with net and net_small. 74 # net_internal_config is shared with net and net_small.
72 config("net_internal_config") { 75 config("net_internal_config") {
73 defines = [ 76 defines = [
74 # TODO(GYP) Note that the GYP file supports linux_link_kerberos (defaults to 77 # TODO(GYP) Note that the GYP file supports linux_link_kerberos (defaults to
75 # 0) which implies that we run pkg_config on kerberos and link to that 78 # 0) which implies that we run pkg_config on kerberos and link to that
76 # rather than setting this define which will dynamically open it. That 79 # rather than setting this define which will dynamically open it. That
77 # doesn't seem to be set in the regular builds, so we're skipping this 80 # doesn't seem to be set in the regular builds, so we're skipping this
78 # capability here. 81 # capability here.
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 "quic/crypto/proof_source_chromium_nss.cc", 178 "quic/crypto/proof_source_chromium_nss.cc",
176 "socket/nss_ssl_util.cc", 179 "socket/nss_ssl_util.cc",
177 "socket/nss_ssl_util.h", 180 "socket/nss_ssl_util.h",
178 "socket/ssl_client_socket_nss.cc", 181 "socket/ssl_client_socket_nss.cc",
179 "socket/ssl_client_socket_nss.h", 182 "socket/ssl_client_socket_nss.h",
180 "socket/ssl_server_socket_nss.cc", 183 "socket/ssl_server_socket_nss.cc",
181 "socket/ssl_server_socket_nss.h", 184 "socket/ssl_server_socket_nss.h",
182 "ssl/token_binding_nss.cc", 185 "ssl/token_binding_nss.cc",
183 ] 186 ]
184 if (is_ios) { 187 if (is_ios) {
185 # Always removed for !ios below. 188 net_shared_sources -= [ "cert/x509_util_ios.cc" ]
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 } 189 }
194 } else { 190 } else {
195 net_shared_sources -= [ 191 net_shared_sources -= [
196 "cert/ct_log_verifier_openssl.cc", 192 "cert/ct_log_verifier_openssl.cc",
197 "cert/ct_objects_extractor_openssl.cc", 193 "cert/ct_objects_extractor_openssl.cc",
198 "cert/jwk_serializer_openssl.cc", 194 "cert/jwk_serializer_openssl.cc",
199 "cert/x509_util_openssl.cc", 195 "cert/x509_util_openssl.cc",
200 "cert/x509_util_openssl.h", 196 "cert/x509_util_openssl.h",
201 "quic/crypto/aead_base_decrypter_openssl.cc", 197 "quic/crypto/aead_base_decrypter_openssl.cc",
202 "quic/crypto/aead_base_encrypter_openssl.cc", 198 "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", 283 "cert/x509_certificate_nss.cc",
288 "ssl/client_cert_store_nss.cc", 284 "ssl/client_cert_store_nss.cc",
289 "ssl/client_cert_store_nss.h", 285 "ssl/client_cert_store_nss.h",
290 "third_party/mozilla_security_manager/nsKeygenHandler.cpp", 286 "third_party/mozilla_security_manager/nsKeygenHandler.cpp",
291 "third_party/mozilla_security_manager/nsKeygenHandler.h", 287 "third_party/mozilla_security_manager/nsKeygenHandler.h",
292 "third_party/mozilla_security_manager/nsNSSCertificateDB.cpp", 288 "third_party/mozilla_security_manager/nsNSSCertificateDB.cpp",
293 "third_party/mozilla_security_manager/nsNSSCertificateDB.h", 289 "third_party/mozilla_security_manager/nsNSSCertificateDB.h",
294 "third_party/mozilla_security_manager/nsPKCS12Blob.cpp", 290 "third_party/mozilla_security_manager/nsPKCS12Blob.cpp",
295 "third_party/mozilla_security_manager/nsPKCS12Blob.h", 291 "third_party/mozilla_security_manager/nsPKCS12Blob.h",
296 ] 292 ]
297 if (!is_ios) { 293 if (!use_nss_verifier) {
davidben 2016/03/17 19:48:08 Nit: Should this be outside of the !use_nss_certs
svaldez 2016/03/17 20:04:18 Done.
298 # These files are part of the partial implementation of NSS on iOS so 294 # These files are part of the partial implementation of NSS for
299 # keep them in that case (even though use_nss_certs is not set). 295 # cert verification, so keep them in that case.
300 net_shared_sources -= [ 296 net_shared_sources -= [
301 "cert/cert_verify_proc_nss.cc", 297 "cert/cert_verify_proc_nss.cc",
302 "cert/cert_verify_proc_nss.h", 298 "cert/cert_verify_proc_nss.h",
303 "cert/test_root_certs_nss.cc", 299 "cert/test_root_certs_nss.cc",
304 "cert/x509_util_nss_certs.cc", 300 "cert/x509_util_nss_certs.cc",
305 "cert_net/nss_ocsp.cc", 301 "cert_net/nss_ocsp.cc",
306 "cert_net/nss_ocsp.h", 302 "cert_net/nss_ocsp.h",
307 ] 303 ]
308 } 304 }
309 if (is_chromeos) { 305 if (is_chromeos) {
(...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after
706 "//net/tools/tld_cleanup", 702 "//net/tools/tld_cleanup",
707 "//testing/gmock", 703 "//testing/gmock",
708 "//testing/gtest", 704 "//testing/gtest",
709 "//url", 705 "//url",
710 ] 706 ]
711 707
712 if (!is_ios) { 708 if (!is_ios) {
713 public_deps += [ "//third_party/protobuf:py_proto" ] 709 public_deps += [ "//third_party/protobuf:py_proto" ]
714 } 710 }
715 711
716 if (use_nss_certs || is_ios) { 712 if (use_nss_verifier) {
717 public_deps += [ "//crypto:platform" ] 713 public_deps += [ "//crypto:platform" ]
718 } 714 }
719 715
720 if (is_android) { 716 if (is_android) {
721 sources += [ 717 sources += [
722 "test/spawned_test_server/remote_test_server.cc", 718 "test/spawned_test_server/remote_test_server.cc",
723 "test/spawned_test_server/remote_test_server.h", 719 "test/spawned_test_server/remote_test_server.h",
724 "test/spawned_test_server/spawner_communicator.cc", 720 "test/spawned_test_server/spawner_communicator.cc",
725 "test/spawned_test_server/spawner_communicator.h", 721 "test/spawned_test_server/spawner_communicator.h",
726 ] 722 ]
(...skipping 769 matching lines...) Expand 10 before | Expand all | Expand 10 after
1496 sources -= [ 1492 sources -= [
1497 "http/http_auth_gssapi_posix_unittest.cc", 1493 "http/http_auth_gssapi_posix_unittest.cc",
1498 "http/mock_gssapi_library_posix.cc", 1494 "http/mock_gssapi_library_posix.cc",
1499 "http/mock_gssapi_library_posix.h", 1495 "http/mock_gssapi_library_posix.h",
1500 ] 1496 ]
1501 } 1497 }
1502 if (!use_kerberos) { 1498 if (!use_kerberos) {
1503 sources -= [ "http/http_auth_handler_negotiate_unittest.cc" ] 1499 sources -= [ "http/http_auth_handler_negotiate_unittest.cc" ]
1504 } 1500 }
1505 1501
1506 if (!use_nss_certs && !is_ios) { 1502 if (!use_nss_verifier) {
1507 # Only include this test when on Posix and using NSS for 1503 # 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" ] 1504 sources -= [ "cert_net/nss_ocsp_unittest.cc" ]
1510 } 1505 }
1511 1506
1512 if (!use_openssl_certs) { 1507 if (!use_openssl_certs) {
1513 sources -= [ "ssl/openssl_client_key_store_unittest.cc" ] 1508 sources -= [ "ssl/openssl_client_key_store_unittest.cc" ]
1514 } 1509 }
1515 1510
1516 if (!enable_websockets) { 1511 if (!enable_websockets) {
1517 sources -= [ 1512 sources -= [
1518 "server/http_connection_unittest.cc", 1513 "server/http_connection_unittest.cc",
(...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after
1923 "//base", 1918 "//base",
1924 "//net", 1919 "//net",
1925 ] 1920 ]
1926 } 1921 }
1927 1922
1928 buildflag_header("features") { 1923 buildflag_header("features") {
1929 header = "net_features.h" 1924 header = "net_features.h"
1930 1925
1931 flags = [ "ENABLE_BIDIRECTIONAL_STREAM=$enable_bidirectional_stream" ] 1926 flags = [ "ENABLE_BIDIRECTIONAL_STREAM=$enable_bidirectional_stream" ]
1932 } 1927 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698