| 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 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 87 public_configs = [ ":net_config" ] | 79 public_configs = [ ":net_config" ] |
| 88 include_dirs = [] | 80 include_dirs = [] |
| 89 | 81 |
| 90 public_deps = [ | 82 public_deps = [ |
| 91 "//crypto", | 83 "//crypto", |
| 92 "//crypto:platform", | 84 "//crypto:platform", |
| 93 ] | 85 ] |
| 94 deps = [ | 86 deps = [ |
| 95 ":net_resources", | 87 ":net_resources", |
| 96 "//base", | 88 "//base", |
| (...skipping 465 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 562 "server/http_server_request_info.h", | 554 "server/http_server_request_info.h", |
| 563 "server/http_server_response_info.cc", | 555 "server/http_server_response_info.cc", |
| 564 "server/http_server_response_info.h", | 556 "server/http_server_response_info.h", |
| 565 "server/web_socket.cc", | 557 "server/web_socket.cc", |
| 566 "server/web_socket.h", | 558 "server/web_socket.h", |
| 567 "server/web_socket_encoder.cc", | 559 "server/web_socket_encoder.cc", |
| 568 "server/web_socket_encoder.h", | 560 "server/web_socket_encoder.h", |
| 569 ] | 561 ] |
| 570 configs += [ | 562 configs += [ |
| 571 "//build/config/compiler:wexit_time_destructors", | 563 "//build/config/compiler:wexit_time_destructors", |
| 572 ":net_win_size_truncation", | 564 "//build/config/compiler:no_size_t_to_int_warning", |
| 573 ] | 565 ] |
| 574 deps = [ | 566 deps = [ |
| 575 ":net", | 567 ":net", |
| 576 "//base", | 568 "//base", |
| 577 ] | 569 ] |
| 578 } | 570 } |
| 579 | 571 |
| 580 executable("dump_cache") { | 572 executable("dump_cache") { |
| 581 testonly = true | 573 testonly = true |
| 582 sources = [ | 574 sources = [ |
| 583 "tools/dump_cache/cache_dumper.cc", | 575 "tools/dump_cache/cache_dumper.cc", |
| 584 "tools/dump_cache/cache_dumper.h", | 576 "tools/dump_cache/cache_dumper.h", |
| 585 "tools/dump_cache/dump_cache.cc", | 577 "tools/dump_cache/dump_cache.cc", |
| 586 "tools/dump_cache/dump_files.cc", | 578 "tools/dump_cache/dump_files.cc", |
| 587 "tools/dump_cache/dump_files.h", | 579 "tools/dump_cache/dump_files.h", |
| 588 "tools/dump_cache/simple_cache_dumper.cc", | 580 "tools/dump_cache/simple_cache_dumper.cc", |
| 589 "tools/dump_cache/simple_cache_dumper.h", | 581 "tools/dump_cache/simple_cache_dumper.h", |
| 590 "tools/dump_cache/url_to_filename_encoder.cc", | 582 "tools/dump_cache/url_to_filename_encoder.cc", |
| 591 "tools/dump_cache/url_to_filename_encoder.h", | 583 "tools/dump_cache/url_to_filename_encoder.h", |
| 592 "tools/dump_cache/url_utilities.cc", | 584 "tools/dump_cache/url_utilities.cc", |
| 593 "tools/dump_cache/url_utilities.h", | 585 "tools/dump_cache/url_utilities.h", |
| 594 ] | 586 ] |
| 595 | 587 |
| 596 configs += [ ":net_win_size_truncation" ] | 588 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 597 | 589 |
| 598 deps = [ | 590 deps = [ |
| 599 "//base", | 591 "//base", |
| 600 ":net", | 592 ":net", |
| 601 ":test_support", | 593 ":test_support", |
| 602 ] | 594 ] |
| 603 } | 595 } |
| 604 | 596 |
| 605 source_set("test_support") { | 597 source_set("test_support") { |
| 606 testonly = true | 598 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", | 676 "test/url_request/url_request_slow_download_job.cc", |
| 685 "test/url_request/url_request_slow_download_job.h", | 677 "test/url_request/url_request_slow_download_job.h", |
| 686 "url_request/test_url_fetcher_factory.cc", | 678 "url_request/test_url_fetcher_factory.cc", |
| 687 "url_request/test_url_fetcher_factory.h", | 679 "url_request/test_url_fetcher_factory.h", |
| 688 "url_request/test_url_request_interceptor.cc", | 680 "url_request/test_url_request_interceptor.cc", |
| 689 "url_request/test_url_request_interceptor.h", | 681 "url_request/test_url_request_interceptor.h", |
| 690 "url_request/url_request_test_util.cc", | 682 "url_request/url_request_test_util.cc", |
| 691 "url_request/url_request_test_util.h", | 683 "url_request/url_request_test_util.h", |
| 692 ] | 684 ] |
| 693 | 685 |
| 694 configs += [ ":net_win_size_truncation" ] | 686 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 695 | 687 |
| 696 public_deps = [ | 688 public_deps = [ |
| 697 "//base", | 689 "//base", |
| 698 "//base/test:test_support", | 690 "//base/test:test_support", |
| 699 "//crypto", | 691 "//crypto", |
| 700 "//net", | 692 "//net", |
| 701 "//net/tools/tld_cleanup", | 693 "//net/tools/tld_cleanup", |
| 702 "//testing/gmock", | 694 "//testing/gmock", |
| 703 "//testing/gtest", | 695 "//testing/gtest", |
| 704 "//url", | 696 "//url", |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 767 "proxy/proxy_resolver_v8.cc", | 759 "proxy/proxy_resolver_v8.cc", |
| 768 "proxy/proxy_resolver_v8.h", | 760 "proxy/proxy_resolver_v8.h", |
| 769 "proxy/proxy_resolver_v8_tracing.cc", | 761 "proxy/proxy_resolver_v8_tracing.cc", |
| 770 "proxy/proxy_resolver_v8_tracing.h", | 762 "proxy/proxy_resolver_v8_tracing.h", |
| 771 "proxy/proxy_service_v8.cc", | 763 "proxy/proxy_service_v8.cc", |
| 772 "proxy/proxy_service_v8.h", | 764 "proxy/proxy_service_v8.h", |
| 773 ] | 765 ] |
| 774 | 766 |
| 775 defines = [ "NET_IMPLEMENTATION" ] | 767 defines = [ "NET_IMPLEMENTATION" ] |
| 776 configs += [ | 768 configs += [ |
| 777 ":net_win_size_truncation", | 769 "//build/config/compiler:no_size_t_to_int_warning", |
| 778 "//build/config/compiler:wexit_time_destructors", | 770 "//build/config/compiler:wexit_time_destructors", |
| 779 ] | 771 ] |
| 780 | 772 |
| 781 public_deps = [ | 773 public_deps = [ |
| 782 ":net", | 774 ":net", |
| 783 ] | 775 ] |
| 784 deps = [ | 776 deps = [ |
| 785 "//base", | 777 "//base", |
| 786 "//gin", | 778 "//gin", |
| 787 "//url", | 779 "//url", |
| (...skipping 30 matching lines...) Expand all Loading... |
| 818 ] | 810 ] |
| 819 } | 811 } |
| 820 } | 812 } |
| 821 | 813 |
| 822 if (!is_ios && !is_android) { | 814 if (!is_ios && !is_android) { |
| 823 executable("crash_cache") { | 815 executable("crash_cache") { |
| 824 testonly = true | 816 testonly = true |
| 825 sources = [ | 817 sources = [ |
| 826 "tools/crash_cache/crash_cache.cc", | 818 "tools/crash_cache/crash_cache.cc", |
| 827 ] | 819 ] |
| 828 configs += [ ":net_win_size_truncation" ] | 820 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 829 deps = [ | 821 deps = [ |
| 830 ":net", | 822 ":net", |
| 831 ":test_support", | 823 ":test_support", |
| 832 "//base", | 824 "//base", |
| 833 ] | 825 ] |
| 834 } | 826 } |
| 835 | 827 |
| 836 executable("crl_set_dump") { | 828 executable("crl_set_dump") { |
| 837 testonly = true | 829 testonly = true |
| 838 sources = [ | 830 sources = [ |
| 839 "tools/crl_set_dump/crl_set_dump.cc", | 831 "tools/crl_set_dump/crl_set_dump.cc", |
| 840 ] | 832 ] |
| 841 configs += [ ":net_win_size_truncation" ] | 833 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 842 deps = [ | 834 deps = [ |
| 843 ":net", | 835 ":net", |
| 844 "//base", | 836 "//base", |
| 845 ] | 837 ] |
| 846 } | 838 } |
| 847 | 839 |
| 848 executable("dns_fuzz_stub") { | 840 executable("dns_fuzz_stub") { |
| 849 testonly = true | 841 testonly = true |
| 850 sources = [ | 842 sources = [ |
| 851 "tools/dns_fuzz_stub/dns_fuzz_stub.cc", | 843 "tools/dns_fuzz_stub/dns_fuzz_stub.cc", |
| 852 ] | 844 ] |
| 853 configs += [ ":net_win_size_truncation" ] | 845 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 854 deps = [ | 846 deps = [ |
| 855 ":net", | 847 ":net", |
| 856 "//base", | 848 "//base", |
| 857 ] | 849 ] |
| 858 } | 850 } |
| 859 | 851 |
| 860 executable("gdig") { | 852 executable("gdig") { |
| 861 testonly = true | 853 testonly = true |
| 862 sources = [ | 854 sources = [ |
| 863 "tools/gdig/file_net_log.cc", | 855 "tools/gdig/file_net_log.cc", |
| 864 "tools/gdig/gdig.cc", | 856 "tools/gdig/gdig.cc", |
| 865 ] | 857 ] |
| 866 deps = [ | 858 deps = [ |
| 867 ":net", | 859 ":net", |
| 868 "//base", | 860 "//base", |
| 869 ] | 861 ] |
| 870 } | 862 } |
| 871 | 863 |
| 872 executable("get_server_time") { | 864 executable("get_server_time") { |
| 873 testonly = true | 865 testonly = true |
| 874 sources = [ | 866 sources = [ |
| 875 "tools/get_server_time/get_server_time.cc", | 867 "tools/get_server_time/get_server_time.cc", |
| 876 ] | 868 ] |
| 877 configs += [ ":net_win_size_truncation" ] | 869 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 878 deps = [ | 870 deps = [ |
| 879 ":net", | 871 ":net", |
| 880 "//base", | 872 "//base", |
| 881 "//base:i18n", | 873 "//base:i18n", |
| 882 "//url", | 874 "//url", |
| 883 ] | 875 ] |
| 884 } | 876 } |
| 885 | 877 |
| 878 executable("hpack_example_generator") { |
| 879 testonly = true |
| 880 sources = [ |
| 881 "spdy/fuzzing/hpack_example_generator.cc", |
| 882 ] |
| 883 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 884 deps = [ |
| 885 "//base", |
| 886 ":net", |
| 887 ] |
| 888 } |
| 889 |
| 890 executable("hpack_fuzz_mutator") { |
| 891 testonly = true |
| 892 sources = [ |
| 893 "spdy/fuzzing/hpack_fuzz_mutator.cc", |
| 894 ] |
| 895 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 896 deps = [ |
| 897 "//base", |
| 898 ":net", |
| 899 ] |
| 900 } |
| 901 |
| 902 executable("hpack_fuzz_wrapper") { |
| 903 testonly = true |
| 904 sources = [ |
| 905 "spdy/fuzzing/hpack_fuzz_wrapper.cc", |
| 906 ] |
| 907 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 908 deps = [ |
| 909 "//base", |
| 910 ":net", |
| 911 ] |
| 912 } |
| 913 |
| 886 if (use_v8_in_net) { | 914 if (use_v8_in_net) { |
| 887 executable("net_watcher") { | 915 executable("net_watcher") { |
| 888 testonly = true | 916 testonly = true |
| 889 sources = [ | 917 sources = [ |
| 890 "tools/net_watcher/net_watcher.cc", | 918 "tools/net_watcher/net_watcher.cc", |
| 891 ] | 919 ] |
| 892 deps = [ | 920 deps = [ |
| 893 ":net", | 921 ":net", |
| 894 ":net_with_v8", | 922 ":net_with_v8", |
| 895 "//base", | 923 "//base", |
| (...skipping 22 matching lines...) Expand all Loading... |
| 918 "//base/test:test_support", | 946 "//base/test:test_support", |
| 919 "//testing/gtest", | 947 "//testing/gtest", |
| 920 ] | 948 ] |
| 921 } | 949 } |
| 922 | 950 |
| 923 executable("stress_cache") { | 951 executable("stress_cache") { |
| 924 testonly = true | 952 testonly = true |
| 925 sources = [ | 953 sources = [ |
| 926 "disk_cache/blockfile/stress_cache.cc", | 954 "disk_cache/blockfile/stress_cache.cc", |
| 927 ] | 955 ] |
| 928 configs += [ ":net_win_size_truncation" ] | 956 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 929 deps = [ | 957 deps = [ |
| 930 ":net", | 958 ":net", |
| 931 ":test_support", | 959 ":test_support", |
| 932 "//base", | 960 "//base", |
| 933 ] | 961 ] |
| 934 } | 962 } |
| 935 | 963 |
| 936 executable("tld_cleanup") { | 964 executable("tld_cleanup") { |
| 937 sources = [ | 965 sources = [ |
| 938 "tools/tld_cleanup/tld_cleanup.cc", | 966 "tools/tld_cleanup/tld_cleanup.cc", |
| 939 ] | 967 ] |
| 940 configs += [ ":net_win_size_truncation" ] | 968 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 941 deps = [ | 969 deps = [ |
| 942 "//base", | 970 "//base", |
| 943 "//base:i18n", | 971 "//base:i18n", |
| 944 "//net/tools/tld_cleanup", | 972 "//net/tools/tld_cleanup", |
| 945 ] | 973 ] |
| 946 } | 974 } |
| 947 } | 975 } |
| 948 | 976 |
| 949 if (is_linux) { | 977 if (is_linux) { |
| 950 static_library("epoll_server") { | 978 static_library("epoll_server") { |
| (...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1154 ":net", | 1182 ":net", |
| 1155 "//base", | 1183 "//base", |
| 1156 "//base/third_party/dynamic_annotations", | 1184 "//base/third_party/dynamic_annotations", |
| 1157 "//url", | 1185 "//url", |
| 1158 ] | 1186 ] |
| 1159 } | 1187 } |
| 1160 | 1188 |
| 1161 test("net_unittests") { | 1189 test("net_unittests") { |
| 1162 sources = gypi_values.net_test_sources | 1190 sources = gypi_values.net_test_sources |
| 1163 | 1191 |
| 1164 configs += [ ":net_win_size_truncation" ] | 1192 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 1165 defines = [] | 1193 defines = [] |
| 1166 | 1194 |
| 1167 deps = [ | 1195 deps = [ |
| 1168 ":extras", | 1196 ":extras", |
| 1169 ":http_server", | 1197 ":http_server", |
| 1170 ":net", | 1198 ":net", |
| 1171 ":quic_tools", | 1199 ":quic_tools", |
| 1172 ":test_support", | 1200 ":test_support", |
| 1173 "//base", | 1201 "//base", |
| 1174 "//base:i18n", | 1202 "//base:i18n", |
| (...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1446 "quic/quic_server_bin.cc", | 1474 "quic/quic_server_bin.cc", |
| 1447 ] | 1475 ] |
| 1448 deps = [ | 1476 deps = [ |
| 1449 ":quic_tools", | 1477 ":quic_tools", |
| 1450 ":net", | 1478 ":net", |
| 1451 "//base", | 1479 "//base", |
| 1452 "//third_party/boringssl", | 1480 "//third_party/boringssl", |
| 1453 ] | 1481 ] |
| 1454 } | 1482 } |
| 1455 } # !is_android && !is_win && !is_mac | 1483 } # !is_android && !is_win && !is_mac |
| 1484 |
| 1485 executable("net_perftests") { |
| 1486 testonly = true |
| 1487 sources = [ |
| 1488 "cookies/cookie_monster_perftest.cc", |
| 1489 "disk_cache/blockfile/disk_cache_perftest.cc", |
| 1490 "proxy/proxy_resolver_perftest.cc", |
| 1491 "udp/udp_socket_perftest.cc", |
| 1492 ] |
| 1493 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 1494 deps = [ |
| 1495 "//base", |
| 1496 "//base:i18n", |
| 1497 "//base/test:test_support_perf", |
| 1498 "//testing/gtest", |
| 1499 "//url", |
| 1500 ":net", |
| 1501 ":test_support", |
| 1502 ] |
| 1503 |
| 1504 if (enable_websockets) { |
| 1505 sources += [ "websockets/websocket_frame_perftest.cc" ] |
| 1506 } |
| 1507 |
| 1508 if (use_v8_in_net) { |
| 1509 deps += [ ":net_with_v8" ] |
| 1510 } else { |
| 1511 sources -= [ "proxy/proxy_resolver_perftest.cc" ] |
| 1512 } |
| 1513 |
| 1514 if (is_win && icu_use_data_file) { |
| 1515 # This is needed to trigger the dll copy step on windows. |
| 1516 # TODO(mark): Specifying this here shouldn't be necessary. |
| 1517 deps += [ "//third_party/icu:icudata" ] |
| 1518 } |
| 1519 } |
| OLD | NEW |