| 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("//url/config.gni") | 8 import("//url/config.gni") |
| 9 | 9 |
| 10 # TODO(cjhopman): //build/config/android/rules.gni also imports grit_rule.gni. | 10 # TODO(cjhopman): //build/config/android/rules.gni also imports grit_rule.gni. |
| (...skipping 576 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 587 "server/web_socket.h", | 587 "server/web_socket.h", |
| 588 ] | 588 ] |
| 589 configs += [ "//build/config/compiler:wexit_time_destructors" ] | 589 configs += [ "//build/config/compiler:wexit_time_destructors" ] |
| 590 deps = [ | 590 deps = [ |
| 591 ":net", | 591 ":net", |
| 592 "//base", | 592 "//base", |
| 593 ] | 593 ] |
| 594 } | 594 } |
| 595 | 595 |
| 596 executable("dump_cache") { | 596 executable("dump_cache") { |
| 597 testonly = true |
| 597 sources = [ | 598 sources = [ |
| 598 "tools/dump_cache/cache_dumper.cc", | 599 "tools/dump_cache/cache_dumper.cc", |
| 599 "tools/dump_cache/cache_dumper.h", | 600 "tools/dump_cache/cache_dumper.h", |
| 600 "tools/dump_cache/dump_cache.cc", | 601 "tools/dump_cache/dump_cache.cc", |
| 601 "tools/dump_cache/dump_files.cc", | 602 "tools/dump_cache/dump_files.cc", |
| 602 "tools/dump_cache/dump_files.h", | 603 "tools/dump_cache/dump_files.h", |
| 603 "tools/dump_cache/simple_cache_dumper.cc", | 604 "tools/dump_cache/simple_cache_dumper.cc", |
| 604 "tools/dump_cache/simple_cache_dumper.h", | 605 "tools/dump_cache/simple_cache_dumper.h", |
| 605 "tools/dump_cache/url_to_filename_encoder.cc", | 606 "tools/dump_cache/url_to_filename_encoder.cc", |
| 606 "tools/dump_cache/url_to_filename_encoder.h", | 607 "tools/dump_cache/url_to_filename_encoder.h", |
| 607 "tools/dump_cache/url_utilities.h", | 608 "tools/dump_cache/url_utilities.h", |
| 608 "tools/dump_cache/url_utilities.cc", | 609 "tools/dump_cache/url_utilities.cc", |
| 609 ] | 610 ] |
| 610 | 611 |
| 611 configs += [ ":net_win_size_truncation" ] | 612 configs += [ ":net_win_size_truncation" ] |
| 612 | 613 |
| 613 deps = [ | 614 deps = [ |
| 614 "//base", | 615 "//base", |
| 615 ":net", | 616 ":net", |
| 616 ":test_support", | 617 ":test_support", |
| 617 ] | 618 ] |
| 618 } | 619 } |
| 619 | 620 |
| 620 source_set("test_support") { | 621 source_set("test_support") { |
| 622 testonly = true |
| 621 sources = [ | 623 sources = [ |
| 622 "base/capturing_net_log.cc", | 624 "base/capturing_net_log.cc", |
| 623 "base/capturing_net_log.h", | 625 "base/capturing_net_log.h", |
| 624 "base/load_timing_info_test_util.cc", | 626 "base/load_timing_info_test_util.cc", |
| 625 "base/load_timing_info_test_util.h", | 627 "base/load_timing_info_test_util.h", |
| 626 "base/mock_file_stream.cc", | 628 "base/mock_file_stream.cc", |
| 627 "base/mock_file_stream.h", | 629 "base/mock_file_stream.h", |
| 628 "base/test_completion_callback.cc", | 630 "base/test_completion_callback.cc", |
| 629 "base/test_completion_callback.h", | 631 "base/test_completion_callback.h", |
| 630 "base/test_data_directory.cc", | 632 "base/test_data_directory.cc", |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 791 "//url", | 793 "//url", |
| 792 "//v8", | 794 "//v8", |
| 793 ] | 795 ] |
| 794 | 796 |
| 795 forward_dependent_configs_from = [ ":net" ] | 797 forward_dependent_configs_from = [ ":net" ] |
| 796 } | 798 } |
| 797 } | 799 } |
| 798 | 800 |
| 799 if (!is_ios && !is_android) { | 801 if (!is_ios && !is_android) { |
| 800 executable("crash_cache") { | 802 executable("crash_cache") { |
| 803 testonly = true |
| 801 sources = [ "tools/crash_cache/crash_cache.cc" ] | 804 sources = [ "tools/crash_cache/crash_cache.cc" ] |
| 802 configs += [ ":net_win_size_truncation" ] | 805 configs += [ ":net_win_size_truncation" ] |
| 803 deps = [ | 806 deps = [ |
| 804 ":net", | 807 ":net", |
| 805 ":test_support", | 808 ":test_support", |
| 806 "//base", | 809 "//base", |
| 807 ] | 810 ] |
| 808 } | 811 } |
| 809 | 812 |
| 810 executable("crl_set_dump") { | 813 executable("crl_set_dump") { |
| 814 testonly = true |
| 811 sources = [ "tools/crl_set_dump/crl_set_dump.cc" ] | 815 sources = [ "tools/crl_set_dump/crl_set_dump.cc" ] |
| 812 configs += [ ":net_win_size_truncation" ] | 816 configs += [ ":net_win_size_truncation" ] |
| 813 deps = [ | 817 deps = [ |
| 814 ":net", | 818 ":net", |
| 815 "//base", | 819 "//base", |
| 816 ] | 820 ] |
| 817 } | 821 } |
| 818 | 822 |
| 819 executable("dns_fuzz_stub") { | 823 executable("dns_fuzz_stub") { |
| 824 testonly = true |
| 820 sources = [ "tools/dns_fuzz_stub/dns_fuzz_stub.cc" ] | 825 sources = [ "tools/dns_fuzz_stub/dns_fuzz_stub.cc" ] |
| 821 configs += [ ":net_win_size_truncation" ] | 826 configs += [ ":net_win_size_truncation" ] |
| 822 deps = [ | 827 deps = [ |
| 823 ":net", | 828 ":net", |
| 824 "//base", | 829 "//base", |
| 825 ] | 830 ] |
| 826 } | 831 } |
| 827 | 832 |
| 828 executable("gdig") { | 833 executable("gdig") { |
| 834 testonly = true |
| 829 sources = [ | 835 sources = [ |
| 830 "tools/gdig/file_net_log.cc", | 836 "tools/gdig/file_net_log.cc", |
| 831 "tools/gdig/gdig.cc", | 837 "tools/gdig/gdig.cc", |
| 832 ] | 838 ] |
| 833 deps = [ | 839 deps = [ |
| 834 ":net", | 840 ":net", |
| 835 "//base", | 841 "//base", |
| 836 ] | 842 ] |
| 837 } | 843 } |
| 838 | 844 |
| 839 executable("get_server_time") { | 845 executable("get_server_time") { |
| 846 testonly = true |
| 840 sources = [ "tools/get_server_time/get_server_time.cc" ] | 847 sources = [ "tools/get_server_time/get_server_time.cc" ] |
| 841 configs += [ ":net_win_size_truncation" ] | 848 configs += [ ":net_win_size_truncation" ] |
| 842 deps = [ | 849 deps = [ |
| 843 ":net", | 850 ":net", |
| 844 "//base", | 851 "//base", |
| 845 "//base:i18n", | 852 "//base:i18n", |
| 846 "//url", | 853 "//url", |
| 847 ] | 854 ] |
| 848 } | 855 } |
| 849 | 856 |
| 850 if (use_v8_in_net) { | 857 if (use_v8_in_net) { |
| 851 executable("net_watcher") { | 858 executable("net_watcher") { |
| 859 testonly = true |
| 852 sources = [ "tools/net_watcher/net_watcher.cc" ] | 860 sources = [ "tools/net_watcher/net_watcher.cc" ] |
| 853 deps = [ | 861 deps = [ |
| 854 ":net", | 862 ":net", |
| 855 ":net_with_v8", | 863 ":net_with_v8", |
| 856 "//base", | 864 "//base", |
| 857 ] | 865 ] |
| 858 | 866 |
| 859 if (is_linux) { | 867 if (is_linux) { |
| 860 configs += [ | 868 configs += [ |
| 861 "//build/config/linux:gconf", | 869 "//build/config/linux:gconf", |
| 862 "//build/config/linux:glib", | 870 "//build/config/linux:glib", |
| 863 ] | 871 ] |
| 864 deps += [ "//build/config/linux:gio" ] | 872 deps += [ "//build/config/linux:gio" ] |
| 865 } | 873 } |
| 866 } | 874 } |
| 867 } | 875 } |
| 868 | 876 |
| 869 executable("run_testserver") { | 877 executable("run_testserver") { |
| 878 testonly = true |
| 870 sources = [ "tools/testserver/run_testserver.cc" ] | 879 sources = [ "tools/testserver/run_testserver.cc" ] |
| 871 deps = [ | 880 deps = [ |
| 872 ":net", # TODO(brettw) bug 363749: this shouldn't be necessary. It's not | 881 ":net", # TODO(brettw) bug 363749: this shouldn't be necessary. It's not |
| 873 # in the GYP build, and can be removed when the bug is fixed. | 882 # in the GYP build, and can be removed when the bug is fixed. |
| 874 ":test_support", | 883 ":test_support", |
| 875 "//base", | 884 "//base", |
| 876 "//base/test:test_support", | 885 "//base/test:test_support", |
| 877 "//testing/gtest", | 886 "//testing/gtest", |
| 878 ] | 887 ] |
| 879 } | 888 } |
| 880 | 889 |
| 881 executable("stress_cache") { | 890 executable("stress_cache") { |
| 891 testonly = true |
| 882 sources = [ "disk_cache/blockfile/stress_cache.cc" ] | 892 sources = [ "disk_cache/blockfile/stress_cache.cc" ] |
| 883 configs += [ ":net_win_size_truncation" ] | 893 configs += [ ":net_win_size_truncation" ] |
| 884 deps = [ | 894 deps = [ |
| 885 ":net", | 895 ":net", |
| 886 ":test_support", | 896 ":test_support", |
| 887 "//base", | 897 "//base", |
| 888 ] | 898 ] |
| 889 } | 899 } |
| 890 | 900 |
| 891 executable("tld_cleanup") { | 901 executable("tld_cleanup") { |
| (...skipping 13 matching lines...) Expand all Loading... |
| 905 "tools/epoll_server/epoll_server.cc", | 915 "tools/epoll_server/epoll_server.cc", |
| 906 "tools/epoll_server/epoll_server.h", | 916 "tools/epoll_server/epoll_server.h", |
| 907 ] | 917 ] |
| 908 deps = [ | 918 deps = [ |
| 909 ":net", | 919 ":net", |
| 910 "//base", | 920 "//base", |
| 911 ] | 921 ] |
| 912 } | 922 } |
| 913 | 923 |
| 914 static_library("flip_in_mem_edsm_server_base") { | 924 static_library("flip_in_mem_edsm_server_base") { |
| 925 testonly = true |
| 915 sources = [ | 926 sources = [ |
| 916 "tools/dump_cache/url_to_filename_encoder.cc", | 927 "tools/dump_cache/url_to_filename_encoder.cc", |
| 917 "tools/dump_cache/url_to_filename_encoder.h", | 928 "tools/dump_cache/url_to_filename_encoder.h", |
| 918 "tools/dump_cache/url_utilities.h", | 929 "tools/dump_cache/url_utilities.h", |
| 919 "tools/dump_cache/url_utilities.cc", | 930 "tools/dump_cache/url_utilities.cc", |
| 920 "tools/flip_server/acceptor_thread.h", | 931 "tools/flip_server/acceptor_thread.h", |
| 921 "tools/flip_server/acceptor_thread.cc", | 932 "tools/flip_server/acceptor_thread.cc", |
| 922 "tools/flip_server/create_listener.cc", | 933 "tools/flip_server/create_listener.cc", |
| 923 "tools/flip_server/create_listener.h", | 934 "tools/flip_server/create_listener.h", |
| 924 "tools/flip_server/constants.h", | 935 "tools/flip_server/constants.h", |
| (...skipping 23 matching lines...) Expand all Loading... |
| 948 deps = [ | 959 deps = [ |
| 949 ":balsa", | 960 ":balsa", |
| 950 ":epoll_server", | 961 ":epoll_server", |
| 951 ":net", | 962 ":net", |
| 952 "//base", | 963 "//base", |
| 953 "//third_party/boringssl", | 964 "//third_party/boringssl", |
| 954 ] | 965 ] |
| 955 } | 966 } |
| 956 | 967 |
| 957 executable("flip_in_mem_edsm_server_unittests") { | 968 executable("flip_in_mem_edsm_server_unittests") { |
| 969 testonly = true |
| 958 sources = [ | 970 sources = [ |
| 959 "tools/flip_server/flip_test_utils.cc", | 971 "tools/flip_server/flip_test_utils.cc", |
| 960 "tools/flip_server/flip_test_utils.h", | 972 "tools/flip_server/flip_test_utils.h", |
| 961 "tools/flip_server/http_interface_test.cc", | 973 "tools/flip_server/http_interface_test.cc", |
| 962 "tools/flip_server/mem_cache_test.cc", | 974 "tools/flip_server/mem_cache_test.cc", |
| 963 "tools/flip_server/run_all_tests.cc", | 975 "tools/flip_server/run_all_tests.cc", |
| 964 "tools/flip_server/spdy_interface_test.cc", | 976 "tools/flip_server/spdy_interface_test.cc", |
| 965 ] | 977 ] |
| 966 deps = [ | 978 deps = [ |
| 967 ":flip_in_mem_edsm_server_base", | 979 ":flip_in_mem_edsm_server_base", |
| 968 ":net", | 980 ":net", |
| 969 ":test_support", | 981 ":test_support", |
| 970 "//testing/gtest", | 982 "//testing/gtest", |
| 971 "//testing/gmock", | 983 "//testing/gmock", |
| 972 "//third_party/boringssl", | 984 "//third_party/boringssl", |
| 973 ] | 985 ] |
| 974 } | 986 } |
| 975 | 987 |
| 976 executable("flip_in_mem_edsm_server") { | 988 executable("flip_in_mem_edsm_server") { |
| 989 testonly = true |
| 977 sources = [ "tools/flip_server/flip_in_mem_edsm_server.cc" ] | 990 sources = [ "tools/flip_server/flip_in_mem_edsm_server.cc" ] |
| 978 deps = [ | 991 deps = [ |
| 979 ":flip_in_mem_edsm_server_base", | 992 ":flip_in_mem_edsm_server_base", |
| 980 ":net", | 993 ":net", |
| 981 "//base", | 994 "//base", |
| 982 ] | 995 ] |
| 983 } | 996 } |
| 984 | 997 |
| 985 source_set("quic_base") { | 998 source_set("quic_base") { |
| 986 sources = [ | 999 sources = [ |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1055 generate_jni("net_test_jni_headers") { | 1068 generate_jni("net_test_jni_headers") { |
| 1056 sources = [ | 1069 sources = [ |
| 1057 "android/javatests/src/org/chromium/net/AndroidKeyStoreTestUtil.java", | 1070 "android/javatests/src/org/chromium/net/AndroidKeyStoreTestUtil.java", |
| 1058 ] | 1071 ] |
| 1059 jni_package = "net" | 1072 jni_package = "net" |
| 1060 } | 1073 } |
| 1061 } | 1074 } |
| 1062 | 1075 |
| 1063 if (is_android || is_linux) { | 1076 if (is_android || is_linux) { |
| 1064 executable("disk_cache_memory_test") { | 1077 executable("disk_cache_memory_test") { |
| 1078 testonly = true |
| 1065 sources = [ "tools/disk_cache_memory_test/disk_cache_memory_test.cc" ] | 1079 sources = [ "tools/disk_cache_memory_test/disk_cache_memory_test.cc" ] |
| 1066 deps = [ | 1080 deps = [ |
| 1067 ":net", | 1081 ":net", |
| 1068 "//base", | 1082 "//base", |
| 1069 ] | 1083 ] |
| 1070 } | 1084 } |
| 1071 } | 1085 } |
| 1072 | 1086 |
| 1073 # TODO(GYP) make this compile on Android, we need some native test deps done. | 1087 # TODO(GYP) make this compile on Android, we need some native test deps done. |
| 1074 # TODO(GYP) Also doesn't work on Windows; dependency on boringssl is wrong. | 1088 # TODO(GYP) Also doesn't work on Windows; dependency on boringssl is wrong. |
| (...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1369 sources = [ "quic/quic_server_bin.cc" ] | 1383 sources = [ "quic/quic_server_bin.cc" ] |
| 1370 deps = [ | 1384 deps = [ |
| 1371 ":quic_tools", | 1385 ":quic_tools", |
| 1372 ":net", | 1386 ":net", |
| 1373 "//base", | 1387 "//base", |
| 1374 "//third_party/boringssl", | 1388 "//third_party/boringssl", |
| 1375 ] | 1389 ] |
| 1376 } | 1390 } |
| 1377 | 1391 |
| 1378 } # !is_android | 1392 } # !is_android |
| OLD | NEW |