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

Side by Side Diff: net/BUILD.gn

Issue 1318343003: Annotate GN executables and shared_libraries with sanitizer deps. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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 | « mojo/services/network/BUILD.gn ('k') | ppapi/BUILD.gn » ('j') | 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("//testing/test.gni") 9 import("//testing/test.gni")
10 import("//third_party/icu/config.gni") 10 import("//third_party/icu/config.gni")
(...skipping 542 matching lines...) Expand 10 before | Expand all | Expand 10 after
553 sources = [ 553 sources = [
554 "tools/dump_cache/dump_cache.cc", 554 "tools/dump_cache/dump_cache.cc",
555 "tools/dump_cache/dump_files.cc", 555 "tools/dump_cache/dump_files.cc",
556 "tools/dump_cache/dump_files.h", 556 "tools/dump_cache/dump_files.h",
557 ] 557 ]
558 558
559 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 559 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
560 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] 560 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
561 561
562 deps = [ 562 deps = [
563 "//base",
564 ":net", 563 ":net",
565 ":test_support", 564 ":test_support",
565 "//base",
566 "//build/config/sanitizers:deps",
566 ] 567 ]
567 } 568 }
568 569
569 source_set("test_support") { 570 source_set("test_support") {
570 testonly = true 571 testonly = true
571 sources = [ 572 sources = [
572 "base/load_timing_info_test_util.cc", 573 "base/load_timing_info_test_util.cc",
573 "base/load_timing_info_test_util.h", 574 "base/load_timing_info_test_util.h",
574 "base/mock_file_stream.cc", 575 "base/mock_file_stream.cc",
575 "base/mock_file_stream.h", 576 "base/mock_file_stream.h",
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after
855 sources = [ 856 sources = [
856 "tools/crash_cache/crash_cache.cc", 857 "tools/crash_cache/crash_cache.cc",
857 ] 858 ]
858 859
859 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 860 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
860 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] 861 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
861 deps = [ 862 deps = [
862 ":net", 863 ":net",
863 ":test_support", 864 ":test_support",
864 "//base", 865 "//base",
866 "//build/config/sanitizers:deps",
865 ] 867 ]
866 } 868 }
867 869
868 executable("crl_set_dump") { 870 executable("crl_set_dump") {
869 testonly = true 871 testonly = true
870 sources = [ 872 sources = [
871 "tools/crl_set_dump/crl_set_dump.cc", 873 "tools/crl_set_dump/crl_set_dump.cc",
872 ] 874 ]
873 875
874 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 876 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
875 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] 877 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
876 deps = [ 878 deps = [
877 ":net", 879 ":net",
878 "//base", 880 "//base",
881 "//build/config/sanitizers:deps",
879 ] 882 ]
880 } 883 }
881 884
882 executable("dns_fuzz_stub") { 885 executable("dns_fuzz_stub") {
883 testonly = true 886 testonly = true
884 sources = [ 887 sources = [
885 "tools/dns_fuzz_stub/dns_fuzz_stub.cc", 888 "tools/dns_fuzz_stub/dns_fuzz_stub.cc",
886 ] 889 ]
887 890
888 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 891 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
889 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] 892 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
890 deps = [ 893 deps = [
891 ":net", 894 ":net",
892 "//base", 895 "//base",
896 "//build/config/sanitizers:deps",
893 ] 897 ]
894 } 898 }
895 899
896 executable("gdig") { 900 executable("gdig") {
897 testonly = true 901 testonly = true
898 sources = [ 902 sources = [
899 "tools/gdig/file_net_log.cc", 903 "tools/gdig/file_net_log.cc",
900 "tools/gdig/gdig.cc", 904 "tools/gdig/gdig.cc",
901 ] 905 ]
902 deps = [ 906 deps = [
903 ":net", 907 ":net",
904 "//base", 908 "//base",
909 "//build/config/sanitizers:deps",
905 ] 910 ]
906 } 911 }
907 912
908 executable("get_server_time") { 913 executable("get_server_time") {
909 testonly = true 914 testonly = true
910 sources = [ 915 sources = [
911 "tools/get_server_time/get_server_time.cc", 916 "tools/get_server_time/get_server_time.cc",
912 ] 917 ]
913 918
914 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 919 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
915 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] 920 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
916 deps = [ 921 deps = [
917 ":net", 922 ":net",
918 "//base", 923 "//base",
919 "//base:i18n", 924 "//base:i18n",
925 "//build/config/sanitizers:deps",
920 "//url", 926 "//url",
921 ] 927 ]
922 } 928 }
923 929
924 executable("hpack_example_generator") { 930 executable("hpack_example_generator") {
925 testonly = true 931 testonly = true
926 sources = [ 932 sources = [
927 "spdy/fuzzing/hpack_example_generator.cc", 933 "spdy/fuzzing/hpack_example_generator.cc",
928 ] 934 ]
929 935
930 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 936 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
931 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] 937 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
932 deps = [ 938 deps = [
939 ":net",
933 "//base", 940 "//base",
934 ":net", 941 "//build/config/sanitizers:deps",
935 ] 942 ]
936 } 943 }
937 944
938 executable("hpack_fuzz_mutator") { 945 executable("hpack_fuzz_mutator") {
939 testonly = true 946 testonly = true
940 sources = [ 947 sources = [
941 "spdy/fuzzing/hpack_fuzz_mutator.cc", 948 "spdy/fuzzing/hpack_fuzz_mutator.cc",
942 ] 949 ]
943 950
944 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 951 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
945 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] 952 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
946 deps = [ 953 deps = [
954 ":net",
947 "//base", 955 "//base",
948 ":net", 956 "//build/config/sanitizers:deps",
949 ] 957 ]
950 } 958 }
951 959
952 executable("hpack_fuzz_wrapper") { 960 executable("hpack_fuzz_wrapper") {
953 testonly = true 961 testonly = true
954 sources = [ 962 sources = [
955 "spdy/fuzzing/hpack_fuzz_wrapper.cc", 963 "spdy/fuzzing/hpack_fuzz_wrapper.cc",
956 ] 964 ]
957 965
958 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 966 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
959 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] 967 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
960 deps = [ 968 deps = [
969 ":net",
961 "//base", 970 "//base",
962 ":net", 971 "//build/config/sanitizers:deps",
963 ] 972 ]
964 } 973 }
965 974
966 if (use_v8_in_net) { 975 if (use_v8_in_net) {
967 executable("net_watcher") { 976 executable("net_watcher") {
968 testonly = true 977 testonly = true
969 sources = [ 978 sources = [
970 "tools/net_watcher/net_watcher.cc", 979 "tools/net_watcher/net_watcher.cc",
971 ] 980 ]
972 deps = [ 981 deps = [
973 ":net", 982 ":net",
974 ":net_with_v8", 983 ":net_with_v8",
975 "//base", 984 "//base",
985 "//build/config/sanitizers:deps",
976 ] 986 ]
977 987
978 if (is_desktop_linux) { 988 if (is_desktop_linux) {
979 configs += [ 989 configs += [
980 "//build/config/linux:gconf", 990 "//build/config/linux:gconf",
981 "//build/config/linux:glib", 991 "//build/config/linux:glib",
982 ] 992 ]
983 deps += [ "//build/linux:gio" ] 993 deps += [ "//build/linux:gio" ]
984 } 994 }
985 } 995 }
986 } 996 }
987 997
988 executable("run_testserver") { 998 executable("run_testserver") {
989 testonly = true 999 testonly = true
990 sources = [ 1000 sources = [
991 "tools/testserver/run_testserver.cc", 1001 "tools/testserver/run_testserver.cc",
992 ] 1002 ]
993 deps = [ 1003 deps = [
994 ":test_support", 1004 ":test_support",
995 "//base", 1005 "//base",
996 "//base/test:test_support", 1006 "//base/test:test_support",
1007 "//build/config/sanitizers:deps",
997 "//testing/gtest", 1008 "//testing/gtest",
998 ] 1009 ]
999 } 1010 }
1000 1011
1001 executable("stress_cache") { 1012 executable("stress_cache") {
1002 testonly = true 1013 testonly = true
1003 sources = [ 1014 sources = [
1004 "tools/stress_cache/stress_cache.cc", 1015 "tools/stress_cache/stress_cache.cc",
1005 ] 1016 ]
1006 1017
1007 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 1018 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1008 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] 1019 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
1009 deps = [ 1020 deps = [
1010 ":net", 1021 ":net",
1011 ":test_support", 1022 ":test_support",
1012 "//base", 1023 "//base",
1024 "//build/config/sanitizers:deps",
1013 ] 1025 ]
1014 } 1026 }
1015 1027
1016 executable("tld_cleanup") { 1028 executable("tld_cleanup") {
1017 sources = [ 1029 sources = [
1018 "tools/tld_cleanup/tld_cleanup.cc", 1030 "tools/tld_cleanup/tld_cleanup.cc",
1019 ] 1031 ]
1020 1032
1021 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 1033 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1022 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] 1034 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
1023 deps = [ 1035 deps = [
1024 "//base", 1036 "//base",
1025 "//base:i18n", 1037 "//base:i18n",
1038 "//build/config/sanitizers:deps",
1026 "//net/tools/tld_cleanup", 1039 "//net/tools/tld_cleanup",
1027 ] 1040 ]
1028 } 1041 }
1029 } 1042 }
1030 1043
1031 if (is_linux) { 1044 if (is_linux) {
1032 static_library("epoll_server") { 1045 static_library("epoll_server") {
1033 sources = [ 1046 sources = [
1034 "tools/epoll_server/epoll_server.cc", 1047 "tools/epoll_server/epoll_server.cc",
1035 "tools/epoll_server/epoll_server.h", 1048 "tools/epoll_server/epoll_server.h",
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
1094 "tools/flip_server/run_all_tests.cc", 1107 "tools/flip_server/run_all_tests.cc",
1095 "tools/flip_server/spdy_interface_test.cc", 1108 "tools/flip_server/spdy_interface_test.cc",
1096 "tools/flip_server/url_to_filename_encoder_unittest.cc", 1109 "tools/flip_server/url_to_filename_encoder_unittest.cc",
1097 "tools/flip_server/url_utilities_unittest.cc", 1110 "tools/flip_server/url_utilities_unittest.cc",
1098 ] 1111 ]
1099 deps = [ 1112 deps = [
1100 ":balsa", 1113 ":balsa",
1101 ":flip_in_mem_edsm_server_base", 1114 ":flip_in_mem_edsm_server_base",
1102 ":net", 1115 ":net",
1103 ":test_support", 1116 ":test_support",
1117 "//build/config/sanitizers:deps",
1104 "//testing/gtest", 1118 "//testing/gtest",
1105 "//testing/gmock", 1119 "//testing/gmock",
1106 "//third_party/boringssl", 1120 "//third_party/boringssl",
1107 ] 1121 ]
1108 } 1122 }
1109 1123
1110 executable("flip_in_mem_edsm_server") { 1124 executable("flip_in_mem_edsm_server") {
1111 testonly = true 1125 testonly = true
1112 sources = [ 1126 sources = [
1113 "tools/flip_server/flip_in_mem_edsm_server.cc", 1127 "tools/flip_server/flip_in_mem_edsm_server.cc",
1114 ] 1128 ]
1115 deps = [ 1129 deps = [
1116 ":balsa", 1130 ":balsa",
1117 ":flip_in_mem_edsm_server_base", 1131 ":flip_in_mem_edsm_server_base",
1118 ":net", 1132 ":net",
1119 "//base", 1133 "//base",
1134 "//build/config/sanitizers:deps",
1120 ] 1135 ]
1121 } 1136 }
1122 1137
1123 source_set("epoll_quic_tools") { 1138 source_set("epoll_quic_tools") {
1124 sources = [ 1139 sources = [
1125 "tools/quic/quic_client.cc", 1140 "tools/quic/quic_client.cc",
1126 "tools/quic/quic_client.h", 1141 "tools/quic/quic_client.h",
1127 "tools/quic/quic_default_packet_writer.cc", 1142 "tools/quic/quic_default_packet_writer.cc",
1128 "tools/quic/quic_default_packet_writer.h", 1143 "tools/quic/quic_default_packet_writer.h",
1129 "tools/quic/quic_epoll_clock.cc", 1144 "tools/quic/quic_epoll_clock.cc",
(...skipping 25 matching lines...) Expand all
1155 sources = [ 1170 sources = [
1156 "tools/quic/quic_client_bin.cc", 1171 "tools/quic/quic_client_bin.cc",
1157 ] 1172 ]
1158 deps = [ 1173 deps = [
1159 ":balsa", 1174 ":balsa",
1160 ":epoll_server", 1175 ":epoll_server",
1161 ":epoll_quic_tools", 1176 ":epoll_quic_tools",
1162 ":net", 1177 ":net",
1163 ":simple_quic_tools", 1178 ":simple_quic_tools",
1164 "//base", 1179 "//base",
1180 "//build/config/sanitizers:deps",
1165 "//third_party/boringssl", 1181 "//third_party/boringssl",
1166 ] 1182 ]
1167 } 1183 }
1168 1184
1169 executable("epoll_quic_server") { 1185 executable("epoll_quic_server") {
1170 sources = [ 1186 sources = [
1171 "tools/quic/quic_server_bin.cc", 1187 "tools/quic/quic_server_bin.cc",
1172 ] 1188 ]
1173 deps = [ 1189 deps = [
1174 ":balsa", 1190 ":balsa",
1175 ":epoll_server", 1191 ":epoll_server",
1176 ":epoll_quic_tools", 1192 ":epoll_quic_tools",
1177 ":net", 1193 ":net",
1178 ":simple_quic_tools", 1194 ":simple_quic_tools",
1179 "//base", 1195 "//base",
1196 "//build/config/sanitizers:deps",
1180 "//third_party/boringssl", 1197 "//third_party/boringssl",
1181 ] 1198 ]
1182 } 1199 }
1183 } 1200 }
1184 1201
1185 if (is_android) { 1202 if (is_android) {
1186 generate_jni("net_jni_headers") { 1203 generate_jni("net_jni_headers") {
1187 sources = [ 1204 sources = [
1188 "android/java/src/org/chromium/net/AndroidCertVerifyResult.java", 1205 "android/java/src/org/chromium/net/AndroidCertVerifyResult.java",
1189 "android/java/src/org/chromium/net/AndroidKeyStore.java", 1206 "android/java/src/org/chromium/net/AndroidKeyStore.java",
(...skipping 19 matching lines...) Expand all
1209 1226
1210 if (is_android || is_linux) { 1227 if (is_android || is_linux) {
1211 executable("disk_cache_memory_test") { 1228 executable("disk_cache_memory_test") {
1212 testonly = true 1229 testonly = true
1213 sources = [ 1230 sources = [
1214 "tools/disk_cache_memory_test/disk_cache_memory_test.cc", 1231 "tools/disk_cache_memory_test/disk_cache_memory_test.cc",
1215 ] 1232 ]
1216 deps = [ 1233 deps = [
1217 ":net", 1234 ":net",
1218 "//base", 1235 "//base",
1236 "//build/config/sanitizers:deps",
1219 ] 1237 ]
1220 } 1238 }
1221 } 1239 }
1222 1240
1223 source_set("simple_quic_tools") { 1241 source_set("simple_quic_tools") {
1224 sources = [ 1242 sources = [
1225 "tools/quic/quic_client_base.cc", 1243 "tools/quic/quic_client_base.cc",
1226 "tools/quic/quic_client_base.h", 1244 "tools/quic/quic_client_base.h",
1227 "tools/quic/quic_client_session.cc", 1245 "tools/quic/quic_client_session.cc",
1228 "tools/quic/quic_client_session.h", 1246 "tools/quic/quic_client_session.h",
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
1261 1279
1262 if (!is_ios) { 1280 if (!is_ios) {
1263 executable("quic_client") { 1281 executable("quic_client") {
1264 sources = [ 1282 sources = [
1265 "tools/quic/quic_simple_client_bin.cc", 1283 "tools/quic/quic_simple_client_bin.cc",
1266 ] 1284 ]
1267 deps = [ 1285 deps = [
1268 ":net", 1286 ":net",
1269 ":simple_quic_tools", 1287 ":simple_quic_tools",
1270 "//base", 1288 "//base",
1289 "//build/config/sanitizers:deps",
1271 "//url", 1290 "//url",
1272 ] 1291 ]
1273 } 1292 }
1274 executable("quic_server") { 1293 executable("quic_server") {
1275 sources = [ 1294 sources = [
1276 "tools/quic/quic_simple_server_bin.cc", 1295 "tools/quic/quic_simple_server_bin.cc",
1277 ] 1296 ]
1278 deps = [ 1297 deps = [
1279 ":net", 1298 ":net",
1280 ":simple_quic_tools", 1299 ":simple_quic_tools",
1281 "//base", 1300 "//base",
1301 "//build/config/sanitizers:deps",
1282 "//third_party/boringssl", 1302 "//third_party/boringssl",
1283 "//third_party/protobuf:protobuf_lite", 1303 "//third_party/protobuf:protobuf_lite",
1284 ] 1304 ]
1285 } 1305 }
1286 } 1306 }
1287 1307
1288 # TODO(GYP): Delete this after we've converted everything to GN. 1308 # TODO(GYP): Delete this after we've converted everything to GN.
1289 # The _run targets exist only for compatibility w/ GYP. 1309 # The _run targets exist only for compatibility w/ GYP.
1290 group("net_unittests_run") { 1310 group("net_unittests_run") {
1291 testonly = true 1311 testonly = true
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after
1629 1649
1630 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 1650 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1631 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] 1651 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
1632 deps = [ 1652 deps = [
1633 ":extras", 1653 ":extras",
1634 ":net", 1654 ":net",
1635 ":test_support", 1655 ":test_support",
1636 "//base", 1656 "//base",
1637 "//base:i18n", 1657 "//base:i18n",
1638 "//base/test:test_support_perf", 1658 "//base/test:test_support_perf",
1659 "//build/config/sanitizers:deps",
1639 "//testing/gtest", 1660 "//testing/gtest",
1640 "//url", 1661 "//url",
1641 ] 1662 ]
1642 1663
1643 if (enable_websockets) { 1664 if (enable_websockets) {
1644 sources += [ "websockets/websocket_frame_perftest.cc" ] 1665 sources += [ "websockets/websocket_frame_perftest.cc" ]
1645 } 1666 }
1646 1667
1647 if (use_v8_in_net) { 1668 if (use_v8_in_net) {
1648 deps += [ ":net_with_v8" ] 1669 deps += [ ":net_with_v8" ]
1649 } else { 1670 } else {
1650 sources -= [ "proxy/proxy_resolver_perftest.cc" ] 1671 sources -= [ "proxy/proxy_resolver_perftest.cc" ]
1651 } 1672 }
1652 } 1673 }
OLDNEW
« no previous file with comments | « mojo/services/network/BUILD.gn ('k') | ppapi/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698