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',
788 'quic/quic_dispatcher.cc',
789 'quic/quic_dispatcher.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',
799 'target_name': 'simple_quic_tools',
800 'type': 'static_library',
802 '../base/base.gyp:base',
803 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
804 '../url/url.gyp:url_lib',
808 'tools/quic/quic_in_memory_cache.cc',
809 'tools/quic/quic_in_memory_cache.h',
810 'tools/quic/quic_server_session.cc',
811 'tools/quic/quic_server_session.h',
812 'tools/quic/quic_simple_client.cc',
813 'tools/quic/quic_simple_client.h',
814 'tools/quic/quic_client_session.cc',
815 'tools/quic/quic_client_session.h',
816 'tools/quic/quic_spdy_client_stream.cc',
817 'tools/quic/quic_spdy_client_stream.h',
818 'tools/quic/quic_spdy_server_stream.cc',
819 'tools/quic/quic_spdy_server_stream.h',
820 'tools/quic/quic_time_wait_list_manager.cc',
821 'tools/quic/quic_time_wait_list_manager.h',
822 'tools/quic/synchronous_host_resolver.cc',
823 'tools/quic/synchronous_host_resolver.h',
828 ['use_v8_in_net == 1', {
831 'target_name': 'net_with_v8',
832 'type': '<(component)',
833 'variables': { 'enable_wexit_time_destructors': 1, },
835 '../base/base.gyp:base',
836 '../gin/gin.gyp:gin',
837 '../url/url.gyp:url_lib',
838 '../v8/tools/gyp/v8.gyp:v8',
842 'NET_IMPLEMENTATION',
845 'proxy/proxy_resolver_v8.cc',
846 'proxy/proxy_resolver_v8.h',
847 'proxy/proxy_resolver_v8_tracing.cc',
848 'proxy/proxy_resolver_v8_tracing.h',
849 'proxy/proxy_service_v8.cc',
850 'proxy/proxy_service_v8.h',
852 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
853 'msvs_disabled_warnings': [4267, ],
857 ['use_v8_in_net == 1 and OS != "android"', {
860 # GN version: //net/interfaces
861 'target_name': 'net_interfaces',
862 'type': 'static_library',
864 'interfaces/host_resolver_service.mojom',
865 'interfaces/proxy_resolver_service.mojom',
868 '../third_party/mojo/mojom_bindings_generator.gypi',
872 # GN version: //net:net_browser_services
873 'target_name': 'net_browser_services',
874 'type': 'static_library',
876 'dns/mojo_host_resolver_impl.cc',
877 'dns/mojo_host_resolver_impl.h',
878 'proxy/in_process_mojo_proxy_resolver_factory.cc',
879 'proxy/in_process_mojo_proxy_resolver_factory.h',
880 'proxy/mojo_proxy_resolver_factory.h',
881 'proxy/proxy_resolver_mojo.cc',
882 'proxy/proxy_resolver_mojo.h',
883 'proxy/proxy_service_mojo.cc',
884 'proxy/proxy_service_mojo.h',
887 'mojo_type_converters',
890 '../mojo/mojo_base.gyp:mojo_common_lib',
891 '../mojo/mojo_base.gyp:mojo_environment_chromium',
892 '../mojo/mojo_base.gyp:mojo_url_type_converters',
893 '../third_party/mojo/mojo_public.gyp:mojo_cpp_bindings',
895 # NOTE(amistry): As long as we support in-process Mojo v8 PAC, we
896 # need this dependency since in_process_mojo_proxy_resolver_factory
897 # creates the utility process side Mojo services in the browser
898 # process. Ultimately, this will go away when we only support
900 'net_utility_services',
904 # GN version: //net:net_utility_services
905 'target_name': 'net_utility_services',
906 'type': 'static_library',
908 'dns/host_resolver_mojo.cc',
909 'dns/host_resolver_mojo.h',
910 'proxy/load_state_change_coalescer.cc',
911 'proxy/load_state_change_coalescer.h',
912 'proxy/mojo_proxy_resolver_factory_impl.cc',
913 'proxy/mojo_proxy_resolver_factory_impl.h',
914 'proxy/mojo_proxy_resolver_impl.cc',
915 'proxy/mojo_proxy_resolver_impl.h',
918 'mojo_type_converters',
921 '../mojo/mojo_base.gyp:mojo_url_type_converters',
922 '../third_party/mojo/mojo_public.gyp:mojo_cpp_bindings',
926 # GN version: //net:mojo_type_converters
927 'target_name': 'mojo_type_converters',
928 'type': 'static_library',
930 'dns/mojo_host_type_converters.cc',
931 'dns/mojo_host_type_converters.h',
932 'proxy/mojo_proxy_type_converters.cc',
933 'proxy/mojo_proxy_type_converters.h',
938 '../third_party/mojo/mojo_public.gyp:mojo_cpp_bindings',
943 ['OS != "ios" and OS != "android"', {
945 # iOS doesn't have the concept of simple executables, these targets
946 # can't be compiled on the platform.
948 'target_name': 'crash_cache',
949 'type': 'executable',
951 '../base/base.gyp:base',
956 'tools/crash_cache/crash_cache.cc',
958 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
959 'msvs_disabled_warnings': [4267, ],
962 'target_name': 'crl_set_dump',
963 'type': 'executable',
965 '../base/base.gyp:base',
969 'tools/crl_set_dump/crl_set_dump.cc',
971 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
972 'msvs_disabled_warnings': [4267, ],
975 'target_name': 'dns_fuzz_stub',
976 'type': 'executable',
978 '../base/base.gyp:base',
982 'tools/dns_fuzz_stub/dns_fuzz_stub.cc',
984 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
985 'msvs_disabled_warnings': [4267, ],
988 'target_name': 'gdig',
989 'type': 'executable',
991 '../base/base.gyp:base',
995 'tools/gdig/file_net_log.cc',
996 'tools/gdig/gdig.cc',
1000 'target_name': 'get_server_time',
1001 'type': 'executable',
1003 '../base/base.gyp:base',
1004 '../base/base.gyp:base_i18n',
1005 '../url/url.gyp:url_lib',
1009 'tools/get_server_time/get_server_time.cc',
1011 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1012 'msvs_disabled_warnings': [4267, ],
1015 'target_name': 'hpack_example_generator',
1016 'type': 'executable',
1018 '../base/base.gyp:base',
1022 'spdy/fuzzing/hpack_example_generator.cc',
1024 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1025 'msvs_disabled_warnings': [4267, ],
1028 'target_name': 'hpack_fuzz_mutator',
1029 'type': 'executable',
1031 '../base/base.gyp:base',
1035 'spdy/fuzzing/hpack_fuzz_mutator.cc',
1037 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1038 'msvs_disabled_warnings': [4267, ],
1041 'target_name': 'hpack_fuzz_wrapper',
1042 'type': 'executable',
1044 '../base/base.gyp:base',
1048 'spdy/fuzzing/hpack_fuzz_wrapper.cc',
1050 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1051 'msvs_disabled_warnings': [4267, ],
1054 'target_name': 'net_watcher',
1055 'type': 'executable',
1057 '../base/base.gyp:base',
1062 [ 'use_glib == 1', {
1064 '../build/linux/system.gyp:gconf',
1065 '../build/linux/system.gyp:gio',
1071 'tools/net_watcher/net_watcher.cc',
1075 'target_name': 'run_testserver',
1076 'type': 'executable',
1078 '../base/base.gyp:base',
1079 '../base/base.gyp:test_support_base',
1080 '../testing/gtest.gyp:gtest',
1084 'tools/testserver/run_testserver.cc',
1088 'target_name': 'simple_quic_client',
1089 'type': 'executable',
1091 '../base/base.gyp:base',
1092 '../url/url.gyp:url_lib',
1094 'simple_quic_tools',
1097 'tools/quic/quic_simple_client_bin.cc',
1101 'target_name': 'stress_cache',
1102 'type': 'executable',
1104 '../base/base.gyp:base',
1109 'tools/stress_cache/stress_cache.cc',
1111 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1112 'msvs_disabled_warnings': [4267, ],
1115 'target_name': 'tld_cleanup',
1116 'type': 'executable',
1118 '../base/base.gyp:base',
1119 '../base/base.gyp:base_i18n',
1120 '../net/tools/tld_cleanup/tld_cleanup.gyp:tld_cleanup_util',
1123 'tools/tld_cleanup/tld_cleanup.cc',
1125 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1126 'msvs_disabled_warnings': [4267, ],
1130 ['os_posix == 1 and OS != "mac" and OS != "ios" and OS != "android"', {
1133 'target_name': 'epoll_server',
1134 'type': 'static_library',
1136 '../base/base.gyp:base',
1140 'tools/epoll_server/epoll_server.cc',
1141 'tools/epoll_server/linux_epoll_server.cc',
1142 'tools/epoll_server/epoll_server.h',
1146 'target_name': 'flip_in_mem_edsm_server_base',
1147 'type': 'static_library',
1152 '../base/base.gyp:base',
1153 '../third_party/boringssl/boringssl.gyp:boringssl',
1159 'tools/dump_cache/url_to_filename_encoder.cc',
1160 'tools/dump_cache/url_to_filename_encoder.h',
1161 'tools/dump_cache/url_utilities.cc',
1162 'tools/dump_cache/url_utilities.h',
1163 'tools/flip_server/acceptor_thread.cc',
1164 'tools/flip_server/acceptor_thread.h',
1165 'tools/flip_server/constants.h',
1166 'tools/flip_server/create_listener.cc',
1167 'tools/flip_server/create_listener.h',
1168 'tools/flip_server/flip_config.cc',
1169 'tools/flip_server/flip_config.h',
1170 'tools/flip_server/http_interface.cc',
1171 'tools/flip_server/http_interface.h',
1172 'tools/flip_server/loadtime_measurement.h',
1173 'tools/flip_server/mem_cache.cc',
1174 'tools/flip_server/mem_cache.h',
1175 'tools/flip_server/output_ordering.cc',
1176 'tools/flip_server/output_ordering.h',
1177 'tools/flip_server/ring_buffer.cc',
1178 'tools/flip_server/ring_buffer.h',
1179 'tools/flip_server/sm_connection.cc',
1180 'tools/flip_server/sm_connection.h',
1181 'tools/flip_server/sm_interface.h',
1182 'tools/flip_server/spdy_interface.cc',
1183 'tools/flip_server/spdy_interface.h',
1184 'tools/flip_server/spdy_ssl.cc',
1185 'tools/flip_server/spdy_ssl.h',
1186 'tools/flip_server/spdy_util.cc',
1187 'tools/flip_server/spdy_util.h',
1188 'tools/flip_server/streamer_interface.cc',
1189 'tools/flip_server/streamer_interface.h',
1193 'target_name': 'flip_in_mem_edsm_server_unittests',
1194 'type': 'executable',
1196 '../testing/gtest.gyp:gtest',
1197 '../testing/gmock.gyp:gmock',
1198 '../third_party/boringssl/boringssl.gyp:boringssl',
1199 'flip_in_mem_edsm_server_base',
1204 'tools/flip_server/flip_test_utils.cc',
1205 'tools/flip_server/flip_test_utils.h',
1206 'tools/flip_server/http_interface_test.cc',
1207 'tools/flip_server/mem_cache_test.cc',
1208 'tools/flip_server/run_all_tests.cc',
1209 'tools/flip_server/spdy_interface_test.cc',
1213 'target_name': 'flip_in_mem_edsm_server',
1214 'type': 'executable',
1219 '../base/base.gyp:base',
1220 'flip_in_mem_edsm_server_base',
1224 'tools/flip_server/flip_in_mem_edsm_server.cc',
1228 'target_name': 'quic_base',
1229 'type': 'static_library',
1231 '../base/base.gyp:base',
1232 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
1233 '../url/url.gyp:url_lib',
1239 'tools/quic/quic_client.cc',
1240 'tools/quic/quic_client.h',
1241 'tools/quic/quic_default_packet_writer.cc',
1242 'tools/quic/quic_default_packet_writer.h',
1243 'tools/quic/quic_dispatcher.cc',
1244 'tools/quic/quic_dispatcher.h',
1245 'tools/quic/quic_epoll_clock.cc',
1246 'tools/quic/quic_epoll_clock.h',
1247 'tools/quic/quic_epoll_connection_helper.cc',
1248 'tools/quic/quic_epoll_connection_helper.h',
1249 'tools/quic/quic_packet_reader.cc',
1250 'tools/quic/quic_packet_reader.h',
1251 'tools/quic/quic_packet_writer_wrapper.cc',
1252 'tools/quic/quic_packet_writer_wrapper.h',
1253 'tools/quic/quic_per_connection_packet_writer.cc',
1254 'tools/quic/quic_per_connection_packet_writer.h',
1255 'tools/quic/quic_server.cc',
1256 'tools/quic/quic_server.h',
1257 'tools/quic/quic_socket_utils.cc',
1258 'tools/quic/quic_socket_utils.h',
1262 'target_name': 'quic_client',
1263 'type': 'executable',
1265 '../base/base.gyp:base',
1268 'simple_quic_tools',
1271 'tools/quic/quic_client_bin.cc',
1276 ['os_posix == 1 and OS != "ios" and OS != "android"', {
1279 'target_name': 'quic_server',
1280 'type': 'executable',
1282 '../base/base.gyp:base',
1285 'simple_quic_tools',
1288 'quic/quic_server_bin.cc',
1295 { # The same target as 'net', but with smaller binary size due to
1296 # exclusion of ICU, FTP, FILE and WebSockets support.
1297 'target_name': 'net_small',
1299 'disable_ftp_support': 1,
1300 'disable_file_support': 1,
1301 'enable_websockets': 0,
1304 '../url/url.gyp:url_lib_use_icu_alternatives_on_android',
1307 'USE_ICU_ALTERNATIVES_ON_ANDROID=1',
1308 'DISABLE_FILE_SUPPORT=1',
1309 'DISABLE_FTP_SUPPORT=1',
1312 'base/net_string_util_icu_alternatives_android.cc',
1313 'base/net_string_util_icu_alternatives_android.h',
1315 'includes': [ 'net_common.gypi' ],
1318 'target_name': 'net_jni_headers',
1321 'android/java/src/org/chromium/net/AndroidCertVerifyResult.java',
1322 'android/java/src/org/chromium/net/AndroidKeyStore.java',
1323 'android/java/src/org/chromium/net/AndroidNetworkLibrary.java',
1324 'android/java/src/org/chromium/net/AndroidPrivateKey.java',
1325 'android/java/src/org/chromium/net/GURLUtils.java',
1326 'android/java/src/org/chromium/net/NetStringUtil.java',
1327 'android/java/src/org/chromium/net/NetworkChangeNotifier.java',
1328 'android/java/src/org/chromium/net/ProxyChangeListener.java',
1329 'android/java/src/org/chromium/net/X509Util.java',
1332 'jni_gen_package': 'net',
1334 'includes': [ '../build/jni_generator.gypi' ],
1337 'target_name': 'net_test_jni_headers',
1340 'android/javatests/src/org/chromium/net/AndroidKeyStoreTestUtil.java',
1343 'jni_gen_package': 'net',
1345 'includes': [ '../build/jni_generator.gypi' ],
1348 'target_name': 'net_java',
1351 'java_in_dir': '../net/android/java',
1354 '../base/base.gyp:base',
1355 'cert_verify_status_android_java',
1356 'certificate_mime_types_java',
1357 'network_change_notifier_types_java',
1359 'private_key_types_java',
1360 'remote_android_keystore_aidl',
1362 'includes': [ '../build/java.gypi' ],
1365 # Processes the interface files for communication with an Android KeyStore
1366 # running in a separate process.
1367 'target_name': 'remote_android_keystore_aidl',
1370 'aidl_interface_file': '../net/android/java/src/org/chromium/net/IRemoteAndroidKeyStoreInterface.aidl',
1373 '../net/android/java/src/org/chromium/net/IRemoteAndroidKeyStore.aidl',
1374 '../net/android/java/src/org/chromium/net/IRemoteAndroidKeyStoreCallbacks.aidl',
1376 'includes': [ '../build/java_aidl.gypi' ],
1379 'target_name': 'net_java_test_support',
1382 'java_in_dir': '../net/test/android/javatests',
1384 'includes': [ '../build/java.gypi' ],
1387 'target_name': 'net_javatests',
1390 'java_in_dir': '../net/android/javatests',
1393 '../base/base.gyp:base',
1394 '../base/base.gyp:base_java_test_support',
1397 'includes': [ '../build/java.gypi' ],
1400 'target_name': 'net_errors_java',
1403 'android/java/NetError.template',
1406 'package_name': 'org/chromium/net',
1407 'template_deps': ['base/net_error_list.h'],
1409 'includes': [ '../build/android/java_cpp_template.gypi' ],
1412 'target_name': 'certificate_mime_types_java',
1415 'source_file': 'base/mime_util.h',
1417 'includes': [ '../build/android/java_cpp_enum.gypi' ],
1420 'target_name': 'cert_verify_status_android_java',
1423 'source_file': 'android/cert_verify_result_android.h',
1425 'includes': [ '../build/android/java_cpp_enum.gypi' ],
1428 'target_name': 'network_change_notifier_types_java',
1431 'source_file': 'base/network_change_notifier.h',
1433 'includes': [ '../build/android/java_cpp_enum.gypi' ],
1436 'target_name': 'private_key_types_java',
1439 'source_file': 'android/keystore.h',
1441 'includes': [ '../build/android/java_cpp_enum.gypi' ],
1444 'target_name': 'net_unittests_apk',
1452 ['v8_use_external_startup_data==1', {
1454 '../v8/tools/gyp/v8.gyp:v8_external_snapshot',
1458 'destination': '<(asset_location)',
1460 '<(PRODUCT_DIR)/natives_blob.bin',
1461 '<(PRODUCT_DIR)/snapshot_blob.bin',
1468 'test_suite_name': 'net_unittests',
1470 ['v8_use_external_startup_data==1', {
1471 'asset_location': '<(PRODUCT_DIR)/net_unittests_apk/assets',
1472 'additional_input_paths': [
1473 '<(PRODUCT_DIR)/net_unittests_apk/assets/natives_blob.bin',
1474 '<(PRODUCT_DIR)/net_unittests_apk/assets/snapshot_blob.bin',
1477 '<(PRODUCT_DIR)/natives_blob.bin',
1478 '<(PRODUCT_DIR)/snapshot_blob.bin',
1483 'includes': [ '../build/apk_test.gypi' ],
1487 ['OS == "android" or OS == "linux"', {
1490 'target_name': 'disk_cache_memory_test',
1491 'type': 'executable',
1493 '../base/base.gyp:base',
1497 'tools/disk_cache_memory_test/disk_cache_memory_test.cc',
1502 ['test_isolation_mode != "noop"', {
1505 'target_name': 'net_unittests_run',
1511 '../build/isolate.gypi',
1514 'net_unittests.isolate',