| OLD | NEW |
| 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import("//build/config/crypto.gni") | 5 import("//build/config/crypto.gni") |
| 6 import("//build/config/features.gni") | 6 import("//build/config/features.gni") |
| 7 import("//build/config/ui.gni") | 7 import("//build/config/ui.gni") |
| 8 import("//build/module_args/v8.gni") | 8 import("//build/module_args/v8.gni") |
| 9 import("//url/config.gni") | 9 import("//url/config.gni") |
| 10 import("//testing/test.gni") | 10 import("//testing/test.gni") |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 config("net_config") { | 54 config("net_config") { |
| 55 defines = [] | 55 defines = [] |
| 56 if (posix_avoid_mmap) { | 56 if (posix_avoid_mmap) { |
| 57 defines += [ "POSIX_AVOID_MMAP" ] | 57 defines += [ "POSIX_AVOID_MMAP" ] |
| 58 } | 58 } |
| 59 if (disable_file_support) { | 59 if (disable_file_support) { |
| 60 defines += [ "DISABLE_FILE_SUPPORT" ] | 60 defines += [ "DISABLE_FILE_SUPPORT" ] |
| 61 } | 61 } |
| 62 } | 62 } |
| 63 | 63 |
| 64 # Disables Windows warning about size to int truncations. | |
| 65 # TODO(jschuh): crbug.com/167187 fix this and delete this config. | |
| 66 config("net_win_size_truncation") { | |
| 67 if (is_win) { | |
| 68 cflags = [ "/wd4267" ] | |
| 69 } | |
| 70 } | |
| 71 | |
| 72 component("net") { | 64 component("net") { |
| 73 sources = | 65 sources = |
| 74 gypi_values.net_nacl_common_sources + gypi_values.net_non_nacl_sources | 66 gypi_values.net_nacl_common_sources + gypi_values.net_non_nacl_sources |
| 75 | 67 |
| 76 cflags = [] | 68 cflags = [] |
| 77 defines = [ | 69 defines = [ |
| 78 # TODO(GYP) Note that he GYP file supports linux_link_kerberos (defaults to | 70 # TODO(GYP) Note that he GYP file supports linux_link_kerberos (defaults to |
| 79 # 0) which implies that we run pkg_config on kerberos and link to that | 71 # 0) which implies that we run pkg_config on kerberos and link to that |
| 80 # rather than setting this define which will dynamically open it. That | 72 # rather than setting this define which will dynamically open it. That |
| 81 # doesn't seem to be set in the regular builds, so we're skipping this | 73 # doesn't seem to be set in the regular builds, so we're skipping this |
| 82 # capability here. | 74 # capability here. |
| 83 "DLOPEN_KERBEROS", | 75 "DLOPEN_KERBEROS", |
| 84 "NET_IMPLEMENTATION", | 76 "NET_IMPLEMENTATION", |
| 85 ] | 77 ] |
| 86 configs += [ ":net_win_size_truncation" ] | 78 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 79 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 87 public_configs = [ ":net_config" ] | 80 public_configs = [ ":net_config" ] |
| 88 include_dirs = [] | 81 include_dirs = [] |
| 89 | 82 |
| 90 public_deps = [ | 83 public_deps = [ |
| 91 "//crypto", | 84 "//crypto", |
| 92 "//crypto:platform", | 85 "//crypto:platform", |
| 93 ] | 86 ] |
| 94 deps = [ | 87 deps = [ |
| 95 ":net_resources", | 88 ":net_resources", |
| 96 "//base", | 89 "//base", |
| (...skipping 464 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 561 "server/http_server_request_info.cc", | 554 "server/http_server_request_info.cc", |
| 562 "server/http_server_request_info.h", | 555 "server/http_server_request_info.h", |
| 563 "server/http_server_response_info.cc", | 556 "server/http_server_response_info.cc", |
| 564 "server/http_server_response_info.h", | 557 "server/http_server_response_info.h", |
| 565 "server/web_socket.cc", | 558 "server/web_socket.cc", |
| 566 "server/web_socket.h", | 559 "server/web_socket.h", |
| 567 "server/web_socket_encoder.cc", | 560 "server/web_socket_encoder.cc", |
| 568 "server/web_socket_encoder.h", | 561 "server/web_socket_encoder.h", |
| 569 ] | 562 ] |
| 570 configs += [ | 563 configs += [ |
| 564 "//build/config/compiler:no_size_t_to_int_warning", |
| 571 "//build/config/compiler:wexit_time_destructors", | 565 "//build/config/compiler:wexit_time_destructors", |
| 572 ":net_win_size_truncation", | |
| 573 ] | 566 ] |
| 574 deps = [ | 567 deps = [ |
| 575 ":net", | 568 ":net", |
| 576 "//base", | 569 "//base", |
| 577 ] | 570 ] |
| 578 } | 571 } |
| 579 | 572 |
| 580 executable("dump_cache") { | 573 executable("dump_cache") { |
| 581 testonly = true | 574 testonly = true |
| 582 sources = [ | 575 sources = [ |
| 583 "tools/dump_cache/cache_dumper.cc", | 576 "tools/dump_cache/cache_dumper.cc", |
| 584 "tools/dump_cache/cache_dumper.h", | 577 "tools/dump_cache/cache_dumper.h", |
| 585 "tools/dump_cache/dump_cache.cc", | 578 "tools/dump_cache/dump_cache.cc", |
| 586 "tools/dump_cache/dump_files.cc", | 579 "tools/dump_cache/dump_files.cc", |
| 587 "tools/dump_cache/dump_files.h", | 580 "tools/dump_cache/dump_files.h", |
| 588 "tools/dump_cache/simple_cache_dumper.cc", | 581 "tools/dump_cache/simple_cache_dumper.cc", |
| 589 "tools/dump_cache/simple_cache_dumper.h", | 582 "tools/dump_cache/simple_cache_dumper.h", |
| 590 "tools/dump_cache/url_to_filename_encoder.cc", | 583 "tools/dump_cache/url_to_filename_encoder.cc", |
| 591 "tools/dump_cache/url_to_filename_encoder.h", | 584 "tools/dump_cache/url_to_filename_encoder.h", |
| 592 "tools/dump_cache/url_utilities.cc", | 585 "tools/dump_cache/url_utilities.cc", |
| 593 "tools/dump_cache/url_utilities.h", | 586 "tools/dump_cache/url_utilities.h", |
| 594 ] | 587 ] |
| 595 | 588 |
| 596 configs += [ ":net_win_size_truncation" ] | 589 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 590 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 597 | 591 |
| 598 deps = [ | 592 deps = [ |
| 599 "//base", | 593 "//base", |
| 600 ":net", | 594 ":net", |
| 601 ":test_support", | 595 ":test_support", |
| 602 ] | 596 ] |
| 603 } | 597 } |
| 604 | 598 |
| 605 source_set("test_support") { | 599 source_set("test_support") { |
| 606 testonly = true | 600 testonly = true |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 684 "test/url_request/url_request_slow_download_job.cc", | 678 "test/url_request/url_request_slow_download_job.cc", |
| 685 "test/url_request/url_request_slow_download_job.h", | 679 "test/url_request/url_request_slow_download_job.h", |
| 686 "url_request/test_url_fetcher_factory.cc", | 680 "url_request/test_url_fetcher_factory.cc", |
| 687 "url_request/test_url_fetcher_factory.h", | 681 "url_request/test_url_fetcher_factory.h", |
| 688 "url_request/test_url_request_interceptor.cc", | 682 "url_request/test_url_request_interceptor.cc", |
| 689 "url_request/test_url_request_interceptor.h", | 683 "url_request/test_url_request_interceptor.h", |
| 690 "url_request/url_request_test_util.cc", | 684 "url_request/url_request_test_util.cc", |
| 691 "url_request/url_request_test_util.h", | 685 "url_request/url_request_test_util.h", |
| 692 ] | 686 ] |
| 693 | 687 |
| 694 configs += [ ":net_win_size_truncation" ] | 688 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 689 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 695 | 690 |
| 696 public_deps = [ | 691 public_deps = [ |
| 697 "//base", | 692 "//base", |
| 698 "//base/test:test_support", | 693 "//base/test:test_support", |
| 699 "//crypto", | 694 "//crypto", |
| 700 "//net", | 695 "//net", |
| 701 "//net/tools/tld_cleanup", | 696 "//net/tools/tld_cleanup", |
| 702 "//testing/gmock", | 697 "//testing/gmock", |
| 703 "//testing/gtest", | 698 "//testing/gtest", |
| 704 "//url", | 699 "//url", |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 767 "proxy/proxy_resolver_v8.cc", | 762 "proxy/proxy_resolver_v8.cc", |
| 768 "proxy/proxy_resolver_v8.h", | 763 "proxy/proxy_resolver_v8.h", |
| 769 "proxy/proxy_resolver_v8_tracing.cc", | 764 "proxy/proxy_resolver_v8_tracing.cc", |
| 770 "proxy/proxy_resolver_v8_tracing.h", | 765 "proxy/proxy_resolver_v8_tracing.h", |
| 771 "proxy/proxy_service_v8.cc", | 766 "proxy/proxy_service_v8.cc", |
| 772 "proxy/proxy_service_v8.h", | 767 "proxy/proxy_service_v8.h", |
| 773 ] | 768 ] |
| 774 | 769 |
| 775 defines = [ "NET_IMPLEMENTATION" ] | 770 defines = [ "NET_IMPLEMENTATION" ] |
| 776 configs += [ | 771 configs += [ |
| 777 ":net_win_size_truncation", | 772 "//build/config/compiler:no_size_t_to_int_warning", |
| 778 "//build/config/compiler:wexit_time_destructors", | 773 "//build/config/compiler:wexit_time_destructors", |
| 779 ] | 774 ] |
| 780 | 775 |
| 781 public_deps = [ | 776 public_deps = [ |
| 782 ":net", | 777 ":net", |
| 783 ] | 778 ] |
| 784 deps = [ | 779 deps = [ |
| 785 "//base", | 780 "//base", |
| 786 "//gin", | 781 "//gin", |
| 787 "//url", | 782 "//url", |
| (...skipping 30 matching lines...) Expand all Loading... |
| 818 ] | 813 ] |
| 819 } | 814 } |
| 820 } | 815 } |
| 821 | 816 |
| 822 if (!is_ios && !is_android) { | 817 if (!is_ios && !is_android) { |
| 823 executable("crash_cache") { | 818 executable("crash_cache") { |
| 824 testonly = true | 819 testonly = true |
| 825 sources = [ | 820 sources = [ |
| 826 "tools/crash_cache/crash_cache.cc", | 821 "tools/crash_cache/crash_cache.cc", |
| 827 ] | 822 ] |
| 828 configs += [ ":net_win_size_truncation" ] | 823 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 824 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 829 deps = [ | 825 deps = [ |
| 830 ":net", | 826 ":net", |
| 831 ":test_support", | 827 ":test_support", |
| 832 "//base", | 828 "//base", |
| 833 ] | 829 ] |
| 834 } | 830 } |
| 835 | 831 |
| 836 executable("crl_set_dump") { | 832 executable("crl_set_dump") { |
| 837 testonly = true | 833 testonly = true |
| 838 sources = [ | 834 sources = [ |
| 839 "tools/crl_set_dump/crl_set_dump.cc", | 835 "tools/crl_set_dump/crl_set_dump.cc", |
| 840 ] | 836 ] |
| 841 configs += [ ":net_win_size_truncation" ] | 837 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 838 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 842 deps = [ | 839 deps = [ |
| 843 ":net", | 840 ":net", |
| 844 "//base", | 841 "//base", |
| 845 ] | 842 ] |
| 846 } | 843 } |
| 847 | 844 |
| 848 executable("dns_fuzz_stub") { | 845 executable("dns_fuzz_stub") { |
| 849 testonly = true | 846 testonly = true |
| 850 sources = [ | 847 sources = [ |
| 851 "tools/dns_fuzz_stub/dns_fuzz_stub.cc", | 848 "tools/dns_fuzz_stub/dns_fuzz_stub.cc", |
| 852 ] | 849 ] |
| 853 configs += [ ":net_win_size_truncation" ] | 850 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 851 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 854 deps = [ | 852 deps = [ |
| 855 ":net", | 853 ":net", |
| 856 "//base", | 854 "//base", |
| 857 ] | 855 ] |
| 858 } | 856 } |
| 859 | 857 |
| 860 executable("gdig") { | 858 executable("gdig") { |
| 861 testonly = true | 859 testonly = true |
| 862 sources = [ | 860 sources = [ |
| 863 "tools/gdig/file_net_log.cc", | 861 "tools/gdig/file_net_log.cc", |
| 864 "tools/gdig/gdig.cc", | 862 "tools/gdig/gdig.cc", |
| 865 ] | 863 ] |
| 866 deps = [ | 864 deps = [ |
| 867 ":net", | 865 ":net", |
| 868 "//base", | 866 "//base", |
| 869 ] | 867 ] |
| 870 } | 868 } |
| 871 | 869 |
| 872 executable("get_server_time") { | 870 executable("get_server_time") { |
| 873 testonly = true | 871 testonly = true |
| 874 sources = [ | 872 sources = [ |
| 875 "tools/get_server_time/get_server_time.cc", | 873 "tools/get_server_time/get_server_time.cc", |
| 876 ] | 874 ] |
| 877 configs += [ ":net_win_size_truncation" ] | 875 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 876 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 878 deps = [ | 877 deps = [ |
| 879 ":net", | 878 ":net", |
| 880 "//base", | 879 "//base", |
| 881 "//base:i18n", | 880 "//base:i18n", |
| 882 "//url", | 881 "//url", |
| 883 ] | 882 ] |
| 884 } | 883 } |
| 885 | 884 |
| 886 if (use_v8_in_net) { | 885 if (use_v8_in_net) { |
| 887 executable("net_watcher") { | 886 executable("net_watcher") { |
| (...skipping 30 matching lines...) Expand all Loading... |
| 918 "//base/test:test_support", | 917 "//base/test:test_support", |
| 919 "//testing/gtest", | 918 "//testing/gtest", |
| 920 ] | 919 ] |
| 921 } | 920 } |
| 922 | 921 |
| 923 executable("stress_cache") { | 922 executable("stress_cache") { |
| 924 testonly = true | 923 testonly = true |
| 925 sources = [ | 924 sources = [ |
| 926 "disk_cache/blockfile/stress_cache.cc", | 925 "disk_cache/blockfile/stress_cache.cc", |
| 927 ] | 926 ] |
| 928 configs += [ ":net_win_size_truncation" ] | 927 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 928 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 929 deps = [ | 929 deps = [ |
| 930 ":net", | 930 ":net", |
| 931 ":test_support", | 931 ":test_support", |
| 932 "//base", | 932 "//base", |
| 933 ] | 933 ] |
| 934 } | 934 } |
| 935 | 935 |
| 936 executable("tld_cleanup") { | 936 executable("tld_cleanup") { |
| 937 sources = [ | 937 sources = [ |
| 938 "tools/tld_cleanup/tld_cleanup.cc", | 938 "tools/tld_cleanup/tld_cleanup.cc", |
| 939 ] | 939 ] |
| 940 configs += [ ":net_win_size_truncation" ] | 940 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 941 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 941 deps = [ | 942 deps = [ |
| 942 "//base", | 943 "//base", |
| 943 "//base:i18n", | 944 "//base:i18n", |
| 944 "//net/tools/tld_cleanup", | 945 "//net/tools/tld_cleanup", |
| 945 ] | 946 ] |
| 946 } | 947 } |
| 947 } | 948 } |
| 948 | 949 |
| 949 if (is_linux) { | 950 if (is_linux) { |
| 950 static_library("epoll_server") { | 951 static_library("epoll_server") { |
| (...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1154 ":net", | 1155 ":net", |
| 1155 "//base", | 1156 "//base", |
| 1156 "//base/third_party/dynamic_annotations", | 1157 "//base/third_party/dynamic_annotations", |
| 1157 "//url", | 1158 "//url", |
| 1158 ] | 1159 ] |
| 1159 } | 1160 } |
| 1160 | 1161 |
| 1161 test("net_unittests") { | 1162 test("net_unittests") { |
| 1162 sources = gypi_values.net_test_sources | 1163 sources = gypi_values.net_test_sources |
| 1163 | 1164 |
| 1164 configs += [ ":net_win_size_truncation" ] | 1165 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 1166 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 1165 defines = [] | 1167 defines = [] |
| 1166 | 1168 |
| 1167 deps = [ | 1169 deps = [ |
| 1168 ":extras", | 1170 ":extras", |
| 1169 ":http_server", | 1171 ":http_server", |
| 1170 ":net", | 1172 ":net", |
| 1171 ":quic_tools", | 1173 ":quic_tools", |
| 1172 ":test_support", | 1174 ":test_support", |
| 1173 "//base", | 1175 "//base", |
| 1174 "//base:i18n", | 1176 "//base:i18n", |
| (...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1446 "quic/quic_server_bin.cc", | 1448 "quic/quic_server_bin.cc", |
| 1447 ] | 1449 ] |
| 1448 deps = [ | 1450 deps = [ |
| 1449 ":quic_tools", | 1451 ":quic_tools", |
| 1450 ":net", | 1452 ":net", |
| 1451 "//base", | 1453 "//base", |
| 1452 "//third_party/boringssl", | 1454 "//third_party/boringssl", |
| 1453 ] | 1455 ] |
| 1454 } | 1456 } |
| 1455 } # !is_android && !is_win && !is_mac | 1457 } # !is_android && !is_win && !is_mac |
| OLD | NEW |