1 # Copyright 2013 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
9 'linux_link_kerberos%': 0,
11 ['chromeos==1 or embedded==1 or OS=="android" or OS=="ios"', {
12 # Disable Kerberos on ChromeOS, Android and iOS, at least for now.
13 # It needs configuration (krb5.conf and so on).
15 }, { # chromeos == 0 and embedded==0 and OS!="android" and OS!="ios"
18 ['OS=="android" and target_arch != "ia32"', {
19 # The way the cache uses mmap() is inefficient on some Android devices.
20 # If this flag is set, we hackily avoid using mmap() in the disk cache.
21 # We are pretty confident that mmap-ing the index would not hurt any
22 # existing x86 android devices, but we cannot be so sure about the
23 # variety of ARM devices. So enable it for x86 only for now.
24 'posix_avoid_mmap%': 1,
26 'posix_avoid_mmap%': 0,
29 # Websockets and socket stream are not used on iOS.
30 'enable_websockets%': 0,
31 # iOS does not use V8.
33 'enable_built_in_dns%': 0,
35 'enable_websockets%': 1,
37 'enable_built_in_dns%': 1,
42 '../build/win_precompile.gypi',
47 'target_name': 'net_derived_sources',
50 'base/registry_controlled_domains/effective_tld_names.gperf',
51 'base/registry_controlled_domains/effective_tld_names_unittest1.gperf',
52 'base/registry_controlled_domains/effective_tld_names_unittest2.gperf',
53 'base/registry_controlled_domains/effective_tld_names_unittest3.gperf',
54 'base/registry_controlled_domains/effective_tld_names_unittest4.gperf',
55 'base/registry_controlled_domains/effective_tld_names_unittest5.gperf',
56 'base/registry_controlled_domains/effective_tld_names_unittest6.gperf',
63 '<(SHARED_INTERMEDIATE_DIR)/net/<(RULE_INPUT_DIRNAME)/<(RULE_INPUT_ROOT)-inc.cc',
66 'tools/tld_cleanup/make_dafsa.py',
70 'tools/tld_cleanup/make_dafsa.py',
72 '<(SHARED_INTERMEDIATE_DIR)/net/<(RULE_INPUT_DIRNAME)/<(RULE_INPUT_ROOT)-inc.cc',
76 'direct_dependent_settings': {
78 '<(SHARED_INTERMEDIATE_DIR)'
85 '../base/base.gyp:base_i18n',
86 '../third_party/icu/icu.gyp:icui18n',
87 '../third_party/icu/icu.gyp:icuuc',
88 '../url/url.gyp:url_lib',
91 'base/filename_util_icu.cc',
92 'base/net_string_util_icu.cc',
93 'base/net_util_icu.cc',
95 'includes': [ 'net_common.gypi' ],
98 'target_name': 'net_unittests',
99 'type': '<(gtest_target_type)',
101 '../base/base.gyp:base',
102 '../base/base.gyp:base_i18n',
103 '../base/base.gyp:base_prefs_test_support',
104 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
105 '../crypto/crypto.gyp:crypto',
106 '../crypto/crypto.gyp:crypto_test_support',
107 '../testing/gmock.gyp:gmock',
108 '../testing/gtest.gyp:gtest',
109 '../third_party/zlib/zlib.gyp:zlib',
110 '../url/url.gyp:url_lib',
114 'net_derived_sources',
120 '<@(net_test_sources)',
123 ['os_posix == 1 and OS != "mac" and OS != "ios" and OS != "android"', {
126 'flip_in_mem_edsm_server_base',
130 '<@(net_linux_test_sources)',
133 ['OS == "mac" or OS == "ios"', {
135 '<@(net_base_test_mac_ios_sources)',
140 'proxy/proxy_config_service_linux_unittest.cc',
143 [ 'OS == "android"', {
145 # See bug http://crbug.com/344533.
146 'disk_cache/blockfile/index_table_v3_unittest.cc',
147 # No res_ninit() et al on Android, so this doesn't make a lot of
149 'dns/dns_config_service_posix_unittest.cc',
153 'net_test_jni_headers',
158 'ssl/client_cert_store_chromeos_unittest.cc',
159 'ssl/client_cert_store_nss_unittest.cc',
162 [ 'use_openssl == 1', {
163 # Avoid compiling/linking with the system library.
165 '../third_party/boringssl/boringssl.gyp:boringssl',
167 }, { # use_openssl == 0
169 [ 'desktop_linux == 1 or chromeos == 1', {
171 '../build/linux/system.gyp:ssl',
173 }, { # desktop_linux == 0 and chromeos == 0
175 '../third_party/nss/nss.gyp:nspr',
176 '../third_party/nss/nss.gyp:nss',
177 'third_party/nss/ssl.gyp:libssl',
180 'cert/nss_cert_database_unittest.cc',
185 [ 'os_posix == 1 and OS != "mac" and OS != "android" and OS != "ios"', {
187 ['use_allocator!="none"', {
189 '../base/allocator/allocator.gyp:allocator',
194 [ 'use_kerberos==1', {
198 }, { # use_kerberos == 0
200 'http/http_auth_gssapi_posix_unittest.cc',
201 'http/http_auth_handler_negotiate_unittest.cc',
202 'http/mock_gssapi_library_posix.cc',
203 'http/mock_gssapi_library_posix.h',
206 [ 'use_openssl == 1 or (desktop_linux == 0 and chromeos == 0 and OS != "ios")', {
207 # Only include this test when on Posix and using NSS for
208 # cert verification or on iOS (which also uses NSS for certs).
210 'ocsp/nss_ocsp_unittest.cc',
213 [ 'use_openssl==1', {
214 # When building for OpenSSL, we need to exclude NSS specific tests
215 # or functionality not supported by OpenSSL yet.
216 # TODO(bulach): Add equivalent tests when the underlying
217 # functionality is ported to OpenSSL.
219 'cert/nss_cert_database_chromeos_unittest.cc',
220 'cert/nss_cert_database_unittest.cc',
221 'cert/nss_profile_filter_chromeos_unittest.cc',
222 'cert/x509_util_nss_unittest.cc',
223 'quic/test_tools/crypto_test_utils_nss.cc',
225 }, { # else !use_openssl: remove the unneeded files and pull in NSS.
227 'cert/x509_util_openssl_unittest.cc',
228 'quic/test_tools/crypto_test_utils_openssl.cc',
229 'socket/ssl_client_socket_openssl_unittest.cc',
230 'socket/ssl_session_cache_openssl_unittest.cc',
234 [ 'use_openssl_certs == 0', {
236 'ssl/openssl_client_key_store_unittest.cc',
239 [ 'enable_websockets != 1', {
241 ['exclude', '^websockets/'],
242 ['exclude', '^server/'],
248 ['disable_file_support==1', {
250 'base/directory_lister_unittest.cc',
251 'url_request/url_request_file_job_unittest.cc',
254 [ 'disable_ftp_support==1', {
256 ['exclude', '^ftp/'],
259 'url_request/url_request_ftp_job_unittest.cc',
263 [ 'enable_built_in_dns!=1', {
265 'dns/address_sorter_posix_unittest.cc',
266 'dns/address_sorter_unittest.cc',
270 # Always need use_v8_in_net to be 1 to run gyp on Android, so just
271 # remove net_unittest's dependency on v8 when using icu alternatives
272 # instead of setting use_v8_in_net to 0.
273 [ 'use_v8_in_net==1 and use_icu_alternatives_on_android==0', {
277 }, { # else: !use_v8_in_net
279 'proxy/proxy_resolver_v8_tracing_unittest.cc',
280 'proxy/proxy_resolver_v8_unittest.cc',
285 [ 'use_v8_in_net==1 and OS != "android"', {
288 'net_browser_services',
289 'net_utility_services',
290 '../third_party/mojo/mojo_edk.gyp:mojo_system_impl',
294 'dns/host_resolver_mojo_unittest.cc',
295 'dns/mojo_host_resolver_impl_unittest.cc',
296 'proxy/load_state_change_coalescer_unittest.cc',
297 'proxy/mojo_proxy_resolver_factory_impl_unittest.cc',
298 'proxy/mojo_proxy_resolver_impl_unittest.cc',
299 'proxy/proxy_resolver_mojo_unittest.cc',
300 'proxy/proxy_service_mojo_unittest.cc',
305 [ 'enable_mdns != 1', {
307 'dns/mdns_cache_unittest.cc',
308 'dns/mdns_client_unittest.cc',
309 'dns/mdns_query_unittest.cc',
310 'dns/record_parsed_unittest.cc',
311 'dns/record_rdata_unittest.cc',
316 'dns/dns_config_service_posix_unittest.cc',
317 'http/http_auth_gssapi_posix_unittest.cc',
319 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
320 'msvs_disabled_warnings': [4267, ],
322 [ 'icu_use_data_file_flag == 0', {
323 # This is needed to trigger the dll copy step on windows.
324 # TODO(mark): Specifying this here shouldn't be necessary.
326 '../third_party/icu/icu.gyp:icudata',
335 'action_name': 'copy_test_data',
338 'data/ssl/certificates/',
340 'data/url_request_unittest/',
342 'test_data_prefix': 'net',
344 'includes': [ '../build/copy_test_data_ios.gypi' ],
348 # TODO(droger): The following tests are disabled because the
349 # implementation is missing or incomplete.
350 # KeygenHandler::GenKeyAndSignChallenge() is not ported to iOS.
351 'base/keygen_handler_unittest.cc',
352 'disk_cache/backend_unittest.cc',
353 'disk_cache/blockfile/block_files_unittest.cc',
354 # Need to read input data files.
355 'filter/gzip_filter_unittest.cc',
357 'proxy/proxy_script_fetcher_impl_unittest.cc',
358 'socket/ssl_client_socket_unittest.cc',
359 'socket/ssl_server_socket_unittest.cc',
360 'spdy/fuzzing/hpack_fuzz_util_test.cc',
361 # Needs GetAppOutput().
362 'test/python_utils_unittest.cc',
363 'url_request/url_fetcher_impl_unittest.cc',
364 'url_request/url_request_context_builder_unittest.cc',
366 # The following tests are disabled because they don't apply to
368 # OS is not "linux" or "freebsd" or "openbsd".
369 'socket/unix_domain_client_socket_posix_unittest.cc',
370 'socket/unix_domain_listen_socket_posix_unittest.cc',
371 'socket/unix_domain_server_socket_posix_unittest.cc',
373 # See bug http://crbug.com/344533.
374 'disk_cache/blockfile/index_table_v3_unittest.cc',
377 [ 'OS == "android"', {
379 'dns/dns_config_service_posix_unittest.cc',
383 ['OS == "android"', {
384 # TODO(mmenke): This depends on test_support_base, which depends on
385 # icu. Figure out a way to remove that dependency.
387 '../testing/android/native_test.gyp:native_test_native_code',
390 [ 'use_icu_alternatives_on_android == 1', {
392 '../base/base.gyp:base_i18n',
395 'base/filename_util_unittest.cc',
396 'base/net_util_icu_unittest.cc',
400 ['v8_use_external_startup_data==1', {
402 '../gin/gin.gyp:gin',
406 'target_conditions': [
407 # These source files are excluded by default platform rules, but they
408 # are needed in specific cases on other platforms. Re-including them can
409 # only be done in target_conditions as it is evaluated after the
411 ['OS == "android"', {
413 ['include', '^base/address_tracker_linux_unittest\\.cc$'],
418 ['include', '^base/mac/url_conversions_unittest\\.mm$'],
424 'target_name': 'net_perftests',
425 'type': 'executable',
427 '../base/base.gyp:base',
428 '../base/base.gyp:base_i18n',
429 '../base/base.gyp:test_support_perf',
430 '../testing/gtest.gyp:gtest',
431 '../url/url.gyp:url_lib',
436 'cookies/cookie_monster_perftest.cc',
437 'disk_cache/blockfile/disk_cache_perftest.cc',
438 'proxy/proxy_resolver_perftest.cc',
439 'udp/udp_socket_perftest.cc',
440 'websockets/websocket_frame_perftest.cc',
443 [ 'use_v8_in_net==1', {
447 }, { # else: !use_v8_in_net
449 'proxy/proxy_resolver_perftest.cc',
455 [ 'icu_use_data_file_flag == 0', {
456 # This is needed to trigger the dll copy step on windows.
457 # TODO(mark): Specifying this here shouldn't be necessary.
459 '../third_party/icu/icu.gyp:icudata',
463 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
464 'msvs_disabled_warnings': [4267, ],
466 [ 'enable_websockets != 1', {
468 'websockets/websocket_frame_perftest.cc',
474 'target_name': 'net_test_support',
475 'type': 'static_library',
477 '../base/base.gyp:base',
478 '../base/base.gyp:test_support_base',
479 '../crypto/crypto.gyp:crypto',
480 '../net/tools/tld_cleanup/tld_cleanup.gyp:tld_cleanup_util',
481 '../testing/gtest.gyp:gtest',
482 '../testing/gmock.gyp:gmock',
483 '../url/url.gyp:url_lib',
486 'export_dependent_settings': [
487 '../base/base.gyp:base',
488 # TODO(mmenke): This depends on icu, figure out a way to build tests
490 '../base/base.gyp:test_support_base',
491 '../testing/gtest.gyp:gtest',
492 '../testing/gmock.gyp:gmock',
495 'base/captured_net_log_entry.cc',
496 'base/captured_net_log_entry.h',
497 'base/capturing_net_log.cc',
498 'base/capturing_net_log.h',
499 'base/capturing_net_log_observer.cc',
500 'base/capturing_net_log_observer.h',
501 'base/load_timing_info_test_util.cc',
502 'base/load_timing_info_test_util.h',
503 'base/mock_file_stream.cc',
504 'base/mock_file_stream.h',
505 'base/test_completion_callback.cc',
506 'base/test_completion_callback.h',
507 'base/test_data_directory.cc',
508 'base/test_data_directory.h',
509 'cert/mock_cert_verifier.cc',
510 'cert/mock_cert_verifier.h',
511 'cookies/cookie_monster_store_test.cc',
512 'cookies/cookie_monster_store_test.h',
513 'cookies/cookie_store_test_callbacks.cc',
514 'cookies/cookie_store_test_callbacks.h',
515 'cookies/cookie_store_test_helpers.cc',
516 'cookies/cookie_store_test_helpers.h',
517 'disk_cache/disk_cache_test_base.cc',
518 'disk_cache/disk_cache_test_base.h',
519 'disk_cache/disk_cache_test_util.cc',
520 'disk_cache/disk_cache_test_util.h',
521 'dns/dns_test_util.cc',
522 'dns/dns_test_util.h',
523 'dns/mock_host_resolver.cc',
524 'dns/mock_host_resolver.h',
525 'dns/mock_mdns_socket_factory.cc',
526 'dns/mock_mdns_socket_factory.h',
527 'http/http_transaction_test_util.cc',
528 'http/http_transaction_test_util.h',
529 'proxy/mock_proxy_resolver.cc',
530 'proxy/mock_proxy_resolver.h',
531 'proxy/mock_proxy_script_fetcher.cc',
532 'proxy/mock_proxy_script_fetcher.h',
533 'proxy/proxy_config_service_common_unittest.cc',
534 'proxy/proxy_config_service_common_unittest.h',
535 'socket/socket_test_util.cc',
536 'socket/socket_test_util.h',
537 'test/cert_test_util.cc',
538 'test/cert_test_util.h',
539 'test/cert_test_util_nss.cc',
540 'test/ct_test_util.cc',
541 'test/ct_test_util.h',
542 'test/embedded_test_server/embedded_test_server.cc',
543 'test/embedded_test_server/embedded_test_server.h',
544 'test/embedded_test_server/http_connection.cc',
545 'test/embedded_test_server/http_connection.h',
546 'test/embedded_test_server/http_request.cc',
547 'test/embedded_test_server/http_request.h',
548 'test/embedded_test_server/http_response.cc',
549 'test/embedded_test_server/http_response.h',
550 'test/event_waiter.h',
551 'test/net_test_suite.cc',
552 'test/net_test_suite.h',
553 'test/python_utils.cc',
554 'test/python_utils.h',
555 'test/spawned_test_server/base_test_server.cc',
556 'test/spawned_test_server/base_test_server.h',
557 'test/spawned_test_server/local_test_server.cc',
558 'test/spawned_test_server/local_test_server.h',
559 'test/spawned_test_server/local_test_server_posix.cc',
560 'test/spawned_test_server/local_test_server_win.cc',
561 'test/spawned_test_server/remote_test_server.cc',
562 'test/spawned_test_server/remote_test_server.h',
563 'test/spawned_test_server/spawned_test_server.h',
564 'test/spawned_test_server/spawner_communicator.cc',
565 'test/spawned_test_server/spawner_communicator.h',
566 'test/url_request/url_request_failed_job.cc',
567 'test/url_request/url_request_failed_job.h',
568 'test/url_request/url_request_mock_data_job.cc',
569 'test/url_request/url_request_mock_data_job.h',
570 'test/url_request/url_request_mock_http_job.cc',
571 'test/url_request/url_request_mock_http_job.h',
572 'test/url_request/url_request_slow_download_job.cc',
573 'test/url_request/url_request_slow_download_job.h',
574 'url_request/test_url_fetcher_factory.cc',
575 'url_request/test_url_fetcher_factory.h',
576 'url_request/test_url_request_interceptor.cc',
577 'url_request/test_url_request_interceptor.h',
578 'url_request/url_request_test_util.cc',
579 'url_request/url_request_test_util.h',
584 '../third_party/protobuf/protobuf.gyp:py_proto',
587 ['use_openssl == 0 and (use_nss == 1 or OS == "ios")', {
589 [ 'desktop_linux == 1 or chromeos == 1', {
591 '../build/linux/system.gyp:ssl',
593 }, { # desktop_linux == 0 and chromeos == 0
595 '../third_party/nss/nss.gyp:nspr',
596 '../third_party/nss/nss.gyp:nss',
597 'third_party/nss/ssl.gyp:libssl',
602 ['os_posix == 1 and OS != "mac" and OS != "android" and OS != "ios"', {
604 ['use_allocator!="none"', {
606 '../base/allocator/allocator.gyp:allocator',
611 ['OS != "android"', {
613 'test/spawned_test_server/remote_test_server.cc',
614 'test/spawned_test_server/remote_test_server.h',
615 'test/spawned_test_server/spawner_communicator.cc',
616 'test/spawned_test_server/spawner_communicator.h',
619 [ 'use_v8_in_net==1', {
625 [ 'enable_mdns != 1', {
627 'dns/mock_mdns_socket_factory.cc',
628 'dns/mock_mdns_socket_factory.h'
633 'test/cert_test_util_nss.cc',
637 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
638 'msvs_disabled_warnings': [4267, ],
641 'target_name': 'net_resources',
644 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/net',
648 'action_name': 'net_resources',
650 'grit_grd_file': 'base/net_resources.grd',
652 'includes': [ '../build/grit_action.gypi' ],
657 'target_name': 'net_extras',
658 'type': 'static_library',
659 'variables': { 'enable_wexit_time_destructors': 1, },
661 '../base/base.gyp:base',
662 '../sql/sql.gyp:sql',
666 '<@(net_extras_sources)',
670 'target_name': 'net_docs',
674 'action_name': 'net_docs',
676 'net_docs_input_dir': '.',
679 '<@(net_docs_sources)',
682 '<(net_docs_output_dir)',
686 '<(net_docs_script)',
688 '<(net_docs_input_dir)',
690 '<(net_docs_output_dir)',
691 '<@(net_docs_sources)',
693 'message': 'Rendering network stack documentation',
698 'target_name': 'http_server',
699 'type': 'static_library',
700 'variables': { 'enable_wexit_time_destructors': 1, },
702 '../base/base.gyp:base',
706 'server/http_connection.cc',
707 'server/http_connection.h',
708 'server/http_server.cc',
709 'server/http_server.h',
710 'server/http_server_request_info.cc',
711 'server/http_server_request_info.h',
712 'server/http_server_response_info.cc',
713 'server/http_server_response_info.h',
714 'server/web_socket.cc',
715 'server/web_socket.h',
716 'server/web_socket_encoder.cc',
717 'server/web_socket_encoder.h',
719 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
720 'msvs_disabled_warnings': [4267, ],
723 'target_name': 'balsa',
724 'type': 'static_library',
726 '../base/base.gyp:base',
730 'tools/balsa/balsa_enums.h',
731 'tools/balsa/balsa_frame.cc',
732 'tools/balsa/balsa_frame.h',
733 'tools/balsa/balsa_headers.cc',
734 'tools/balsa/balsa_headers.h',
735 'tools/balsa/balsa_headers_token_utils.cc',
736 'tools/balsa/balsa_headers_token_utils.h',
737 'tools/balsa/balsa_visitor_interface.h',
738 'tools/balsa/http_message_constants.cc',
739 'tools/balsa/http_message_constants.h',
740 'tools/balsa/noop_balsa_visitor.h',
741 'tools/balsa/simple_buffer.cc',
742 'tools/balsa/simple_buffer.h',
743 'tools/balsa/split.cc',
744 'tools/balsa/split.h',
745 'tools/balsa/string_piece_utils.h',
746 'tools/quic/spdy_utils.cc',
747 'tools/quic/spdy_utils.h',
751 'target_name': 'dump_cache',
752 'type': 'executable',
754 '../base/base.gyp:base',
759 'tools/dump_cache/cache_dumper.cc',
760 'tools/dump_cache/cache_dumper.h',
761 'tools/dump_cache/dump_cache.cc',
762 'tools/dump_cache/dump_files.cc',
763 'tools/dump_cache/dump_files.h',
764 'tools/dump_cache/simple_cache_dumper.cc',
765 'tools/dump_cache/simple_cache_dumper.h',
766 'tools/dump_cache/url_to_filename_encoder.cc',
767 'tools/dump_cache/url_to_filename_encoder.h',
768 'tools/dump_cache/url_utilities.cc',
769 'tools/dump_cache/url_utilities.h',
771 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
772 'msvs_disabled_warnings': [4267, ],
775 # This is a temporary target which will be merged into 'net' once the
776 # dependency on balsa is eliminated and the classes are actually used.
777 'target_name': 'quic_tools',
778 'type': 'static_library',
780 '../base/base.gyp:base',
781 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
782 '../url/url.gyp:url_lib',
786 'quic/quic_dispatcher.cc',
787 'quic/quic_dispatcher.h',
788 'quic/quic_in_memory_cache.cc',
789 'quic/quic_in_memory_cache.h',
790 'quic/quic_per_connection_packet_writer.cc',
791 'quic/quic_per_connection_packet_writer.h',
792 'quic/quic_server.cc',
793 'quic/quic_server.h',
794 'quic/quic_server_packet_writer.cc',
795 'quic/quic_server_packet_writer.h',
796 'quic/quic_server_session.cc',
797 'quic/quic_server_session.h',
798 'quic/quic_spdy_server_stream.cc',
799 'quic/quic_spdy_server_stream.h',
800 'quic/quic_time_wait_list_manager.cc',
801 'quic/quic_time_wait_list_manager.h',
806 ['use_v8_in_net == 1', {
809 'target_name': 'net_with_v8',
810 'type': '<(component)',
811 'variables': { 'enable_wexit_time_destructors': 1, },
813 '../base/base.gyp:base',
814 '../gin/gin.gyp:gin',
815 '../url/url.gyp:url_lib',
816 '../v8/tools/gyp/v8.gyp:v8',
820 'NET_IMPLEMENTATION',
823 'proxy/proxy_resolver_v8.cc',
824 'proxy/proxy_resolver_v8.h',
825 'proxy/proxy_resolver_v8_tracing.cc',
826 'proxy/proxy_resolver_v8_tracing.h',
827 'proxy/proxy_service_v8.cc',
828 'proxy/proxy_service_v8.h',
830 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
831 'msvs_disabled_warnings': [4267, ],
835 ['use_v8_in_net == 1 and OS != "android"', {
838 # GN version: //net/interfaces
839 'target_name': 'net_interfaces',
840 'type': 'static_library',
842 'interfaces/host_resolver_service.mojom',
843 'interfaces/proxy_resolver_service.mojom',
846 '../third_party/mojo/mojom_bindings_generator.gypi',
850 # GN version: //net:net_browser_services
851 'target_name': 'net_browser_services',
852 'type': 'static_library',
854 'dns/mojo_host_resolver_impl.cc',
855 'dns/mojo_host_resolver_impl.h',
856 'proxy/in_process_mojo_proxy_resolver_factory.cc',
857 'proxy/in_process_mojo_proxy_resolver_factory.h',
858 'proxy/mojo_proxy_resolver_factory.h',
859 'proxy/proxy_resolver_mojo.cc',
860 'proxy/proxy_resolver_mojo.h',
861 'proxy/proxy_service_mojo.cc',
862 'proxy/proxy_service_mojo.h',
865 'mojo_type_converters',
868 '../mojo/mojo_base.gyp:mojo_common_lib',
869 '../mojo/mojo_base.gyp:mojo_environment_chromium',
870 '../mojo/mojo_base.gyp:mojo_url_type_converters',
871 '../third_party/mojo/mojo_public.gyp:mojo_cpp_bindings',
873 # NOTE(amistry): As long as we support in-process Mojo v8 PAC, we
874 # need this dependency since in_process_mojo_proxy_resolver_factory
875 # creates the utility process side Mojo services in the browser
876 # process. Ultimately, this will go away when we only support
878 'net_utility_services',
882 # GN version: //net:net_utility_services
883 'target_name': 'net_utility_services',
884 'type': 'static_library',
886 'dns/host_resolver_mojo.cc',
887 'dns/host_resolver_mojo.h',
888 'proxy/load_state_change_coalescer.cc',
889 'proxy/load_state_change_coalescer.h',
890 'proxy/mojo_proxy_resolver_factory_impl.cc',
891 'proxy/mojo_proxy_resolver_factory_impl.h',
892 'proxy/mojo_proxy_resolver_impl.cc',
893 'proxy/mojo_proxy_resolver_impl.h',
896 'mojo_type_converters',
899 '../mojo/mojo_base.gyp:mojo_url_type_converters',
900 '../third_party/mojo/mojo_public.gyp:mojo_cpp_bindings',
904 # GN version: //net:mojo_type_converters
905 'target_name': 'mojo_type_converters',
906 'type': 'static_library',
908 'dns/mojo_host_type_converters.cc',
909 'dns/mojo_host_type_converters.h',
910 'proxy/mojo_proxy_type_converters.cc',
911 'proxy/mojo_proxy_type_converters.h',
916 '../third_party/mojo/mojo_public.gyp:mojo_cpp_bindings',
921 ['OS != "ios" and OS != "android"', {
923 # iOS doesn't have the concept of simple executables, these targets
924 # can't be compiled on the platform.
926 'target_name': 'crash_cache',
927 'type': 'executable',
929 '../base/base.gyp:base',
934 'tools/crash_cache/crash_cache.cc',
936 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
937 'msvs_disabled_warnings': [4267, ],
940 'target_name': 'crl_set_dump',
941 'type': 'executable',
943 '../base/base.gyp:base',
947 'tools/crl_set_dump/crl_set_dump.cc',
949 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
950 'msvs_disabled_warnings': [4267, ],
953 'target_name': 'dns_fuzz_stub',
954 'type': 'executable',
956 '../base/base.gyp:base',
960 'tools/dns_fuzz_stub/dns_fuzz_stub.cc',
962 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
963 'msvs_disabled_warnings': [4267, ],
966 'target_name': 'gdig',
967 'type': 'executable',
969 '../base/base.gyp:base',
973 'tools/gdig/file_net_log.cc',
974 'tools/gdig/gdig.cc',
978 'target_name': 'get_server_time',
979 'type': 'executable',
981 '../base/base.gyp:base',
982 '../base/base.gyp:base_i18n',
983 '../url/url.gyp:url_lib',
987 'tools/get_server_time/get_server_time.cc',
989 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
990 'msvs_disabled_warnings': [4267, ],
993 'target_name': 'hpack_example_generator',
994 'type': 'executable',
996 '../base/base.gyp:base',
1000 'spdy/fuzzing/hpack_example_generator.cc',
1002 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1003 'msvs_disabled_warnings': [4267, ],
1006 'target_name': 'hpack_fuzz_mutator',
1007 'type': 'executable',
1009 '../base/base.gyp:base',
1013 'spdy/fuzzing/hpack_fuzz_mutator.cc',
1015 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1016 'msvs_disabled_warnings': [4267, ],
1019 'target_name': 'hpack_fuzz_wrapper',
1020 'type': 'executable',
1022 '../base/base.gyp:base',
1026 'spdy/fuzzing/hpack_fuzz_wrapper.cc',
1028 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1029 'msvs_disabled_warnings': [4267, ],
1032 'target_name': 'net_watcher',
1033 'type': 'executable',
1035 '../base/base.gyp:base',
1040 [ 'use_glib == 1', {
1042 '../build/linux/system.gyp:gconf',
1043 '../build/linux/system.gyp:gio',
1049 'tools/net_watcher/net_watcher.cc',
1053 'target_name': 'run_testserver',
1054 'type': 'executable',
1056 '../base/base.gyp:base',
1057 '../base/base.gyp:test_support_base',
1058 '../testing/gtest.gyp:gtest',
1062 'tools/testserver/run_testserver.cc',
1066 'target_name': 'stress_cache',
1067 'type': 'executable',
1069 '../base/base.gyp:base',
1074 'tools/stress_cache/stress_cache.cc',
1076 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1077 'msvs_disabled_warnings': [4267, ],
1080 'target_name': 'tld_cleanup',
1081 'type': 'executable',
1083 '../base/base.gyp:base',
1084 '../base/base.gyp:base_i18n',
1085 '../net/tools/tld_cleanup/tld_cleanup.gyp:tld_cleanup_util',
1088 'tools/tld_cleanup/tld_cleanup.cc',
1090 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1091 'msvs_disabled_warnings': [4267, ],
1095 ['os_posix == 1 and OS != "mac" and OS != "ios" and OS != "android"', {
1098 'target_name': 'epoll_server',
1099 'type': 'static_library',
1101 '../base/base.gyp:base',
1105 'tools/epoll_server/epoll_server.cc',
1106 'tools/epoll_server/linux_epoll_server.cc',
1107 'tools/epoll_server/epoll_server.h',
1111 'target_name': 'flip_in_mem_edsm_server_base',
1112 'type': 'static_library',
1117 '../base/base.gyp:base',
1118 '../third_party/boringssl/boringssl.gyp:boringssl',
1124 'tools/dump_cache/url_to_filename_encoder.cc',
1125 'tools/dump_cache/url_to_filename_encoder.h',
1126 'tools/dump_cache/url_utilities.cc',
1127 'tools/dump_cache/url_utilities.h',
1128 'tools/flip_server/acceptor_thread.cc',
1129 'tools/flip_server/acceptor_thread.h',
1130 'tools/flip_server/constants.h',
1131 'tools/flip_server/create_listener.cc',
1132 'tools/flip_server/create_listener.h',
1133 'tools/flip_server/flip_config.cc',
1134 'tools/flip_server/flip_config.h',
1135 'tools/flip_server/http_interface.cc',
1136 'tools/flip_server/http_interface.h',
1137 'tools/flip_server/loadtime_measurement.h',
1138 'tools/flip_server/mem_cache.cc',
1139 'tools/flip_server/mem_cache.h',
1140 'tools/flip_server/output_ordering.cc',
1141 'tools/flip_server/output_ordering.h',
1142 'tools/flip_server/ring_buffer.cc',
1143 'tools/flip_server/ring_buffer.h',
1144 'tools/flip_server/sm_connection.cc',
1145 'tools/flip_server/sm_connection.h',
1146 'tools/flip_server/sm_interface.h',
1147 'tools/flip_server/spdy_interface.cc',
1148 'tools/flip_server/spdy_interface.h',
1149 'tools/flip_server/spdy_ssl.cc',
1150 'tools/flip_server/spdy_ssl.h',
1151 'tools/flip_server/spdy_util.cc',
1152 'tools/flip_server/spdy_util.h',
1153 'tools/flip_server/streamer_interface.cc',
1154 'tools/flip_server/streamer_interface.h',
1158 'target_name': 'flip_in_mem_edsm_server_unittests',
1159 'type': 'executable',
1161 '../testing/gtest.gyp:gtest',
1162 '../testing/gmock.gyp:gmock',
1163 '../third_party/boringssl/boringssl.gyp:boringssl',
1164 'flip_in_mem_edsm_server_base',
1169 'tools/flip_server/flip_test_utils.cc',
1170 'tools/flip_server/flip_test_utils.h',
1171 'tools/flip_server/http_interface_test.cc',
1172 'tools/flip_server/mem_cache_test.cc',
1173 'tools/flip_server/run_all_tests.cc',
1174 'tools/flip_server/spdy_interface_test.cc',
1178 'target_name': 'flip_in_mem_edsm_server',
1179 'type': 'executable',
1184 '../base/base.gyp:base',
1185 'flip_in_mem_edsm_server_base',
1189 'tools/flip_server/flip_in_mem_edsm_server.cc',
1193 'target_name': 'quic_base',
1194 'type': 'static_library',
1196 '../base/base.gyp:base',
1197 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
1198 '../url/url.gyp:url_lib',
1204 'tools/quic/quic_client.cc',
1205 'tools/quic/quic_client.h',
1206 'tools/quic/quic_client_session.cc',
1207 'tools/quic/quic_client_session.h',
1208 'tools/quic/quic_default_packet_writer.cc',
1209 'tools/quic/quic_default_packet_writer.h',
1210 'tools/quic/quic_dispatcher.cc',
1211 'tools/quic/quic_dispatcher.h',
1212 'tools/quic/quic_epoll_clock.cc',
1213 'tools/quic/quic_epoll_clock.h',
1214 'tools/quic/quic_epoll_connection_helper.cc',
1215 'tools/quic/quic_epoll_connection_helper.h',
1216 'tools/quic/quic_in_memory_cache.cc',
1217 'tools/quic/quic_in_memory_cache.h',
1218 'tools/quic/quic_packet_reader.cc',
1219 'tools/quic/quic_packet_reader.h',
1220 'tools/quic/quic_packet_writer_wrapper.cc',
1221 'tools/quic/quic_packet_writer_wrapper.h',
1222 'tools/quic/quic_per_connection_packet_writer.cc',
1223 'tools/quic/quic_per_connection_packet_writer.h',
1224 'tools/quic/quic_server.cc',
1225 'tools/quic/quic_server.h',
1226 'tools/quic/quic_server_session.cc',
1227 'tools/quic/quic_server_session.h',
1228 'tools/quic/quic_socket_utils.cc',
1229 'tools/quic/quic_socket_utils.h',
1230 'tools/quic/quic_spdy_client_stream.cc',
1231 'tools/quic/quic_spdy_client_stream.h',
1232 'tools/quic/quic_spdy_server_stream.cc',
1233 'tools/quic/quic_spdy_server_stream.h',
1234 'tools/quic/quic_time_wait_list_manager.cc',
1235 'tools/quic/quic_time_wait_list_manager.h',
1239 'target_name': 'quic_client',
1240 'type': 'executable',
1242 '../base/base.gyp:base',
1247 'tools/quic/quic_client_bin.cc',
1252 ['os_posix == 1 and OS != "ios" and OS != "android"', {
1255 'target_name': 'quic_server',
1256 'type': 'executable',
1258 '../base/base.gyp:base',
1263 'quic/quic_server_bin.cc',
1270 { # The same target as 'net', but with smaller binary size due to
1271 # exclusion of ICU, FTP, FILE and WebSockets support.
1272 'target_name': 'net_small',
1274 'disable_ftp_support': 1,
1275 'disable_file_support': 1,
1276 'enable_websockets': 0,
1279 '../url/url.gyp:url_lib_use_icu_alternatives_on_android',
1282 'USE_ICU_ALTERNATIVES_ON_ANDROID=1',
1283 'DISABLE_FILE_SUPPORT=1',
1284 'DISABLE_FTP_SUPPORT=1',
1287 'base/net_string_util_icu_alternatives_android.cc',
1288 'base/net_string_util_icu_alternatives_android.h',
1290 'includes': [ 'net_common.gypi' ],
1293 'target_name': 'net_jni_headers',
1296 'android/java/src/org/chromium/net/AndroidCertVerifyResult.java',
1297 'android/java/src/org/chromium/net/AndroidKeyStore.java',
1298 'android/java/src/org/chromium/net/AndroidNetworkLibrary.java',
1299 'android/java/src/org/chromium/net/AndroidPrivateKey.java',
1300 'android/java/src/org/chromium/net/GURLUtils.java',
1301 'android/java/src/org/chromium/net/NetStringUtil.java',
1302 'android/java/src/org/chromium/net/NetworkChangeNotifier.java',
1303 'android/java/src/org/chromium/net/ProxyChangeListener.java',
1304 'android/java/src/org/chromium/net/X509Util.java',
1307 'jni_gen_package': 'net',
1309 'includes': [ '../build/jni_generator.gypi' ],
1312 'target_name': 'net_test_jni_headers',
1315 'android/javatests/src/org/chromium/net/AndroidKeyStoreTestUtil.java',
1318 'jni_gen_package': 'net',
1320 'includes': [ '../build/jni_generator.gypi' ],
1323 'target_name': 'net_java',
1326 'java_in_dir': '../net/android/java',
1329 '../base/base.gyp:base',
1330 'cert_verify_status_android_java',
1331 'certificate_mime_types_java',
1332 'network_change_notifier_types_java',
1334 'private_key_types_java',
1335 'remote_android_keystore_aidl',
1337 'includes': [ '../build/java.gypi' ],
1340 # Processes the interface files for communication with an Android KeyStore
1341 # running in a separate process.
1342 'target_name': 'remote_android_keystore_aidl',
1345 'aidl_interface_file': '../net/android/java/src/org/chromium/net/IRemoteAndroidKeyStoreInterface.aidl',
1348 '../net/android/java/src/org/chromium/net/IRemoteAndroidKeyStore.aidl',
1349 '../net/android/java/src/org/chromium/net/IRemoteAndroidKeyStoreCallbacks.aidl',
1351 'includes': [ '../build/java_aidl.gypi' ],
1354 'target_name': 'net_java_test_support',
1357 'java_in_dir': '../net/test/android/javatests',
1359 'includes': [ '../build/java.gypi' ],
1362 'target_name': 'net_javatests',
1365 'java_in_dir': '../net/android/javatests',
1368 '../base/base.gyp:base',
1369 '../base/base.gyp:base_java_test_support',
1372 'includes': [ '../build/java.gypi' ],
1375 'target_name': 'net_errors_java',
1378 'android/java/NetError.template',
1381 'package_name': 'org/chromium/net',
1382 'template_deps': ['base/net_error_list.h'],
1384 'includes': [ '../build/android/java_cpp_template.gypi' ],
1387 'target_name': 'certificate_mime_types_java',
1390 'source_file': 'base/mime_util.h',
1392 'includes': [ '../build/android/java_cpp_enum.gypi' ],
1395 'target_name': 'cert_verify_status_android_java',
1398 'source_file': 'android/cert_verify_result_android.h',
1400 'includes': [ '../build/android/java_cpp_enum.gypi' ],
1403 'target_name': 'network_change_notifier_types_java',
1406 'source_file': 'base/network_change_notifier.h',
1408 'includes': [ '../build/android/java_cpp_enum.gypi' ],
1411 'target_name': 'private_key_types_java',
1414 'source_file': 'android/keystore.h',
1416 'includes': [ '../build/android/java_cpp_enum.gypi' ],
1419 'target_name': 'net_unittests_apk',
1427 ['v8_use_external_startup_data==1', {
1429 '../v8/tools/gyp/v8.gyp:v8_external_snapshot',
1433 'destination': '<(asset_location)',
1435 '<(PRODUCT_DIR)/natives_blob.bin',
1436 '<(PRODUCT_DIR)/snapshot_blob.bin',
1443 'test_suite_name': 'net_unittests',
1445 ['v8_use_external_startup_data==1', {
1446 'asset_location': '<(PRODUCT_DIR)/net_unittests_apk/assets',
1447 'additional_input_paths': [
1448 '<(PRODUCT_DIR)/net_unittests_apk/assets/natives_blob.bin',
1449 '<(PRODUCT_DIR)/net_unittests_apk/assets/snapshot_blob.bin',
1452 '<(PRODUCT_DIR)/natives_blob.bin',
1453 '<(PRODUCT_DIR)/snapshot_blob.bin',
1458 'includes': [ '../build/apk_test.gypi' ],
1462 ['OS == "android" or OS == "linux"', {
1465 'target_name': 'disk_cache_memory_test',
1466 'type': 'executable',
1468 '../base/base.gyp:base',
1472 'tools/disk_cache_memory_test/disk_cache_memory_test.cc',
1477 ['test_isolation_mode != "noop"', {
1480 'target_name': 'net_unittests_run',
1486 '../build/isolate.gypi',
1489 'net_unittests.isolate',