Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(421)

Side by Side Diff: net/BUILD.gn

Issue 1001963002: Reland: Add hpack utilities and perftests to net GN (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « build/gn_migration.gypi ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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")
11 import("//third_party/icu/config.gni")
11 12
12 # TODO(cjhopman): //build/config/android/rules.gni also imports grit_rule.gni. 13 # TODO(cjhopman): //build/config/android/rules.gni also imports grit_rule.gni.
13 # Currently, that file can't be imported multiple times. Make this always 14 # Currently, that file can't be imported multiple times. Make this always
14 # imported when http://crbug.com/393704 is fixed. 15 # imported when http://crbug.com/393704 is fixed.
15 if (!is_android) { 16 if (!is_android) {
16 import("//tools/grit/grit_rule.gni") 17 import("//tools/grit/grit_rule.gni")
17 } 18 }
18 19
19 if (is_android) { 20 if (is_android) {
20 import("//build/config/android/config.gni") 21 import("//build/config/android/config.gni")
(...skipping 903 matching lines...) Expand 10 before | Expand all | Expand 10 after
924 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 925 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
925 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] 926 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
926 deps = [ 927 deps = [
927 ":net", 928 ":net",
928 "//base", 929 "//base",
929 "//base:i18n", 930 "//base:i18n",
930 "//url", 931 "//url",
931 ] 932 ]
932 } 933 }
933 934
935 executable("hpack_example_generator") {
936 testonly = true
937 sources = [
938 "spdy/fuzzing/hpack_example_generator.cc",
939 ]
940
941 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
942 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
943 deps = [
944 "//base",
945 ":net",
946 ]
947 }
948
949 executable("hpack_fuzz_mutator") {
950 testonly = true
951 sources = [
952 "spdy/fuzzing/hpack_fuzz_mutator.cc",
953 ]
954
955 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
956 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
957 deps = [
958 "//base",
959 ":net",
960 ]
961 }
962
963 executable("hpack_fuzz_wrapper") {
964 testonly = true
965 sources = [
966 "spdy/fuzzing/hpack_fuzz_wrapper.cc",
967 ]
968
969 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
970 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
971 deps = [
972 "//base",
973 ":net",
974 ]
975 }
976
934 if (use_v8_in_net) { 977 if (use_v8_in_net) {
935 executable("net_watcher") { 978 executable("net_watcher") {
936 testonly = true 979 testonly = true
937 sources = [ 980 sources = [
938 "tools/net_watcher/net_watcher.cc", 981 "tools/net_watcher/net_watcher.cc",
939 ] 982 ]
940 deps = [ 983 deps = [
941 ":net", 984 ":net",
942 ":net_with_v8", 985 ":net_with_v8",
943 "//base", 986 "//base",
(...skipping 10 matching lines...) Expand all
954 } 997 }
955 998
956 executable("run_testserver") { 999 executable("run_testserver") {
957 testonly = true 1000 testonly = true
958 sources = [ 1001 sources = [
959 "tools/testserver/run_testserver.cc", 1002 "tools/testserver/run_testserver.cc",
960 ] 1003 ]
961 deps = [ 1004 deps = [
962 ":net", # TODO(brettw) bug 363749: this shouldn't be necessary. It's not 1005 ":net", # TODO(brettw) bug 363749: this shouldn't be necessary. It's not
963 # in the GYP build, and can be removed when the bug is fixed. 1006 # in the GYP build, and can be removed when the bug is fixed.
1007
964 ":test_support", 1008 ":test_support",
965 "//base", 1009 "//base",
966 "//base/test:test_support", 1010 "//base/test:test_support",
967 "//testing/gtest", 1011 "//testing/gtest",
968 ] 1012 ]
969 } 1013 }
970 1014
971 executable("stress_cache") { 1015 executable("stress_cache") {
972 testonly = true 1016 testonly = true
973 sources = [ 1017 sources = [
(...skipping 541 matching lines...) Expand 10 before | Expand all | Expand 10 after
1515 "quic/quic_server_bin.cc", 1559 "quic/quic_server_bin.cc",
1516 ] 1560 ]
1517 deps = [ 1561 deps = [
1518 ":quic_tools", 1562 ":quic_tools",
1519 ":net", 1563 ":net",
1520 "//base", 1564 "//base",
1521 "//third_party/boringssl", 1565 "//third_party/boringssl",
1522 ] 1566 ]
1523 } 1567 }
1524 } # !is_android && !is_win && !is_mac 1568 } # !is_android && !is_win && !is_mac
1569
1570 executable("net_perftests") {
1571 testonly = true
1572 sources = [
1573 "cookies/cookie_monster_perftest.cc",
1574 "disk_cache/blockfile/disk_cache_perftest.cc",
1575 "proxy/proxy_resolver_perftest.cc",
1576 "udp/udp_socket_perftest.cc",
1577 ]
1578
1579 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1580 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
1581 deps = [
1582 "//base",
1583 "//base:i18n",
1584 "//base/test:test_support_perf",
1585 "//testing/gtest",
1586 "//url",
1587 ":net",
1588 ":test_support",
1589 ]
1590
1591 if (enable_websockets) {
1592 sources += [ "websockets/websocket_frame_perftest.cc" ]
1593 }
1594
1595 if (use_v8_in_net) {
1596 deps += [ ":net_with_v8" ]
1597 } else {
1598 sources -= [ "proxy/proxy_resolver_perftest.cc" ]
1599 }
1600
1601 if (is_win && icu_use_data_file) {
1602 # This is needed to trigger the dll copy step on windows.
1603 # TODO(mark): Specifying this here shouldn't be necessary.
1604 deps += [ "//third_party/icu:icudata" ]
1605 }
1606 }
OLDNEW
« no previous file with comments | « build/gn_migration.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698