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',
121 '<@(net_test_sources)',
124 ['os_posix == 1 and OS != "mac" and OS != "ios" and OS != "android"', {
127 'flip_in_mem_edsm_server_base',
131 '<@(net_linux_test_sources)',
134 ['OS == "mac" or OS == "ios"', {
136 '<@(net_base_test_mac_ios_sources)',
141 'proxy/proxy_config_service_linux_unittest.cc',
144 [ 'OS == "android"', {
146 # See bug http://crbug.com/344533.
147 'disk_cache/blockfile/index_table_v3_unittest.cc',
148 # No res_ninit() et al on Android, so this doesn't make a lot of
150 'dns/dns_config_service_posix_unittest.cc',
154 'net_test_jni_headers',
159 'ssl/client_cert_store_chromeos_unittest.cc',
160 'ssl/client_cert_store_nss_unittest.cc',
163 [ 'use_openssl == 1', {
164 # Avoid compiling/linking with the system library.
166 '../third_party/boringssl/boringssl.gyp:boringssl',
168 }, { # use_openssl == 0
170 [ 'desktop_linux == 1 or chromeos == 1', {
172 '../build/linux/system.gyp:ssl',
174 }, { # desktop_linux == 0 and chromeos == 0
176 '../third_party/nss/nss.gyp:nspr',
177 '../third_party/nss/nss.gyp:nss',
178 'third_party/nss/ssl.gyp:libssl',
181 'cert/nss_cert_database_unittest.cc',
186 [ 'os_posix == 1 and OS != "mac" and OS != "android" and OS != "ios"', {
188 ['use_allocator!="none"', {
190 '../base/allocator/allocator.gyp:allocator',
195 [ 'use_kerberos==1', {
199 }, { # use_kerberos == 0
201 'http/http_auth_gssapi_posix_unittest.cc',
202 'http/http_auth_handler_negotiate_unittest.cc',
203 'http/mock_gssapi_library_posix.cc',
204 'http/mock_gssapi_library_posix.h',
207 [ 'use_openssl == 1 or (desktop_linux == 0 and chromeos == 0 and OS != "ios")', {
208 # Only include this test when on Posix and using NSS for
209 # cert verification or on iOS (which also uses NSS for certs).
211 'ocsp/nss_ocsp_unittest.cc',
214 [ 'use_openssl==1', {
215 # When building for OpenSSL, we need to exclude NSS specific tests
216 # or functionality not supported by OpenSSL yet.
217 # TODO(bulach): Add equivalent tests when the underlying
218 # functionality is ported to OpenSSL.
220 'cert/nss_cert_database_chromeos_unittest.cc',
221 'cert/nss_cert_database_unittest.cc',
222 'cert/nss_profile_filter_chromeos_unittest.cc',
223 'cert/x509_util_nss_unittest.cc',
224 'quic/test_tools/crypto_test_utils_nss.cc',
226 }, { # else !use_openssl: remove the unneeded files and pull in NSS.
228 'cert/x509_util_openssl_unittest.cc',
229 'quic/test_tools/crypto_test_utils_openssl.cc',
230 'socket/ssl_client_socket_openssl_unittest.cc',
231 'socket/ssl_session_cache_openssl_unittest.cc',
235 [ 'use_openssl_certs == 0', {
237 'ssl/openssl_client_key_store_unittest.cc',
240 [ 'enable_websockets != 1', {
242 ['exclude', '^websockets/'],
243 ['exclude', '^server/'],
249 ['disable_file_support==1', {
251 'base/directory_lister_unittest.cc',
252 'url_request/url_request_file_job_unittest.cc',
255 [ 'disable_ftp_support==1', {
257 ['exclude', '^ftp/'],
260 'url_request/url_request_ftp_job_unittest.cc',
264 [ 'enable_built_in_dns!=1', {
266 'dns/address_sorter_posix_unittest.cc',
267 'dns/address_sorter_unittest.cc',
271 # Always need use_v8_in_net to be 1 to run gyp on Android, so just
272 # remove net_unittest's dependency on v8 when using icu alternatives
273 # instead of setting use_v8_in_net to 0.
274 [ 'use_v8_in_net==1 and use_icu_alternatives_on_android==0', {
278 }, { # else: !use_v8_in_net
280 'proxy/proxy_resolver_v8_tracing_unittest.cc',
281 'proxy/proxy_resolver_v8_unittest.cc',
286 [ 'use_v8_in_net==1 and OS != "android"', {
289 'net_browser_services',
290 'net_utility_services',
291 '../third_party/mojo/mojo_edk.gyp:mojo_system_impl',
295 'dns/host_resolver_mojo_unittest.cc',
296 'dns/mojo_host_resolver_impl_unittest.cc',
297 'proxy/load_state_change_coalescer_unittest.cc',
298 'proxy/mojo_proxy_resolver_factory_impl_unittest.cc',
299 'proxy/mojo_proxy_resolver_impl_unittest.cc',
300 'proxy/proxy_resolver_mojo_unittest.cc',
301 'proxy/proxy_service_mojo_unittest.cc',
306 [ 'enable_mdns != 1', {
308 'dns/mdns_cache_unittest.cc',
309 'dns/mdns_client_unittest.cc',
310 'dns/mdns_query_unittest.cc',
311 'dns/record_parsed_unittest.cc',
312 'dns/record_rdata_unittest.cc',
317 'dns/dns_config_service_posix_unittest.cc',
318 'http/http_auth_gssapi_posix_unittest.cc',
320 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
321 'msvs_disabled_warnings': [4267, ],
323 [ 'icu_use_data_file_flag == 0', {
324 # This is needed to trigger the dll copy step on windows.
325 # TODO(mark): Specifying this here shouldn't be necessary.
327 '../third_party/icu/icu.gyp:icudata',
336 'action_name': 'copy_test_data',
339 'data/ssl/certificates/',
341 'data/url_request_unittest/',
343 'test_data_prefix': 'net',
345 'includes': [ '../build/copy_test_data_ios.gypi' ],
349 # TODO(droger): The following tests are disabled because the
350 # implementation is missing or incomplete.
351 # KeygenHandler::GenKeyAndSignChallenge() is not ported to iOS.
352 'base/keygen_handler_unittest.cc',
353 'disk_cache/backend_unittest.cc',
354 'disk_cache/blockfile/block_files_unittest.cc',
355 # Need to read input data files.
356 'filter/gzip_filter_unittest.cc',
358 'proxy/proxy_script_fetcher_impl_unittest.cc',
359 'socket/ssl_client_socket_unittest.cc',
360 'socket/ssl_server_socket_unittest.cc',
361 'spdy/fuzzing/hpack_fuzz_util_test.cc',
362 # Needs GetAppOutput().
363 'test/python_utils_unittest.cc',
364 'url_request/url_fetcher_impl_unittest.cc',
365 'url_request/url_request_context_builder_unittest.cc',
367 # The following tests are disabled because they don't apply to
369 # OS is not "linux" or "freebsd" or "openbsd".
370 'socket/unix_domain_client_socket_posix_unittest.cc',
371 'socket/unix_domain_listen_socket_posix_unittest.cc',
372 'socket/unix_domain_server_socket_posix_unittest.cc',
374 # See bug http://crbug.com/344533.
375 'disk_cache/blockfile/index_table_v3_unittest.cc',
378 [ 'OS == "android"', {
380 'dns/dns_config_service_posix_unittest.cc',
384 ['OS == "android"', {
385 # TODO(mmenke): This depends on test_support_base, which depends on
386 # icu. Figure out a way to remove that dependency.
388 '../testing/android/native_test.gyp:native_test_native_code',
391 [ 'use_icu_alternatives_on_android == 1', {
393 '../base/base.gyp:base_i18n',
396 'base/filename_util_unittest.cc',
397 'base/net_util_icu_unittest.cc',
401 ['v8_use_external_startup_data==1', {
403 '../gin/gin.gyp:gin',
407 'target_conditions': [
408 # These source files are excluded by default platform rules, but they
409 # are needed in specific cases on other platforms. Re-including them can
410 # only be done in target_conditions as it is evaluated after the
412 ['OS == "android"', {
414 ['include', '^base/address_tracker_linux_unittest\\.cc$'],
419 ['include', '^base/mac/url_conversions_unittest\\.mm$'],
425 'target_name': 'net_perftests',
426 'type': 'executable',
428 '../base/base.gyp:base',
429 '../base/base.gyp:base_i18n',
430 '../base/base.gyp:test_support_perf',
431 '../testing/gtest.gyp:gtest',
432 '../url/url.gyp:url_lib',
437 'cookies/cookie_monster_perftest.cc',
438 'disk_cache/blockfile/disk_cache_perftest.cc',
439 'proxy/proxy_resolver_perftest.cc',
440 'udp/udp_socket_perftest.cc',
441 'websockets/websocket_frame_perftest.cc',
444 [ 'use_v8_in_net==1', {
448 }, { # else: !use_v8_in_net
450 'proxy/proxy_resolver_perftest.cc',
456 [ 'icu_use_data_file_flag == 0', {
457 # This is needed to trigger the dll copy step on windows.
458 # TODO(mark): Specifying this here shouldn't be necessary.
460 '../third_party/icu/icu.gyp:icudata',
464 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
465 'msvs_disabled_warnings': [4267, ],
467 [ 'enable_websockets != 1', {
469 'websockets/websocket_frame_perftest.cc',
475 'target_name': 'net_test_support',
476 'type': 'static_library',
478 '../base/base.gyp:base',
479 '../base/base.gyp:test_support_base',
480 '../crypto/crypto.gyp:crypto',
481 '../net/tools/tld_cleanup/tld_cleanup.gyp:tld_cleanup_util',
482 '../testing/gtest.gyp:gtest',
483 '../testing/gmock.gyp:gmock',
484 '../url/url.gyp:url_lib',
487 'export_dependent_settings': [
488 '../base/base.gyp:base',
489 # TODO(mmenke): This depends on icu, figure out a way to build tests
491 '../base/base.gyp:test_support_base',
492 '../testing/gtest.gyp:gtest',
493 '../testing/gmock.gyp:gmock',
496 'base/captured_net_log_entry.cc',
497 'base/captured_net_log_entry.h',
498 'base/capturing_net_log.cc',
499 'base/capturing_net_log.h',
500 'base/capturing_net_log_observer.cc',
501 'base/capturing_net_log_observer.h',
502 'base/load_timing_info_test_util.cc',
503 'base/load_timing_info_test_util.h',
504 'base/mock_file_stream.cc',
505 'base/mock_file_stream.h',
506 'base/test_completion_callback.cc',
507 'base/test_completion_callback.h',
508 'base/test_data_directory.cc',
509 'base/test_data_directory.h',
510 'cert/mock_cert_verifier.cc',
511 'cert/mock_cert_verifier.h',
512 'cookies/cookie_monster_store_test.cc',
513 'cookies/cookie_monster_store_test.h',
514 'cookies/cookie_store_test_callbacks.cc',
515 'cookies/cookie_store_test_callbacks.h',
516 'cookies/cookie_store_test_helpers.cc',
517 'cookies/cookie_store_test_helpers.h',
518 'disk_cache/disk_cache_test_base.cc',
519 'disk_cache/disk_cache_test_base.h',
520 'disk_cache/disk_cache_test_util.cc',
521 'disk_cache/disk_cache_test_util.h',
522 'dns/dns_test_util.cc',
523 'dns/dns_test_util.h',
524 'dns/mock_host_resolver.cc',
525 'dns/mock_host_resolver.h',
526 'dns/mock_mdns_socket_factory.cc',
527 'dns/mock_mdns_socket_factory.h',
528 'http/http_transaction_test_util.cc',
529 'http/http_transaction_test_util.h',
530 'proxy/mock_proxy_resolver.cc',
531 'proxy/mock_proxy_resolver.h',
532 'proxy/mock_proxy_script_fetcher.cc',
533 'proxy/mock_proxy_script_fetcher.h',
534 'proxy/proxy_config_service_common_unittest.cc',
535 'proxy/proxy_config_service_common_unittest.h',
536 'socket/socket_test_util.cc',
537 'socket/socket_test_util.h',
538 'test/cert_test_util.cc',
539 'test/cert_test_util.h',
540 'test/cert_test_util_nss.cc',
541 'test/ct_test_util.cc',
542 'test/ct_test_util.h',
543 'test/embedded_test_server/embedded_test_server.cc',
544 'test/embedded_test_server/embedded_test_server.h',
545 'test/embedded_test_server/http_connection.cc',
546 'test/embedded_test_server/http_connection.h',
547 'test/embedded_test_server/http_request.cc',
548 'test/embedded_test_server/http_request.h',
549 'test/embedded_test_server/http_response.cc',
550 'test/embedded_test_server/http_response.h',
551 'test/event_waiter.h',
552 'test/net_test_suite.cc',
553 'test/net_test_suite.h',
554 'test/python_utils.cc',
555 'test/python_utils.h',
556 'test/spawned_test_server/base_test_server.cc',
557 'test/spawned_test_server/base_test_server.h',
558 'test/spawned_test_server/local_test_server.cc',
559 'test/spawned_test_server/local_test_server.h',
560 'test/spawned_test_server/local_test_server_posix.cc',
561 'test/spawned_test_server/local_test_server_win.cc',
562 'test/spawned_test_server/remote_test_server.cc',
563 'test/spawned_test_server/remote_test_server.h',
564 'test/spawned_test_server/spawned_test_server.h',
565 'test/spawned_test_server/spawner_communicator.cc',
566 'test/spawned_test_server/spawner_communicator.h',
567 'test/url_request/url_request_failed_job.cc',
568 'test/url_request/url_request_failed_job.h',
569 'test/url_request/url_request_mock_data_job.cc',
570 'test/url_request/url_request_mock_data_job.h',
571 'test/url_request/url_request_mock_http_job.cc',
572 'test/url_request/url_request_mock_http_job.h',
573 'test/url_request/url_request_slow_download_job.cc',
574 'test/url_request/url_request_slow_download_job.h',
575 'url_request/test_url_fetcher_factory.cc',
576 'url_request/test_url_fetcher_factory.h',
577 'url_request/test_url_request_interceptor.cc',
578 'url_request/test_url_request_interceptor.h',
579 'url_request/url_request_test_util.cc',
580 'url_request/url_request_test_util.h',
585 '../third_party/protobuf/protobuf.gyp:py_proto',
588 ['use_openssl == 0 and (use_nss == 1 or OS == "ios")', {
590 [ 'desktop_linux == 1 or chromeos == 1', {
592 '../build/linux/system.gyp:ssl',
594 }, { # desktop_linux == 0 and chromeos == 0
596 '../third_party/nss/nss.gyp:nspr',
597 '../third_party/nss/nss.gyp:nss',
598 'third_party/nss/ssl.gyp:libssl',
603 ['os_posix == 1 and OS != "mac" and OS != "android" and OS != "ios"', {
605 ['use_allocator!="none"', {
607 '../base/allocator/allocator.gyp:allocator',
612 ['OS != "android"', {
614 'test/spawned_test_server/remote_test_server.cc',
615 'test/spawned_test_server/remote_test_server.h',
616 'test/spawned_test_server/spawner_communicator.cc',
617 'test/spawned_test_server/spawner_communicator.h',
620 [ 'use_v8_in_net==1', {
626 [ 'enable_mdns != 1', {
628 'dns/mock_mdns_socket_factory.cc',
629 'dns/mock_mdns_socket_factory.h'
634 'test/cert_test_util_nss.cc',
638 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
639 'msvs_disabled_warnings': [4267, ],
642 'target_name': 'net_resources',
645 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/net',
649 'action_name': 'net_resources',
651 'grit_grd_file': 'base/net_resources.grd',
653 'includes': [ '../build/grit_action.gypi' ],
658 'target_name': 'net_extras',
659 'type': 'static_library',
660 'variables': { 'enable_wexit_time_destructors': 1, },
662 '../base/base.gyp:base',
663 '../sql/sql.gyp:sql',
667 '<@(net_extras_sources)',
671 'target_name': 'net_docs',
675 'action_name': 'net_docs',
677 'net_docs_input_dir': '.',
680 '<@(net_docs_sources)',
683 '<(net_docs_output_dir)',
687 '<(net_docs_script)',
689 '<(net_docs_input_dir)',
691 '<(net_docs_output_dir)',
692 '<@(net_docs_sources)',
694 'message': 'Rendering network stack documentation',
699 'target_name': 'http_server',
700 'type': 'static_library',
701 'variables': { 'enable_wexit_time_destructors': 1, },
703 '../base/base.gyp:base',
707 'server/http_connection.cc',
708 'server/http_connection.h',
709 'server/http_server.cc',
710 'server/http_server.h',
711 'server/http_server_request_info.cc',
712 'server/http_server_request_info.h',
713 'server/http_server_response_info.cc',
714 'server/http_server_response_info.h',
715 'server/web_socket.cc',
716 'server/web_socket.h',
717 'server/web_socket_encoder.cc',
718 'server/web_socket_encoder.h',
720 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
721 'msvs_disabled_warnings': [4267, ],
724 'target_name': 'balsa',
725 'type': 'static_library',
727 '../base/base.gyp:base',
731 'tools/balsa/balsa_enums.h',
732 'tools/balsa/balsa_frame.cc',
733 'tools/balsa/balsa_frame.h',
734 'tools/balsa/balsa_headers.cc',
735 'tools/balsa/balsa_headers.h',
736 'tools/balsa/balsa_headers_token_utils.cc',
737 'tools/balsa/balsa_headers_token_utils.h',
738 'tools/balsa/balsa_visitor_interface.h',
739 'tools/balsa/http_message_constants.cc',
740 'tools/balsa/http_message_constants.h',
741 'tools/balsa/noop_balsa_visitor.h',
742 'tools/balsa/simple_buffer.cc',
743 'tools/balsa/simple_buffer.h',
744 'tools/balsa/split.cc',
745 'tools/balsa/split.h',
746 'tools/balsa/string_piece_utils.h',
747 'tools/quic/spdy_utils.cc',
748 'tools/quic/spdy_utils.h',
752 'target_name': 'dump_cache',
753 'type': 'executable',
755 '../base/base.gyp:base',
760 'tools/dump_cache/cache_dumper.cc',
761 'tools/dump_cache/cache_dumper.h',
762 'tools/dump_cache/dump_cache.cc',
763 'tools/dump_cache/dump_files.cc',
764 'tools/dump_cache/dump_files.h',
765 'tools/dump_cache/simple_cache_dumper.cc',
766 'tools/dump_cache/simple_cache_dumper.h',
767 'tools/dump_cache/url_to_filename_encoder.cc',
768 'tools/dump_cache/url_to_filename_encoder.h',
769 'tools/dump_cache/url_utilities.cc',
770 'tools/dump_cache/url_utilities.h',
772 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
773 'msvs_disabled_warnings': [4267, ],
776 # This is a temporary target which will be merged into 'net' once the
777 # dependency on balsa is eliminated and the classes are actually used.
778 'target_name': 'quic_tools',
779 'type': 'static_library',
781 '../base/base.gyp:base',
782 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
783 '../url/url.gyp:url_lib',
787 'quic/quic_dispatcher.cc',
788 'quic/quic_dispatcher.h',
789 'quic/quic_in_memory_cache.cc',
790 'quic/quic_in_memory_cache.h',
791 'quic/quic_per_connection_packet_writer.cc',
792 'quic/quic_per_connection_packet_writer.h',
793 'quic/quic_server.cc',
794 'quic/quic_server.h',
795 'quic/quic_server_packet_writer.cc',
796 'quic/quic_server_packet_writer.h',
797 'quic/quic_server_session.cc',
798 'quic/quic_server_session.h',
799 'quic/quic_spdy_server_stream.cc',
800 'quic/quic_spdy_server_stream.h',
801 'quic/quic_time_wait_list_manager.cc',
802 'quic/quic_time_wait_list_manager.h',
806 'target_name': 'simple_quic_tools',
807 'type': 'static_library',
809 '../base/base.gyp:base',
810 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
811 '../url/url.gyp:url_lib',
815 'tools/quic/quic_simple_client.cc',
816 'tools/quic/quic_simple_client.h',
817 'tools/quic/quic_simple_client_session.cc',
818 'tools/quic/quic_simple_client_session.h',
819 'tools/quic/quic_simple_client_stream.cc',
820 'tools/quic/quic_simple_client_stream.h',
821 'tools/quic/synchronous_host_resolver.cc',
822 'tools/quic/synchronous_host_resolver.h',
827 ['use_v8_in_net == 1', {
830 'target_name': 'net_with_v8',
831 'type': '<(component)',
832 'variables': { 'enable_wexit_time_destructors': 1, },
834 '../base/base.gyp:base',
835 '../gin/gin.gyp:gin',
836 '../url/url.gyp:url_lib',
837 '../v8/tools/gyp/v8.gyp:v8',
841 'NET_IMPLEMENTATION',
844 'proxy/proxy_resolver_v8.cc',
845 'proxy/proxy_resolver_v8.h',
846 'proxy/proxy_resolver_v8_tracing.cc',
847 'proxy/proxy_resolver_v8_tracing.h',
848 'proxy/proxy_service_v8.cc',
849 'proxy/proxy_service_v8.h',
851 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
852 'msvs_disabled_warnings': [4267, ],
856 ['use_v8_in_net == 1 and OS != "android"', {
859 # GN version: //net/interfaces
860 'target_name': 'net_interfaces',
861 'type': 'static_library',
863 'interfaces/host_resolver_service.mojom',
864 'interfaces/proxy_resolver_service.mojom',
867 '../third_party/mojo/mojom_bindings_generator.gypi',
871 # GN version: //net:net_browser_services
872 'target_name': 'net_browser_services',
873 'type': 'static_library',
875 'dns/mojo_host_resolver_impl.cc',
876 'dns/mojo_host_resolver_impl.h',
877 'proxy/in_process_mojo_proxy_resolver_factory.cc',
878 'proxy/in_process_mojo_proxy_resolver_factory.h',
879 'proxy/mojo_proxy_resolver_factory.h',
880 'proxy/proxy_resolver_mojo.cc',
881 'proxy/proxy_resolver_mojo.h',
882 'proxy/proxy_service_mojo.cc',
883 'proxy/proxy_service_mojo.h',
886 'mojo_type_converters',
889 '../mojo/mojo_base.gyp:mojo_common_lib',
890 '../mojo/mojo_base.gyp:mojo_environment_chromium',
891 '../mojo/mojo_base.gyp:mojo_url_type_converters',
892 '../third_party/mojo/mojo_public.gyp:mojo_cpp_bindings',
894 # NOTE(amistry): As long as we support in-process Mojo v8 PAC, we
895 # need this dependency since in_process_mojo_proxy_resolver_factory
896 # creates the utility process side Mojo services in the browser
897 # process. Ultimately, this will go away when we only support
899 'net_utility_services',
903 # GN version: //net:net_utility_services
904 'target_name': 'net_utility_services',
905 'type': 'static_library',
907 'dns/host_resolver_mojo.cc',
908 'dns/host_resolver_mojo.h',
909 'proxy/load_state_change_coalescer.cc',
910 'proxy/load_state_change_coalescer.h',
911 'proxy/mojo_proxy_resolver_factory_impl.cc',
912 'proxy/mojo_proxy_resolver_factory_impl.h',
913 'proxy/mojo_proxy_resolver_impl.cc',
914 'proxy/mojo_proxy_resolver_impl.h',
917 'mojo_type_converters',
920 '../mojo/mojo_base.gyp:mojo_url_type_converters',
921 '../third_party/mojo/mojo_public.gyp:mojo_cpp_bindings',
925 # GN version: //net:mojo_type_converters
926 'target_name': 'mojo_type_converters',
927 'type': 'static_library',
929 'dns/mojo_host_type_converters.cc',
930 'dns/mojo_host_type_converters.h',
931 'proxy/mojo_proxy_type_converters.cc',
932 'proxy/mojo_proxy_type_converters.h',
937 '../third_party/mojo/mojo_public.gyp:mojo_cpp_bindings',
942 ['OS != "ios" and OS != "android"', {
944 # iOS doesn't have the concept of simple executables, these targets
945 # can't be compiled on the platform.
947 'target_name': 'crash_cache',
948 'type': 'executable',
950 '../base/base.gyp:base',
955 'tools/crash_cache/crash_cache.cc',
957 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
958 'msvs_disabled_warnings': [4267, ],
961 'target_name': 'crl_set_dump',
962 'type': 'executable',
964 '../base/base.gyp:base',
968 'tools/crl_set_dump/crl_set_dump.cc',
970 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
971 'msvs_disabled_warnings': [4267, ],
974 'target_name': 'dns_fuzz_stub',
975 'type': 'executable',
977 '../base/base.gyp:base',
981 'tools/dns_fuzz_stub/dns_fuzz_stub.cc',
983 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
984 'msvs_disabled_warnings': [4267, ],
987 'target_name': 'gdig',
988 'type': 'executable',
990 '../base/base.gyp:base',
994 'tools/gdig/file_net_log.cc',
995 'tools/gdig/gdig.cc',
999 'target_name': 'get_server_time',
1000 'type': 'executable',
1002 '../base/base.gyp:base',
1003 '../base/base.gyp:base_i18n',
1004 '../url/url.gyp:url_lib',
1008 'tools/get_server_time/get_server_time.cc',
1010 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1011 'msvs_disabled_warnings': [4267, ],
1014 'target_name': 'hpack_example_generator',
1015 'type': 'executable',
1017 '../base/base.gyp:base',
1021 'spdy/fuzzing/hpack_example_generator.cc',
1023 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1024 'msvs_disabled_warnings': [4267, ],
1027 'target_name': 'hpack_fuzz_mutator',
1028 'type': 'executable',
1030 '../base/base.gyp:base',
1034 'spdy/fuzzing/hpack_fuzz_mutator.cc',
1036 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1037 'msvs_disabled_warnings': [4267, ],
1040 'target_name': 'hpack_fuzz_wrapper',
1041 'type': 'executable',
1043 '../base/base.gyp:base',
1047 'spdy/fuzzing/hpack_fuzz_wrapper.cc',
1049 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1050 'msvs_disabled_warnings': [4267, ],
1053 'target_name': 'net_watcher',
1054 'type': 'executable',
1056 '../base/base.gyp:base',
1061 [ 'use_glib == 1', {
1063 '../build/linux/system.gyp:gconf',
1064 '../build/linux/system.gyp:gio',
1070 'tools/net_watcher/net_watcher.cc',
1074 'target_name': 'run_testserver',
1075 'type': 'executable',
1077 '../base/base.gyp:base',
1078 '../base/base.gyp:test_support_base',
1079 '../testing/gtest.gyp:gtest',
1083 'tools/testserver/run_testserver.cc',
1087 'target_name': 'simple_quic_client',
1088 'type': 'executable',
1090 '../base/base.gyp:base',
1091 '../url/url.gyp:url_lib',
1093 'simple_quic_tools',
1096 'tools/quic/quic_simple_client_bin.cc',
1100 'target_name': 'stress_cache',
1101 'type': 'executable',
1103 '../base/base.gyp:base',
1108 'tools/stress_cache/stress_cache.cc',
1110 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1111 'msvs_disabled_warnings': [4267, ],
1114 'target_name': 'tld_cleanup',
1115 'type': 'executable',
1117 '../base/base.gyp:base',
1118 '../base/base.gyp:base_i18n',
1119 '../net/tools/tld_cleanup/tld_cleanup.gyp:tld_cleanup_util',
1122 'tools/tld_cleanup/tld_cleanup.cc',
1124 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1125 'msvs_disabled_warnings': [4267, ],
1129 ['os_posix == 1 and OS != "mac" and OS != "ios" and OS != "android"', {
1132 'target_name': 'epoll_server',
1133 'type': 'static_library',
1135 '../base/base.gyp:base',
1139 'tools/epoll_server/epoll_server.cc',
1140 'tools/epoll_server/linux_epoll_server.cc',
1141 'tools/epoll_server/epoll_server.h',
1145 'target_name': 'flip_in_mem_edsm_server_base',
1146 'type': 'static_library',
1151 '../base/base.gyp:base',
1152 '../third_party/boringssl/boringssl.gyp:boringssl',
1158 'tools/dump_cache/url_to_filename_encoder.cc',
1159 'tools/dump_cache/url_to_filename_encoder.h',
1160 'tools/dump_cache/url_utilities.cc',
1161 'tools/dump_cache/url_utilities.h',
1162 'tools/flip_server/acceptor_thread.cc',
1163 'tools/flip_server/acceptor_thread.h',
1164 'tools/flip_server/constants.h',
1165 'tools/flip_server/create_listener.cc',
1166 'tools/flip_server/create_listener.h',
1167 'tools/flip_server/flip_config.cc',
1168 'tools/flip_server/flip_config.h',
1169 'tools/flip_server/http_interface.cc',
1170 'tools/flip_server/http_interface.h',
1171 'tools/flip_server/loadtime_measurement.h',
1172 'tools/flip_server/mem_cache.cc',
1173 'tools/flip_server/mem_cache.h',
1174 'tools/flip_server/output_ordering.cc',
1175 'tools/flip_server/output_ordering.h',
1176 'tools/flip_server/ring_buffer.cc',
1177 'tools/flip_server/ring_buffer.h',
1178 'tools/flip_server/sm_connection.cc',
1179 'tools/flip_server/sm_connection.h',
1180 'tools/flip_server/sm_interface.h',
1181 'tools/flip_server/spdy_interface.cc',
1182 'tools/flip_server/spdy_interface.h',
1183 'tools/flip_server/spdy_ssl.cc',
1184 'tools/flip_server/spdy_ssl.h',
1185 'tools/flip_server/spdy_util.cc',
1186 'tools/flip_server/spdy_util.h',
1187 'tools/flip_server/streamer_interface.cc',
1188 'tools/flip_server/streamer_interface.h',
1192 'target_name': 'flip_in_mem_edsm_server_unittests',
1193 'type': 'executable',
1195 '../testing/gtest.gyp:gtest',
1196 '../testing/gmock.gyp:gmock',
1197 '../third_party/boringssl/boringssl.gyp:boringssl',
1198 'flip_in_mem_edsm_server_base',
1203 'tools/flip_server/flip_test_utils.cc',
1204 'tools/flip_server/flip_test_utils.h',
1205 'tools/flip_server/http_interface_test.cc',
1206 'tools/flip_server/mem_cache_test.cc',
1207 'tools/flip_server/run_all_tests.cc',
1208 'tools/flip_server/spdy_interface_test.cc',
1212 'target_name': 'flip_in_mem_edsm_server',
1213 'type': 'executable',
1218 '../base/base.gyp:base',
1219 'flip_in_mem_edsm_server_base',
1223 'tools/flip_server/flip_in_mem_edsm_server.cc',
1227 'target_name': 'quic_base',
1228 'type': 'static_library',
1230 '../base/base.gyp:base',
1231 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
1232 '../url/url.gyp:url_lib',
1238 'tools/quic/quic_client.cc',
1239 'tools/quic/quic_client.h',
1240 'tools/quic/quic_client_session.cc',
1241 'tools/quic/quic_client_session.h',
1242 'tools/quic/quic_default_packet_writer.cc',
1243 'tools/quic/quic_default_packet_writer.h',
1244 'tools/quic/quic_dispatcher.cc',
1245 'tools/quic/quic_dispatcher.h',
1246 'tools/quic/quic_epoll_clock.cc',
1247 'tools/quic/quic_epoll_clock.h',
1248 'tools/quic/quic_epoll_connection_helper.cc',
1249 'tools/quic/quic_epoll_connection_helper.h',
1250 'tools/quic/quic_in_memory_cache.cc',
1251 'tools/quic/quic_in_memory_cache.h',
1252 'tools/quic/quic_packet_reader.cc',
1253 'tools/quic/quic_packet_reader.h',
1254 'tools/quic/quic_packet_writer_wrapper.cc',
1255 'tools/quic/quic_packet_writer_wrapper.h',
1256 'tools/quic/quic_per_connection_packet_writer.cc',
1257 'tools/quic/quic_per_connection_packet_writer.h',
1258 'tools/quic/quic_server.cc',
1259 'tools/quic/quic_server.h',
1260 'tools/quic/quic_server_session.cc',
1261 'tools/quic/quic_server_session.h',
1262 'tools/quic/quic_socket_utils.cc',
1263 'tools/quic/quic_socket_utils.h',
1264 'tools/quic/quic_spdy_client_stream.cc',
1265 'tools/quic/quic_spdy_client_stream.h',
1266 'tools/quic/quic_spdy_server_stream.cc',
1267 'tools/quic/quic_spdy_server_stream.h',
1268 'tools/quic/quic_time_wait_list_manager.cc',
1269 'tools/quic/quic_time_wait_list_manager.h',
1273 'target_name': 'quic_client',
1274 'type': 'executable',
1276 '../base/base.gyp:base',
1279 'simple_quic_tools',
1282 'tools/quic/quic_client_bin.cc',
1287 ['os_posix == 1 and OS != "ios" and OS != "android"', {
1290 'target_name': 'quic_server',
1291 'type': 'executable',
1293 '../base/base.gyp:base',
1298 'quic/quic_server_bin.cc',
1305 { # The same target as 'net', but with smaller binary size due to
1306 # exclusion of ICU, FTP, FILE and WebSockets support.
1307 'target_name': 'net_small',
1309 'disable_ftp_support': 1,
1310 'disable_file_support': 1,
1311 'enable_websockets': 0,
1314 '../url/url.gyp:url_lib_use_icu_alternatives_on_android',
1317 'USE_ICU_ALTERNATIVES_ON_ANDROID=1',
1318 'DISABLE_FILE_SUPPORT=1',
1319 'DISABLE_FTP_SUPPORT=1',
1322 'base/net_string_util_icu_alternatives_android.cc',
1323 'base/net_string_util_icu_alternatives_android.h',
1325 'includes': [ 'net_common.gypi' ],
1328 'target_name': 'net_jni_headers',
1331 'android/java/src/org/chromium/net/AndroidCertVerifyResult.java',
1332 'android/java/src/org/chromium/net/AndroidKeyStore.java',
1333 'android/java/src/org/chromium/net/AndroidNetworkLibrary.java',
1334 'android/java/src/org/chromium/net/AndroidPrivateKey.java',
1335 'android/java/src/org/chromium/net/GURLUtils.java',
1336 'android/java/src/org/chromium/net/NetStringUtil.java',
1337 'android/java/src/org/chromium/net/NetworkChangeNotifier.java',
1338 'android/java/src/org/chromium/net/ProxyChangeListener.java',
1339 'android/java/src/org/chromium/net/X509Util.java',
1342 'jni_gen_package': 'net',
1344 'includes': [ '../build/jni_generator.gypi' ],
1347 'target_name': 'net_test_jni_headers',
1350 'android/javatests/src/org/chromium/net/AndroidKeyStoreTestUtil.java',
1353 'jni_gen_package': 'net',
1355 'includes': [ '../build/jni_generator.gypi' ],
1358 'target_name': 'net_java',
1361 'java_in_dir': '../net/android/java',
1364 '../base/base.gyp:base',
1365 'cert_verify_status_android_java',
1366 'certificate_mime_types_java',
1367 'network_change_notifier_types_java',
1369 'private_key_types_java',
1370 'remote_android_keystore_aidl',
1372 'includes': [ '../build/java.gypi' ],
1375 # Processes the interface files for communication with an Android KeyStore
1376 # running in a separate process.
1377 'target_name': 'remote_android_keystore_aidl',
1380 'aidl_interface_file': '../net/android/java/src/org/chromium/net/IRemoteAndroidKeyStoreInterface.aidl',
1383 '../net/android/java/src/org/chromium/net/IRemoteAndroidKeyStore.aidl',
1384 '../net/android/java/src/org/chromium/net/IRemoteAndroidKeyStoreCallbacks.aidl',
1386 'includes': [ '../build/java_aidl.gypi' ],
1389 'target_name': 'net_java_test_support',
1392 'java_in_dir': '../net/test/android/javatests',
1394 'includes': [ '../build/java.gypi' ],
1397 'target_name': 'net_javatests',
1400 'java_in_dir': '../net/android/javatests',
1403 '../base/base.gyp:base',
1404 '../base/base.gyp:base_java_test_support',
1407 'includes': [ '../build/java.gypi' ],
1410 'target_name': 'net_errors_java',
1413 'android/java/NetError.template',
1416 'package_name': 'org/chromium/net',
1417 'template_deps': ['base/net_error_list.h'],
1419 'includes': [ '../build/android/java_cpp_template.gypi' ],
1422 'target_name': 'certificate_mime_types_java',
1425 'source_file': 'base/mime_util.h',
1427 'includes': [ '../build/android/java_cpp_enum.gypi' ],
1430 'target_name': 'cert_verify_status_android_java',
1433 'source_file': 'android/cert_verify_result_android.h',
1435 'includes': [ '../build/android/java_cpp_enum.gypi' ],
1438 'target_name': 'network_change_notifier_types_java',
1441 'source_file': 'base/network_change_notifier.h',
1443 'includes': [ '../build/android/java_cpp_enum.gypi' ],
1446 'target_name': 'private_key_types_java',
1449 'source_file': 'android/keystore.h',
1451 'includes': [ '../build/android/java_cpp_enum.gypi' ],
1454 'target_name': 'net_unittests_apk',
1462 ['v8_use_external_startup_data==1', {
1464 '../v8/tools/gyp/v8.gyp:v8_external_snapshot',
1468 'destination': '<(asset_location)',
1470 '<(PRODUCT_DIR)/natives_blob.bin',
1471 '<(PRODUCT_DIR)/snapshot_blob.bin',
1478 'test_suite_name': 'net_unittests',
1480 ['v8_use_external_startup_data==1', {
1481 'asset_location': '<(PRODUCT_DIR)/net_unittests_apk/assets',
1482 'additional_input_paths': [
1483 '<(PRODUCT_DIR)/net_unittests_apk/assets/natives_blob.bin',
1484 '<(PRODUCT_DIR)/net_unittests_apk/assets/snapshot_blob.bin',
1487 '<(PRODUCT_DIR)/natives_blob.bin',
1488 '<(PRODUCT_DIR)/snapshot_blob.bin',
1493 'includes': [ '../build/apk_test.gypi' ],
1497 ['OS == "android" or OS == "linux"', {
1500 'target_name': 'disk_cache_memory_test',
1501 'type': 'executable',
1503 '../base/base.gyp:base',
1507 'tools/disk_cache_memory_test/disk_cache_memory_test.cc',
1512 ['test_isolation_mode != "noop"', {
1515 'target_name': 'net_unittests_run',
1521 '../build/isolate.gypi',
1524 'net_unittests.isolate',