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/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 Loading... |
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. | |
186 net_shared_sources -= [ | 185 net_shared_sources -= [ |
187 "cert/cert_verify_proc_nss.cc", | 186 "cert/x509_util_ios.cc", |
188 "cert/cert_verify_proc_nss.h", | 187 "cert/x509_util_ios.h", |
189 ] | 188 ] |
190 } | 189 } |
191 if (!use_nss_certs && !is_ios) { | |
192 net_shared_sources -= [ "cert/x509_util_nss.h" ] | |
193 } | |
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", |
203 "quic/crypto/aes_128_gcm_12_decrypter_openssl.cc", | 199 "quic/crypto/aes_128_gcm_12_decrypter_openssl.cc", |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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) { | |
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) { | 293 if (is_chromeos) { |
310 # These were already removed on non-ChromeOS. | 294 # These were already removed on non-ChromeOS. |
311 net_shared_sources -= [ | 295 net_shared_sources -= [ |
312 "cert/nss_cert_database_chromeos.cc", | 296 "cert/nss_cert_database_chromeos.cc", |
313 "cert/nss_cert_database_chromeos.h", | 297 "cert/nss_cert_database_chromeos.h", |
314 "cert/nss_profile_filter_chromeos.cc", | 298 "cert/nss_profile_filter_chromeos.cc", |
315 "cert/nss_profile_filter_chromeos.h", | 299 "cert/nss_profile_filter_chromeos.h", |
316 ] | 300 ] |
317 } | 301 } |
318 net_shared_sources -= [ | 302 net_shared_sources -= [ |
319 "ssl/client_key_store.cc", | 303 "ssl/client_key_store.cc", |
320 "ssl/client_key_store.h", | 304 "ssl/client_key_store.h", |
321 "ssl/ssl_platform_key_nss.cc", | 305 "ssl/ssl_platform_key_nss.cc", |
322 ] | 306 ] |
323 } else if (use_openssl) { | 307 } else if (use_openssl) { |
324 # client_cert_store_nss.c requires NSS_CmpCertChainWCANames from NSS's | 308 # 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 | 309 # libssl, but our bundled copy is not built in OpenSSL ports. Pull that file |
326 # in directly. | 310 # in directly. |
327 net_shared_sources += [ "third_party/nss/ssl/cmpcert.c" ] | 311 net_shared_sources += [ "third_party/nss/ssl/cmpcert.c" ] |
328 } | 312 } |
329 | 313 |
| 314 if (!use_nss_verifier) { |
| 315 # These files are part of the partial implementation of NSS for |
| 316 # cert verification, so keep them in that case. |
| 317 net_shared_sources -= [ |
| 318 "cert/cert_verify_proc_nss.cc", |
| 319 "cert/cert_verify_proc_nss.h", |
| 320 "cert/test_root_certs_nss.cc", |
| 321 "cert/x509_util_nss_certs.cc", |
| 322 "cert_net/nss_ocsp.cc", |
| 323 "cert_net/nss_ocsp.h", |
| 324 ] |
| 325 } |
| 326 |
330 if (is_chromecast && use_nss_certs) { | 327 if (is_chromecast && use_nss_certs) { |
331 net_shared_sources += [ "ssl/ssl_platform_key_chromecast.cc" ] | 328 net_shared_sources += [ "ssl/ssl_platform_key_chromecast.cc" ] |
332 net_shared_sources -= [ "ssl/ssl_platform_key_nss.cc" ] | 329 net_shared_sources -= [ "ssl/ssl_platform_key_nss.cc" ] |
333 } | 330 } |
334 | 331 |
335 if (!enable_mdns) { | 332 if (!enable_mdns) { |
336 net_shared_sources -= [ | 333 net_shared_sources -= [ |
337 "dns/mdns_cache.cc", | 334 "dns/mdns_cache.cc", |
338 "dns/mdns_cache.h", | 335 "dns/mdns_cache.h", |
339 "dns/mdns_client.cc", | 336 "dns/mdns_client.cc", |
(...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
706 "//net/tools/tld_cleanup", | 703 "//net/tools/tld_cleanup", |
707 "//testing/gmock", | 704 "//testing/gmock", |
708 "//testing/gtest", | 705 "//testing/gtest", |
709 "//url", | 706 "//url", |
710 ] | 707 ] |
711 | 708 |
712 if (!is_ios) { | 709 if (!is_ios) { |
713 public_deps += [ "//third_party/protobuf:py_proto" ] | 710 public_deps += [ "//third_party/protobuf:py_proto" ] |
714 } | 711 } |
715 | 712 |
716 if (use_nss_certs || is_ios) { | 713 if (use_nss_verifier) { |
717 public_deps += [ "//crypto:platform" ] | 714 public_deps += [ "//crypto:platform" ] |
718 } | 715 } |
719 | 716 |
720 if (is_android) { | 717 if (is_android) { |
721 sources += [ | 718 sources += [ |
722 "test/spawned_test_server/remote_test_server.cc", | 719 "test/spawned_test_server/remote_test_server.cc", |
723 "test/spawned_test_server/remote_test_server.h", | 720 "test/spawned_test_server/remote_test_server.h", |
724 "test/spawned_test_server/spawner_communicator.cc", | 721 "test/spawned_test_server/spawner_communicator.cc", |
725 "test/spawned_test_server/spawner_communicator.h", | 722 "test/spawned_test_server/spawner_communicator.h", |
726 ] | 723 ] |
(...skipping 769 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1496 sources -= [ | 1493 sources -= [ |
1497 "http/http_auth_gssapi_posix_unittest.cc", | 1494 "http/http_auth_gssapi_posix_unittest.cc", |
1498 "http/mock_gssapi_library_posix.cc", | 1495 "http/mock_gssapi_library_posix.cc", |
1499 "http/mock_gssapi_library_posix.h", | 1496 "http/mock_gssapi_library_posix.h", |
1500 ] | 1497 ] |
1501 } | 1498 } |
1502 if (!use_kerberos) { | 1499 if (!use_kerberos) { |
1503 sources -= [ "http/http_auth_handler_negotiate_unittest.cc" ] | 1500 sources -= [ "http/http_auth_handler_negotiate_unittest.cc" ] |
1504 } | 1501 } |
1505 | 1502 |
1506 if (!use_nss_certs && !is_ios) { | 1503 if (!use_nss_verifier) { |
1507 # Only include this test when on Posix and using NSS for | 1504 # 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" ] | 1505 sources -= [ "cert_net/nss_ocsp_unittest.cc" ] |
1510 } | 1506 } |
1511 | 1507 |
1512 if (!use_openssl_certs) { | 1508 if (!use_openssl_certs) { |
1513 sources -= [ "ssl/openssl_client_key_store_unittest.cc" ] | 1509 sources -= [ "ssl/openssl_client_key_store_unittest.cc" ] |
1514 } | 1510 } |
1515 | 1511 |
1516 if (!enable_websockets) { | 1512 if (!enable_websockets) { |
1517 sources -= [ | 1513 sources -= [ |
1518 "server/http_connection_unittest.cc", | 1514 "server/http_connection_unittest.cc", |
(...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1923 "//base", | 1919 "//base", |
1924 "//net", | 1920 "//net", |
1925 ] | 1921 ] |
1926 } | 1922 } |
1927 | 1923 |
1928 buildflag_header("features") { | 1924 buildflag_header("features") { |
1929 header = "net_features.h" | 1925 header = "net_features.h" |
1930 | 1926 |
1931 flags = [ "ENABLE_BIDIRECTIONAL_STREAM=$enable_bidirectional_stream" ] | 1927 flags = [ "ENABLE_BIDIRECTIONAL_STREAM=$enable_bidirectional_stream" ] |
1932 } | 1928 } |
OLD | NEW |