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 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 } | 153 } |
154 | 154 |
155 if (!enable_built_in_dns) { | 155 if (!enable_built_in_dns) { |
156 sources -= [ | 156 sources -= [ |
157 "dns/address_sorter_posix.cc", | 157 "dns/address_sorter_posix.cc", |
158 "dns/address_sorter_posix.h", | 158 "dns/address_sorter_posix.h", |
159 "dns/dns_client.cc", | 159 "dns/dns_client.cc", |
160 ] | 160 ] |
161 } | 161 } |
162 | 162 |
163 if (use_openssl) { | |
164 sources -= [ | |
165 "base/nss_memio.c", | |
166 "base/nss_memio.h", | |
167 "cert/ct_log_verifier_nss.cc", | |
168 "cert/ct_objects_extractor_nss.cc", | |
169 "cert/jwk_serializer_nss.cc", | |
170 "cert/scoped_nss_types.h", | |
171 "cert/x509_util_nss.cc", | |
172 "quic/crypto/aead_base_decrypter_nss.cc", | |
173 "quic/crypto/aead_base_encrypter_nss.cc", | |
174 "quic/crypto/aes_128_gcm_12_decrypter_nss.cc", | |
175 "quic/crypto/aes_128_gcm_12_encrypter_nss.cc", | |
176 "quic/crypto/chacha20_poly1305_rfc7539_decrypter_nss.cc", | |
177 "quic/crypto/chacha20_poly1305_rfc7539_encrypter_nss.cc", | |
178 "quic/crypto/channel_id_nss.cc", | |
179 "quic/crypto/p256_key_exchange_nss.cc", | |
180 "quic/crypto/proof_source_chromium_nss.cc", | |
181 "socket/nss_ssl_util.cc", | |
182 "socket/nss_ssl_util.h", | |
183 "socket/ssl_client_socket_nss.cc", | |
184 "socket/ssl_client_socket_nss.h", | |
185 "socket/ssl_server_socket_nss.cc", | |
186 "socket/ssl_server_socket_nss.h", | |
187 "ssl/token_binding_nss.cc", | |
188 ] | |
189 if (is_ios) { | |
190 sources -= [ | |
191 "cert/x509_util_ios.cc", | |
192 "cert/x509_util_ios.h", | |
193 ] | |
194 } | |
195 } else { | |
196 sources -= [ | |
197 "cert/ct_log_verifier_openssl.cc", | |
198 "cert/ct_objects_extractor_openssl.cc", | |
199 "cert/jwk_serializer_openssl.cc", | |
200 "cert/x509_util_openssl.cc", | |
201 "cert/x509_util_openssl.h", | |
202 "quic/crypto/aead_base_decrypter_openssl.cc", | |
203 "quic/crypto/aead_base_encrypter_openssl.cc", | |
204 "quic/crypto/aes_128_gcm_12_decrypter_openssl.cc", | |
205 "quic/crypto/aes_128_gcm_12_encrypter_openssl.cc", | |
206 "quic/crypto/chacha20_poly1305_rfc7539_decrypter_openssl.cc", | |
207 "quic/crypto/chacha20_poly1305_rfc7539_encrypter_openssl.cc", | |
208 "quic/crypto/channel_id_openssl.cc", | |
209 "quic/crypto/p256_key_exchange_openssl.cc", | |
210 "quic/crypto/proof_source_chromium_openssl.cc", | |
211 "quic/crypto/scoped_evp_aead_ctx.cc", | |
212 "quic/crypto/scoped_evp_aead_ctx.h", | |
213 "socket/ssl_client_socket_openssl.cc", | |
214 "socket/ssl_client_socket_openssl.h", | |
215 "socket/ssl_server_socket_openssl.cc", | |
216 "socket/ssl_server_socket_openssl.h", | |
217 "ssl/openssl_ssl_util.cc", | |
218 "ssl/openssl_ssl_util.h", | |
219 "ssl/ssl_client_session_cache_openssl.cc", | |
220 "ssl/ssl_client_session_cache_openssl.h", | |
221 "ssl/ssl_key_logger.cc", | |
222 "ssl/ssl_key_logger.h", | |
223 "ssl/ssl_platform_key.h", | |
224 "ssl/ssl_platform_key_task_runner.cc", | |
225 "ssl/ssl_platform_key_task_runner.h", | |
226 "ssl/test_ssl_private_key.cc", | |
227 "ssl/test_ssl_private_key.h", | |
228 "ssl/threaded_ssl_private_key.cc", | |
229 "ssl/threaded_ssl_private_key.h", | |
230 "ssl/token_binding_openssl.cc", | |
231 ] | |
232 } | |
233 | |
234 if (!use_openssl_certs) { | 163 if (!use_openssl_certs) { |
235 sources -= [ | 164 sources -= [ |
236 "base/crypto_module_openssl.cc", | 165 "base/crypto_module_openssl.cc", |
237 "base/keygen_handler_openssl.cc", | 166 "base/keygen_handler_openssl.cc", |
238 "base/openssl_private_key_store.h", | 167 "base/openssl_private_key_store.h", |
239 "base/openssl_private_key_store_memory.cc", | 168 "base/openssl_private_key_store_memory.cc", |
240 "cert/cert_database_openssl.cc", | 169 "cert/cert_database_openssl.cc", |
241 "cert/cert_verify_proc_openssl.cc", | 170 "cert/cert_verify_proc_openssl.cc", |
242 "cert/cert_verify_proc_openssl.h", | 171 "cert/cert_verify_proc_openssl.h", |
243 "cert/test_root_certs_openssl.cc", | 172 "cert/test_root_certs_openssl.cc", |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
295 "cert/nss_cert_database_chromeos.h", | 224 "cert/nss_cert_database_chromeos.h", |
296 "cert/nss_profile_filter_chromeos.cc", | 225 "cert/nss_profile_filter_chromeos.cc", |
297 "cert/nss_profile_filter_chromeos.h", | 226 "cert/nss_profile_filter_chromeos.h", |
298 ] | 227 ] |
299 } | 228 } |
300 sources -= [ | 229 sources -= [ |
301 "ssl/client_key_store.cc", | 230 "ssl/client_key_store.cc", |
302 "ssl/client_key_store.h", | 231 "ssl/client_key_store.h", |
303 "ssl/ssl_platform_key_nss.cc", | 232 "ssl/ssl_platform_key_nss.cc", |
304 ] | 233 ] |
305 } else if (use_openssl) { | 234 } else { |
306 # client_cert_store_nss.c requires NSS_CmpCertChainWCANames from NSS's | 235 # client_cert_store_nss.c requires NSS_CmpCertChainWCANames from NSS's |
307 # libssl, but our bundled copy is not built in OpenSSL ports. Pull that | 236 # libssl, but our bundled copy is not built in OpenSSL ports. Pull that |
308 # file in directly. | 237 # file in directly. |
309 sources += [ "third_party/nss/ssl/cmpcert.c" ] | 238 sources += [ "third_party/nss/ssl/cmpcert.c" ] |
310 } | 239 } |
311 | 240 |
312 if (!use_nss_verifier) { | 241 if (!use_nss_certs) { |
313 # These files are part of the partial implementation of NSS for | 242 # These files are part of the partial implementation of NSS for |
314 # cert verification, so keep them in that case. | 243 # cert verification, so keep them in that case. |
315 sources -= [ | 244 sources -= [ |
316 "cert/cert_verify_proc_nss.cc", | 245 "cert/cert_verify_proc_nss.cc", |
317 "cert/cert_verify_proc_nss.h", | 246 "cert/cert_verify_proc_nss.h", |
318 "cert/test_root_certs_nss.cc", | 247 "cert/test_root_certs_nss.cc", |
319 "cert/x509_util_nss_certs.cc", | 248 "cert/x509_util_nss.cc", |
320 "cert_net/nss_ocsp.cc", | 249 "cert_net/nss_ocsp.cc", |
321 "cert_net/nss_ocsp.h", | 250 "cert_net/nss_ocsp.h", |
322 ] | 251 ] |
323 } | 252 } |
324 | 253 |
325 if (is_ios && use_nss_verifier) { | |
326 sources -= [ | |
327 "cert/cert_verify_proc_ios.cc", | |
328 "cert/cert_verify_proc_ios.h", | |
329 "cert/x509_certificate_openssl_ios.cc", | |
330 ] | |
331 | |
332 deps += [ | |
333 "//net/third_party/nss/ssl:libssl", | |
334 "//third_party/nss", | |
335 "//third_party/nss:nspr", | |
336 ] | |
337 } | |
338 | |
339 if (is_chromecast && use_nss_certs) { | 254 if (is_chromecast && use_nss_certs) { |
340 sources += [ "ssl/ssl_platform_key_chromecast.cc" ] | 255 sources += [ "ssl/ssl_platform_key_chromecast.cc" ] |
341 sources -= [ "ssl/ssl_platform_key_nss.cc" ] | 256 sources -= [ "ssl/ssl_platform_key_nss.cc" ] |
342 } | 257 } |
343 | 258 |
344 if (!enable_mdns) { | 259 if (!enable_mdns) { |
345 sources -= [ | 260 sources -= [ |
346 "dns/mdns_cache.cc", | 261 "dns/mdns_cache.cc", |
347 "dns/mdns_cache.h", | 262 "dns/mdns_cache.h", |
348 "dns/mdns_client.cc", | 263 "dns/mdns_client.cc", |
(...skipping 24 matching lines...) Expand all Loading... |
373 # Add back some sources that were otherwise filtered out. | 288 # Add back some sources that were otherwise filtered out. |
374 # iOS needs some Mac files. | 289 # iOS needs some Mac files. |
375 net_unfiltered_sources += [ | 290 net_unfiltered_sources += [ |
376 "base/mac/url_conversions.h", | 291 "base/mac/url_conversions.h", |
377 "base/mac/url_conversions.mm", | 292 "base/mac/url_conversions.mm", |
378 "base/network_change_notifier_mac.cc", | 293 "base/network_change_notifier_mac.cc", |
379 "base/network_config_watcher_mac.cc", | 294 "base/network_config_watcher_mac.cc", |
380 "base/network_interfaces_mac.cc", | 295 "base/network_interfaces_mac.cc", |
381 "base/network_interfaces_mac.h", | 296 "base/network_interfaces_mac.h", |
382 "base/platform_mime_util_mac.mm", | 297 "base/platform_mime_util_mac.mm", |
| 298 "cert/test_root_certs_mac.cc", |
383 "proxy/proxy_resolver_mac.cc", | 299 "proxy/proxy_resolver_mac.cc", |
384 "proxy/proxy_server_mac.cc", | 300 "proxy/proxy_server_mac.cc", |
385 ] | 301 ] |
386 | 302 |
387 sources -= [ "disk_cache/blockfile/file_posix.cc" ] | 303 sources -= [ "disk_cache/blockfile/file_posix.cc" ] |
388 } | 304 } |
389 | 305 |
390 if (is_ios && !use_nss_verifier) { | |
391 net_unfiltered_sources += [ "cert/test_root_certs_mac.cc" ] | |
392 sources -= [ "cert/x509_certificate_ios.cc" ] | |
393 } | |
394 | |
395 if (is_ios || is_mac) { | 306 if (is_ios || is_mac) { |
396 sources += gypi_values.net_base_mac_ios_sources | 307 sources += gypi_values.net_base_mac_ios_sources |
397 } | 308 } |
398 | 309 |
399 if (is_android) { | 310 if (is_android) { |
400 deps += [ ":net_jni_headers" ] | 311 deps += [ ":net_jni_headers" ] |
401 | 312 |
402 # Add some Linux sources that were excluded by the filter, but which | 313 # Add some Linux sources that were excluded by the filter, but which |
403 # are needed. | 314 # are needed. |
404 net_unfiltered_sources += [ | 315 net_unfiltered_sources += [ |
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
714 "//net/tools/tld_cleanup", | 625 "//net/tools/tld_cleanup", |
715 "//testing/gmock", | 626 "//testing/gmock", |
716 "//testing/gtest", | 627 "//testing/gtest", |
717 "//url", | 628 "//url", |
718 ] | 629 ] |
719 | 630 |
720 if (!is_ios) { | 631 if (!is_ios) { |
721 public_deps += [ "//third_party/protobuf:py_proto" ] | 632 public_deps += [ "//third_party/protobuf:py_proto" ] |
722 } | 633 } |
723 | 634 |
724 if (use_nss_verifier) { | 635 if (use_nss_certs) { |
725 public_deps += [ "//crypto:platform" ] | 636 public_deps += [ "//crypto:platform" ] |
726 } | 637 } |
727 | 638 |
728 if (is_android) { | 639 if (is_android) { |
729 sources += [ | 640 sources += [ |
730 "test/spawned_test_server/remote_test_server.cc", | 641 "test/spawned_test_server/remote_test_server.cc", |
731 "test/spawned_test_server/remote_test_server.h", | 642 "test/spawned_test_server/remote_test_server.h", |
732 "test/spawned_test_server/spawner_communicator.cc", | 643 "test/spawned_test_server/spawner_communicator.cc", |
733 "test/spawned_test_server/spawner_communicator.h", | 644 "test/spawned_test_server/spawner_communicator.h", |
734 ] | 645 ] |
(...skipping 720 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1455 "//testing/gmock", | 1366 "//testing/gmock", |
1456 "//testing/gtest", | 1367 "//testing/gtest", |
1457 "//third_party/zlib", | 1368 "//third_party/zlib", |
1458 "//url", | 1369 "//url", |
1459 "//url:url_features", | 1370 "//url:url_features", |
1460 ] | 1371 ] |
1461 | 1372 |
1462 data = [ | 1373 data = [ |
1463 "data/", | 1374 "data/", |
1464 ] | 1375 ] |
1465 data_deps = [] | 1376 data_deps = [ |
1466 | 1377 "third_party/nist-pkits/", |
1467 if (use_openssl) { | 1378 ] |
1468 data_deps += [ "third_party/nist-pkits/" ] | |
1469 } | |
1470 | 1379 |
1471 if (is_linux || is_mac || is_win) { | 1380 if (is_linux || is_mac || is_win) { |
1472 deps += [ | 1381 deps += [ |
1473 "//third_party/pyftpdlib/", | 1382 "//third_party/pyftpdlib/", |
1474 "//third_party/pywebsocket/", | 1383 "//third_party/pywebsocket/", |
1475 "//third_party/tlslite/", | 1384 "//third_party/tlslite/", |
1476 ] | 1385 ] |
1477 data_deps += [ | 1386 data_deps += [ |
1478 "//third_party/pyftpdlib/", | 1387 "//third_party/pyftpdlib/", |
1479 "//third_party/pywebsocket/", | 1388 "//third_party/pywebsocket/", |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1518 "ssl/client_cert_store_nss_unittest.cc", | 1427 "ssl/client_cert_store_nss_unittest.cc", |
1519 ] | 1428 ] |
1520 if (is_chromeos) { # Already removed for all non-ChromeOS builds. | 1429 if (is_chromeos) { # Already removed for all non-ChromeOS builds. |
1521 sources -= [ | 1430 sources -= [ |
1522 "cert/nss_cert_database_chromeos_unittest.cc", | 1431 "cert/nss_cert_database_chromeos_unittest.cc", |
1523 "cert/nss_profile_filter_chromeos_unittest.cc", | 1432 "cert/nss_profile_filter_chromeos_unittest.cc", |
1524 ] | 1433 ] |
1525 } | 1434 } |
1526 } | 1435 } |
1527 | 1436 |
1528 if (use_openssl) { | |
1529 sources -= [ "quic/test_tools/crypto_test_utils_nss.cc" ] | |
1530 } else { | |
1531 sources -= [ | |
1532 "quic/test_tools/crypto_test_utils_openssl.cc", | |
1533 "ssl/ssl_client_session_cache_openssl_unittest.cc", | |
1534 ] | |
1535 } | |
1536 | |
1537 if (use_kerberos) { | 1437 if (use_kerberos) { |
1538 defines += [ "USE_KERBEROS" ] | 1438 defines += [ "USE_KERBEROS" ] |
1539 } | 1439 } |
1540 | 1440 |
1541 # These are excluded on Android, because the actual Kerberos support, which | 1441 # These are excluded on Android, because the actual Kerberos support, which |
1542 # these test, is in a separate app on Android. | 1442 # these test, is in a separate app on Android. |
1543 if (!use_kerberos || is_android) { | 1443 if (!use_kerberos || is_android) { |
1544 sources -= [ | 1444 sources -= [ |
1545 "http/http_auth_gssapi_posix_unittest.cc", | 1445 "http/http_auth_gssapi_posix_unittest.cc", |
1546 "http/mock_gssapi_library_posix.cc", | 1446 "http/mock_gssapi_library_posix.cc", |
1547 "http/mock_gssapi_library_posix.h", | 1447 "http/mock_gssapi_library_posix.h", |
1548 ] | 1448 ] |
1549 } | 1449 } |
1550 if (!use_kerberos) { | 1450 if (!use_kerberos) { |
1551 sources -= [ "http/http_auth_handler_negotiate_unittest.cc" ] | 1451 sources -= [ "http/http_auth_handler_negotiate_unittest.cc" ] |
1552 } | 1452 } |
1553 | 1453 |
1554 if (!use_nss_verifier) { | 1454 if (!use_nss_certs) { |
1555 # Only include this test when using NSS for cert verification. | 1455 # Only include this test when using NSS for cert verification. |
1556 sources -= [ "cert_net/nss_ocsp_unittest.cc" ] | 1456 sources -= [ "cert_net/nss_ocsp_unittest.cc" ] |
1557 } | 1457 } |
1558 | 1458 |
1559 if (!use_openssl_certs) { | 1459 if (!use_openssl_certs) { |
1560 sources -= [ "ssl/openssl_client_key_store_unittest.cc" ] | 1460 sources -= [ "ssl/openssl_client_key_store_unittest.cc" ] |
1561 } | 1461 } |
1562 | 1462 |
1563 if (enable_websockets) { | 1463 if (enable_websockets) { |
1564 sources += gypi_values.net_websockets_test_sources | 1464 sources += gypi_values.net_websockets_test_sources |
(...skipping 449 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2014 sources = [ | 1914 sources = [ |
2015 "socket/socks5_client_socket_fuzzer.cc", | 1915 "socket/socks5_client_socket_fuzzer.cc", |
2016 ] | 1916 ] |
2017 deps = [ | 1917 deps = [ |
2018 ":net_fuzzer_test_support", | 1918 ":net_fuzzer_test_support", |
2019 ":test_support", | 1919 ":test_support", |
2020 "//base", | 1920 "//base", |
2021 "//net", | 1921 "//net", |
2022 ] | 1922 ] |
2023 } | 1923 } |
OLD | NEW |