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 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 } | 143 } |
144 | 144 |
145 if (!enable_built_in_dns) { | 145 if (!enable_built_in_dns) { |
146 net_shared_sources -= [ | 146 net_shared_sources -= [ |
147 "dns/address_sorter_posix.cc", | 147 "dns/address_sorter_posix.cc", |
148 "dns/address_sorter_posix.h", | 148 "dns/address_sorter_posix.h", |
149 "dns/dns_client.cc", | 149 "dns/dns_client.cc", |
150 ] | 150 ] |
151 } | 151 } |
152 | 152 |
153 if (use_openssl) { | |
154 net_shared_sources -= [ | |
155 "base/nss_memio.c", | |
156 "base/nss_memio.h", | |
157 "cert/ct_log_verifier_nss.cc", | |
158 "cert/ct_objects_extractor_nss.cc", | |
159 "cert/jwk_serializer_nss.cc", | |
160 "cert/scoped_nss_types.h", | |
161 "cert/x509_util_nss.cc", | |
162 "quic/crypto/aead_base_decrypter_nss.cc", | |
163 "quic/crypto/aead_base_encrypter_nss.cc", | |
164 "quic/crypto/aes_128_gcm_12_decrypter_nss.cc", | |
165 "quic/crypto/aes_128_gcm_12_encrypter_nss.cc", | |
166 "quic/crypto/chacha20_poly1305_rfc7539_decrypter_nss.cc", | |
167 "quic/crypto/chacha20_poly1305_rfc7539_encrypter_nss.cc", | |
168 "quic/crypto/channel_id_nss.cc", | |
169 "quic/crypto/p256_key_exchange_nss.cc", | |
170 "quic/crypto/proof_source_chromium_nss.cc", | |
171 "socket/nss_ssl_util.cc", | |
172 "socket/nss_ssl_util.h", | |
173 "socket/ssl_client_socket_nss.cc", | |
174 "socket/ssl_client_socket_nss.h", | |
175 "socket/ssl_server_socket_nss.cc", | |
176 "socket/ssl_server_socket_nss.h", | |
177 "ssl/token_binding_nss.cc", | |
178 ] | |
179 if (is_ios) { | |
180 net_shared_sources -= [ | |
181 "cert/x509_util_ios.cc", | |
182 "cert/x509_util_ios.h", | |
183 ] | |
184 } | |
185 } else { | |
186 net_shared_sources -= [ | |
187 "cert/ct_log_verifier_openssl.cc", | |
188 "cert/ct_objects_extractor_openssl.cc", | |
189 "cert/jwk_serializer_openssl.cc", | |
190 "cert/x509_util_openssl.cc", | |
191 "cert/x509_util_openssl.h", | |
192 "quic/crypto/aead_base_decrypter_openssl.cc", | |
193 "quic/crypto/aead_base_encrypter_openssl.cc", | |
194 "quic/crypto/aes_128_gcm_12_decrypter_openssl.cc", | |
195 "quic/crypto/aes_128_gcm_12_encrypter_openssl.cc", | |
196 "quic/crypto/chacha20_poly1305_rfc7539_decrypter_openssl.cc", | |
197 "quic/crypto/chacha20_poly1305_rfc7539_encrypter_openssl.cc", | |
198 "quic/crypto/channel_id_openssl.cc", | |
199 "quic/crypto/p256_key_exchange_openssl.cc", | |
200 "quic/crypto/proof_source_chromium_openssl.cc", | |
201 "quic/crypto/scoped_evp_aead_ctx.cc", | |
202 "quic/crypto/scoped_evp_aead_ctx.h", | |
203 "socket/ssl_client_socket_openssl.cc", | |
204 "socket/ssl_client_socket_openssl.h", | |
205 "socket/ssl_server_socket_openssl.cc", | |
206 "socket/ssl_server_socket_openssl.h", | |
207 "ssl/openssl_ssl_util.cc", | |
208 "ssl/openssl_ssl_util.h", | |
209 "ssl/ssl_client_session_cache_openssl.cc", | |
210 "ssl/ssl_client_session_cache_openssl.h", | |
211 "ssl/ssl_key_logger.cc", | |
212 "ssl/ssl_key_logger.h", | |
213 "ssl/ssl_platform_key.h", | |
214 "ssl/ssl_platform_key_task_runner.cc", | |
215 "ssl/ssl_platform_key_task_runner.h", | |
216 "ssl/test_ssl_private_key.cc", | |
217 "ssl/test_ssl_private_key.h", | |
218 "ssl/threaded_ssl_private_key.cc", | |
219 "ssl/threaded_ssl_private_key.h", | |
220 "ssl/token_binding_openssl.cc", | |
221 ] | |
222 } | |
223 | |
224 if (!use_openssl_certs) { | 153 if (!use_openssl_certs) { |
225 net_shared_sources -= [ | 154 net_shared_sources -= [ |
226 "base/crypto_module_openssl.cc", | 155 "base/crypto_module_openssl.cc", |
227 "base/keygen_handler_openssl.cc", | 156 "base/keygen_handler_openssl.cc", |
228 "base/openssl_private_key_store.h", | 157 "base/openssl_private_key_store.h", |
229 "base/openssl_private_key_store_memory.cc", | 158 "base/openssl_private_key_store_memory.cc", |
230 "cert/cert_database_openssl.cc", | 159 "cert/cert_database_openssl.cc", |
231 "cert/cert_verify_proc_openssl.cc", | 160 "cert/cert_verify_proc_openssl.cc", |
232 "cert/cert_verify_proc_openssl.h", | 161 "cert/cert_verify_proc_openssl.h", |
233 "cert/test_root_certs_openssl.cc", | 162 "cert/test_root_certs_openssl.cc", |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
290 "cert/nss_cert_database_chromeos.h", | 219 "cert/nss_cert_database_chromeos.h", |
291 "cert/nss_profile_filter_chromeos.cc", | 220 "cert/nss_profile_filter_chromeos.cc", |
292 "cert/nss_profile_filter_chromeos.h", | 221 "cert/nss_profile_filter_chromeos.h", |
293 ] | 222 ] |
294 } | 223 } |
295 net_shared_sources -= [ | 224 net_shared_sources -= [ |
296 "ssl/client_key_store.cc", | 225 "ssl/client_key_store.cc", |
297 "ssl/client_key_store.h", | 226 "ssl/client_key_store.h", |
298 "ssl/ssl_platform_key_nss.cc", | 227 "ssl/ssl_platform_key_nss.cc", |
299 ] | 228 ] |
300 } else if (use_openssl) { | 229 } else { |
301 # client_cert_store_nss.c requires NSS_CmpCertChainWCANames from NSS's | 230 # client_cert_store_nss.c requires NSS_CmpCertChainWCANames from NSS's |
302 # libssl, but our bundled copy is not built in OpenSSL ports. Pull that file | 231 # libssl, but our bundled copy is not built in OpenSSL ports. Pull that file |
303 # in directly. | 232 # in directly. |
304 net_shared_sources += [ "third_party/nss/ssl/cmpcert.c" ] | 233 net_shared_sources += [ "third_party/nss/ssl/cmpcert.c" ] |
305 } | 234 } |
306 | 235 |
307 if (!use_nss_verifier) { | 236 if (!use_nss_certs) { |
308 # These files are part of the partial implementation of NSS for | 237 # These files are part of the partial implementation of NSS for |
309 # cert verification, so keep them in that case. | 238 # cert verification, so keep them in that case. |
310 net_shared_sources -= [ | 239 net_shared_sources -= [ |
311 "cert/cert_verify_proc_nss.cc", | 240 "cert/cert_verify_proc_nss.cc", |
312 "cert/cert_verify_proc_nss.h", | 241 "cert/cert_verify_proc_nss.h", |
313 "cert/test_root_certs_nss.cc", | 242 "cert/test_root_certs_nss.cc", |
314 "cert/x509_util_nss_certs.cc", | 243 "cert/x509_util_nss_certs.cc", |
315 "cert_net/nss_ocsp.cc", | 244 "cert_net/nss_ocsp.cc", |
316 "cert_net/nss_ocsp.h", | 245 "cert_net/nss_ocsp.h", |
317 ] | 246 ] |
318 } | 247 } |
319 | 248 |
320 if (is_ios && use_nss_verifier) { | |
321 net_shared_sources -= [ | |
322 "cert/cert_verify_proc_ios.cc", | |
323 "cert/cert_verify_proc_ios.h", | |
324 "cert/x509_certificate_openssl_ios.cc", | |
325 ] | |
326 | |
327 net_shared_deps += [ | |
328 "//third_party/nss:nspr", | |
329 "//third_party/nss", | |
330 "//net/third_party/nss/ssl:libssl", | |
331 ] | |
332 } | |
333 | |
334 if (is_chromecast && use_nss_certs) { | 249 if (is_chromecast && use_nss_certs) { |
335 net_shared_sources += [ "ssl/ssl_platform_key_chromecast.cc" ] | 250 net_shared_sources += [ "ssl/ssl_platform_key_chromecast.cc" ] |
336 net_shared_sources -= [ "ssl/ssl_platform_key_nss.cc" ] | 251 net_shared_sources -= [ "ssl/ssl_platform_key_nss.cc" ] |
337 } | 252 } |
338 | 253 |
339 if (!enable_mdns) { | 254 if (!enable_mdns) { |
340 net_shared_sources -= [ | 255 net_shared_sources -= [ |
341 "dns/mdns_cache.cc", | 256 "dns/mdns_cache.cc", |
342 "dns/mdns_cache.h", | 257 "dns/mdns_cache.h", |
343 "dns/mdns_client.cc", | 258 "dns/mdns_client.cc", |
(...skipping 24 matching lines...) Expand all Loading... |
368 # Add back some sources that were otherwise filtered out. iOS needs some Mac | 283 # Add back some sources that were otherwise filtered out. iOS needs some Mac |
369 # files. | 284 # files. |
370 net_shared_unfiltered_sources += [ | 285 net_shared_unfiltered_sources += [ |
371 "base/mac/url_conversions.h", | 286 "base/mac/url_conversions.h", |
372 "base/mac/url_conversions.mm", | 287 "base/mac/url_conversions.mm", |
373 "base/network_change_notifier_mac.cc", | 288 "base/network_change_notifier_mac.cc", |
374 "base/network_config_watcher_mac.cc", | 289 "base/network_config_watcher_mac.cc", |
375 "base/network_interfaces_mac.cc", | 290 "base/network_interfaces_mac.cc", |
376 "base/network_interfaces_mac.h", | 291 "base/network_interfaces_mac.h", |
377 "base/platform_mime_util_mac.mm", | 292 "base/platform_mime_util_mac.mm", |
| 293 "cert/test_root_certs_mac.cc", |
378 "proxy/proxy_resolver_mac.cc", | 294 "proxy/proxy_resolver_mac.cc", |
379 "proxy/proxy_server_mac.cc", | 295 "proxy/proxy_server_mac.cc", |
380 ] | 296 ] |
381 | 297 |
382 net_shared_sources -= [ "disk_cache/blockfile/file_posix.cc" ] | 298 net_shared_sources -= [ "disk_cache/blockfile/file_posix.cc" ] |
383 } | 299 } |
384 | 300 |
385 if (is_ios && !use_nss_verifier) { | |
386 net_shared_unfiltered_sources += [ "cert/test_root_certs_mac.cc" ] | |
387 net_shared_sources -= [ "cert/x509_certificate_ios.cc" ] | |
388 } | |
389 | |
390 if (is_ios || is_mac) { | 301 if (is_ios || is_mac) { |
391 net_shared_sources += gypi_values.net_base_mac_ios_sources | 302 net_shared_sources += gypi_values.net_base_mac_ios_sources |
392 } | 303 } |
393 | 304 |
394 if (is_android) { | 305 if (is_android) { |
395 net_shared_deps += [ ":net_jni_headers" ] | 306 net_shared_deps += [ ":net_jni_headers" ] |
396 | 307 |
397 # Add some Linux sources that were excluded by the filter, but which | 308 # Add some Linux sources that were excluded by the filter, but which |
398 # are needed. | 309 # are needed. |
399 net_shared_unfiltered_sources += [ | 310 net_shared_unfiltered_sources += [ |
(...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
731 "//net/tools/tld_cleanup", | 642 "//net/tools/tld_cleanup", |
732 "//testing/gmock", | 643 "//testing/gmock", |
733 "//testing/gtest", | 644 "//testing/gtest", |
734 "//url", | 645 "//url", |
735 ] | 646 ] |
736 | 647 |
737 if (!is_ios) { | 648 if (!is_ios) { |
738 public_deps += [ "//third_party/protobuf:py_proto" ] | 649 public_deps += [ "//third_party/protobuf:py_proto" ] |
739 } | 650 } |
740 | 651 |
741 if (use_nss_verifier) { | 652 if (use_nss_certs) { |
742 public_deps += [ "//crypto:platform" ] | 653 public_deps += [ "//crypto:platform" ] |
743 } | 654 } |
744 | 655 |
745 if (is_android) { | 656 if (is_android) { |
746 sources += [ | 657 sources += [ |
747 "test/spawned_test_server/remote_test_server.cc", | 658 "test/spawned_test_server/remote_test_server.cc", |
748 "test/spawned_test_server/remote_test_server.h", | 659 "test/spawned_test_server/remote_test_server.h", |
749 "test/spawned_test_server/spawner_communicator.cc", | 660 "test/spawned_test_server/spawner_communicator.cc", |
750 "test/spawned_test_server/spawner_communicator.h", | 661 "test/spawned_test_server/spawner_communicator.h", |
751 ] | 662 ] |
(...skipping 719 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1471 "//sql", | 1382 "//sql", |
1472 "//testing/gmock", | 1383 "//testing/gmock", |
1473 "//testing/gtest", | 1384 "//testing/gtest", |
1474 "//third_party/zlib", | 1385 "//third_party/zlib", |
1475 "//url", | 1386 "//url", |
1476 ] | 1387 ] |
1477 | 1388 |
1478 data = [ | 1389 data = [ |
1479 "data/", | 1390 "data/", |
1480 ] | 1391 ] |
1481 data_deps = [] | 1392 data_deps = [ |
1482 | 1393 "third_party/nist-pkits/", |
1483 if (use_openssl) { | 1394 ] |
1484 data_deps += [ "third_party/nist-pkits/" ] | |
1485 } | |
1486 | 1395 |
1487 if (is_linux || is_mac || is_win) { | 1396 if (is_linux || is_mac || is_win) { |
1488 deps += [ | 1397 deps += [ |
1489 "//third_party/pyftpdlib/", | 1398 "//third_party/pyftpdlib/", |
1490 "//third_party/pywebsocket/", | 1399 "//third_party/pywebsocket/", |
1491 "//third_party/tlslite/", | 1400 "//third_party/tlslite/", |
1492 ] | 1401 ] |
1493 data_deps += [ | 1402 data_deps += [ |
1494 "//third_party/pyftpdlib/", | 1403 "//third_party/pyftpdlib/", |
1495 "//third_party/pywebsocket/", | 1404 "//third_party/pywebsocket/", |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1534 "ssl/client_cert_store_nss_unittest.cc", | 1443 "ssl/client_cert_store_nss_unittest.cc", |
1535 ] | 1444 ] |
1536 if (is_chromeos) { # Already removed for all non-ChromeOS builds. | 1445 if (is_chromeos) { # Already removed for all non-ChromeOS builds. |
1537 sources -= [ | 1446 sources -= [ |
1538 "cert/nss_cert_database_chromeos_unittest.cc", | 1447 "cert/nss_cert_database_chromeos_unittest.cc", |
1539 "cert/nss_profile_filter_chromeos_unittest.cc", | 1448 "cert/nss_profile_filter_chromeos_unittest.cc", |
1540 ] | 1449 ] |
1541 } | 1450 } |
1542 } | 1451 } |
1543 | 1452 |
1544 if (use_openssl) { | |
1545 sources -= [ "quic/test_tools/crypto_test_utils_nss.cc" ] | |
1546 } else { | |
1547 sources -= [ | |
1548 "quic/test_tools/crypto_test_utils_openssl.cc", | |
1549 "ssl/ssl_client_session_cache_openssl_unittest.cc", | |
1550 ] | |
1551 } | |
1552 | |
1553 if (use_kerberos) { | 1453 if (use_kerberos) { |
1554 defines += [ "USE_KERBEROS" ] | 1454 defines += [ "USE_KERBEROS" ] |
1555 } | 1455 } |
1556 | 1456 |
1557 # These are excluded on Android, because the actual Kerberos support, which | 1457 # These are excluded on Android, because the actual Kerberos support, which |
1558 # these test, is in a separate app on Android. | 1458 # these test, is in a separate app on Android. |
1559 if (!use_kerberos || is_android) { | 1459 if (!use_kerberos || is_android) { |
1560 sources -= [ | 1460 sources -= [ |
1561 "http/http_auth_gssapi_posix_unittest.cc", | 1461 "http/http_auth_gssapi_posix_unittest.cc", |
1562 "http/mock_gssapi_library_posix.cc", | 1462 "http/mock_gssapi_library_posix.cc", |
1563 "http/mock_gssapi_library_posix.h", | 1463 "http/mock_gssapi_library_posix.h", |
1564 ] | 1464 ] |
1565 } | 1465 } |
1566 if (!use_kerberos) { | 1466 if (!use_kerberos) { |
1567 sources -= [ "http/http_auth_handler_negotiate_unittest.cc" ] | 1467 sources -= [ "http/http_auth_handler_negotiate_unittest.cc" ] |
1568 } | 1468 } |
1569 | 1469 |
1570 if (!use_nss_verifier) { | 1470 if (!use_nss_certs) { |
1571 # Only include this test when using NSS for cert verification. | 1471 # Only include this test when using NSS for cert verification. |
1572 sources -= [ "cert_net/nss_ocsp_unittest.cc" ] | 1472 sources -= [ "cert_net/nss_ocsp_unittest.cc" ] |
1573 } | 1473 } |
1574 | 1474 |
1575 if (!use_openssl_certs) { | 1475 if (!use_openssl_certs) { |
1576 sources -= [ "ssl/openssl_client_key_store_unittest.cc" ] | 1476 sources -= [ "ssl/openssl_client_key_store_unittest.cc" ] |
1577 } | 1477 } |
1578 | 1478 |
1579 if (enable_websockets) { | 1479 if (enable_websockets) { |
1580 sources += gypi_values.net_websockets_test_sources | 1480 sources += gypi_values.net_websockets_test_sources |
(...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1951 fuzzer_test("net_quic_crypto_framer_parse_message_fuzzer") { | 1851 fuzzer_test("net_quic_crypto_framer_parse_message_fuzzer") { |
1952 sources = [ | 1852 sources = [ |
1953 "quic/quic_crypto_framer_parse_message_fuzzer.cc", | 1853 "quic/quic_crypto_framer_parse_message_fuzzer.cc", |
1954 ] | 1854 ] |
1955 deps = [ | 1855 deps = [ |
1956 ":net_fuzzer_test_support", | 1856 ":net_fuzzer_test_support", |
1957 "//base", | 1857 "//base", |
1958 "//net", | 1858 "//net", |
1959 ] | 1859 ] |
1960 } | 1860 } |
OLD | NEW |