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

Side by Side Diff: net/BUILD.gn

Issue 1036023002: Move remaining QUIC server files from net/quic/ to net/tools/quic/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: correctly fix cronet Created 5 years, 8 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 | « components/cronet.gypi ('k') | net/net.gyp » ('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("//url/config.gni") 9 import("//url/config.gni")
10 import("//testing/test.gni") 10 import("//testing/test.gni")
(...skipping 1121 matching lines...) Expand 10 before | Expand all | Expand 10 after
1132 "tools/flip_server/flip_in_mem_edsm_server.cc", 1132 "tools/flip_server/flip_in_mem_edsm_server.cc",
1133 ] 1133 ]
1134 deps = [ 1134 deps = [
1135 ":balsa", 1135 ":balsa",
1136 ":flip_in_mem_edsm_server_base", 1136 ":flip_in_mem_edsm_server_base",
1137 ":net", 1137 ":net",
1138 "//base", 1138 "//base",
1139 ] 1139 ]
1140 } 1140 }
1141 1141
1142 source_set("quic_base") { 1142 source_set("epoll_quic_tools") {
1143 sources = [ 1143 sources = [
1144 "tools/quic/quic_client.cc", 1144 "tools/quic/quic_client.cc",
1145 "tools/quic/quic_client.h", 1145 "tools/quic/quic_client.h",
1146 "tools/quic/quic_default_packet_writer.cc", 1146 "tools/quic/quic_default_packet_writer.cc",
1147 "tools/quic/quic_default_packet_writer.h", 1147 "tools/quic/quic_default_packet_writer.h",
1148 "tools/quic/quic_epoll_clock.cc", 1148 "tools/quic/quic_epoll_clock.cc",
1149 "tools/quic/quic_epoll_clock.h", 1149 "tools/quic/quic_epoll_clock.h",
1150 "tools/quic/quic_epoll_connection_helper.cc", 1150 "tools/quic/quic_epoll_connection_helper.cc",
1151 "tools/quic/quic_epoll_connection_helper.h", 1151 "tools/quic/quic_epoll_connection_helper.h",
1152 "tools/quic/quic_packet_reader.cc", 1152 "tools/quic/quic_packet_reader.cc",
(...skipping 10 matching lines...) Expand all
1163 ":epoll_server", 1163 ":epoll_server",
1164 ":net", 1164 ":net",
1165 "//base", 1165 "//base",
1166 "//base/third_party/dynamic_annotations", 1166 "//base/third_party/dynamic_annotations",
1167 "//crypto", 1167 "//crypto",
1168 "//third_party/boringssl", 1168 "//third_party/boringssl",
1169 "//url", 1169 "//url",
1170 ] 1170 ]
1171 } 1171 }
1172 1172
1173 executable("quic_client") { 1173 executable("epoll_quic_client") {
1174 sources = [ 1174 sources = [
1175 "tools/quic/quic_client_bin.cc", 1175 "tools/quic/quic_client_bin.cc",
1176 ] 1176 ]
1177 deps = [ 1177 deps = [
1178 ":balsa", 1178 ":balsa",
1179 ":epoll_server", 1179 ":epoll_server",
1180 ":quic_base", 1180 ":epoll_quic_tools",
1181 ":net", 1181 ":net",
1182 ":simple_quic_tools", 1182 ":simple_quic_tools",
1183 "//base", 1183 "//base",
1184 "//third_party/boringssl",
1185 ]
1186 }
1187
1188 executable("epoll_quic_server") {
1189 sources = [
1190 "tools/quic/quic_server_bin.cc",
1191 ]
1192 deps = [
1193 ":balsa",
1194 ":epoll_server",
1195 ":epoll_quic_tools",
1196 ":net",
1197 ":simple_quic_tools",
1198 "//base",
1184 "//third_party/boringssl", 1199 "//third_party/boringssl",
1185 ] 1200 ]
1186 } 1201 }
1187 } 1202 }
1188 1203
1189 if (is_android) { 1204 if (is_android) {
1190 generate_jni("net_jni_headers") { 1205 generate_jni("net_jni_headers") {
1191 sources = [ 1206 sources = [
1192 "android/java/src/org/chromium/net/AndroidCertVerifyResult.java", 1207 "android/java/src/org/chromium/net/AndroidCertVerifyResult.java",
1193 "android/java/src/org/chromium/net/AndroidKeyStore.java", 1208 "android/java/src/org/chromium/net/AndroidKeyStore.java",
(...skipping 20 matching lines...) Expand all
1214 sources = [ 1229 sources = [
1215 "tools/disk_cache_memory_test/disk_cache_memory_test.cc", 1230 "tools/disk_cache_memory_test/disk_cache_memory_test.cc",
1216 ] 1231 ]
1217 deps = [ 1232 deps = [
1218 ":net", 1233 ":net",
1219 "//base", 1234 "//base",
1220 ] 1235 ]
1221 } 1236 }
1222 } 1237 }
1223 1238
1224 # This source_set is defined even if no build targets need it,
1225 # such as when all dependees are not buildable for the chosen OS.
1226 source_set("quic_tools") {
1227 sources = [
1228 "quic/quic_per_connection_packet_writer.cc",
1229 "quic/quic_per_connection_packet_writer.h",
1230 "quic/quic_server.cc",
1231 "quic/quic_server.h",
1232 "quic/quic_server_packet_writer.cc",
1233 "quic/quic_server_packet_writer.h",
1234 ]
1235 deps = [
1236 ":net",
1237 ":simple_quic_tools",
1238 "//base",
1239 "//base/third_party/dynamic_annotations",
1240 "//url",
1241 ]
1242 }
1243 source_set("simple_quic_tools") { 1239 source_set("simple_quic_tools") {
1244 sources = [ 1240 sources = [
1245 "tools/quic/quic_client_session.cc", 1241 "tools/quic/quic_client_session.cc",
1246 "tools/quic/quic_client_session.h", 1242 "tools/quic/quic_client_session.h",
1247 "tools/quic/quic_dispatcher.cc", 1243 "tools/quic/quic_dispatcher.cc",
1248 "tools/quic/quic_dispatcher.h", 1244 "tools/quic/quic_dispatcher.h",
1249 "tools/quic/quic_in_memory_cache.cc", 1245 "tools/quic/quic_in_memory_cache.cc",
1250 "tools/quic/quic_in_memory_cache.h", 1246 "tools/quic/quic_in_memory_cache.h",
1251 "tools/quic/quic_per_connection_packet_writer.cc", 1247 "tools/quic/quic_per_connection_packet_writer.cc",
1252 "tools/quic/quic_per_connection_packet_writer.h", 1248 "tools/quic/quic_per_connection_packet_writer.h",
1253 "tools/quic/quic_server_session.cc", 1249 "tools/quic/quic_server_session.cc",
1254 "tools/quic/quic_server_session.h", 1250 "tools/quic/quic_server_session.h",
1255 "tools/quic/quic_simple_client.cc", 1251 "tools/quic/quic_simple_client.cc",
1256 "tools/quic/quic_simple_client.h", 1252 "tools/quic/quic_simple_client.h",
1253 "tools/quic/quic_simple_per_connection_packet_writer.cc",
1254 "tools/quic/quic_simple_per_connection_packet_writer.h",
1255 "tools/quic/quic_simple_server.cc",
1256 "tools/quic/quic_simple_server.h",
1257 "tools/quic/quic_simple_server_packet_writer.cc",
1258 "tools/quic/quic_simple_server_packet_writer.h",
1257 "tools/quic/quic_spdy_client_stream.cc", 1259 "tools/quic/quic_spdy_client_stream.cc",
1258 "tools/quic/quic_spdy_client_stream.h", 1260 "tools/quic/quic_spdy_client_stream.h",
1259 "tools/quic/quic_spdy_server_stream.cc", 1261 "tools/quic/quic_spdy_server_stream.cc",
1260 "tools/quic/quic_spdy_server_stream.h", 1262 "tools/quic/quic_spdy_server_stream.h",
1261 "tools/quic/quic_time_wait_list_manager.cc", 1263 "tools/quic/quic_time_wait_list_manager.cc",
1262 "tools/quic/quic_time_wait_list_manager.h", 1264 "tools/quic/quic_time_wait_list_manager.h",
1263 "tools/quic/synchronous_host_resolver.cc", 1265 "tools/quic/synchronous_host_resolver.cc",
1264 "tools/quic/synchronous_host_resolver.h", 1266 "tools/quic/synchronous_host_resolver.h",
1265 ] 1267 ]
1266 deps = [ 1268 deps = [
1267 ":net", 1269 ":net",
1268 "//base", 1270 "//base",
1269 "//base/third_party/dynamic_annotations", 1271 "//base/third_party/dynamic_annotations",
1270 "//url", 1272 "//url",
1271 ] 1273 ]
1272 } 1274 }
1273 1275
1274 executable("simple_quic_client") { 1276 executable("quic_client") {
1275 testonly = true
1276 sources = [ 1277 sources = [
1277 "tools/quic/quic_simple_client_bin.cc", 1278 "tools/quic/quic_simple_client_bin.cc",
1278 ] 1279 ]
1279 deps = [ 1280 deps = [
1280 ":net", 1281 ":net",
1281 ":simple_quic_tools", 1282 ":simple_quic_tools",
1282 "//base", 1283 "//base",
1283 "//url", 1284 "//url",
1284 ] 1285 ]
1285 } 1286 }
1286 1287
1288 executable("quic_server") {
1289 sources = [
1290 "tools/quic/quic_simple_server_bin.cc",
1291 ]
1292 deps = [
1293 ":net",
1294 ":simple_quic_tools",
1295 "//base",
1296 "//third_party/boringssl",
1297 ]
1298 }
1299
1287 # TODO(GYP) make this compile on Android, we need some native test deps done. 1300 # TODO(GYP) make this compile on Android, we need some native test deps done.
1288 # TODO(GYP) Also doesn't work on Windows; dependency on boringssl is wrong. 1301 # TODO(GYP) Also doesn't work on Windows; dependency on boringssl is wrong.
1289 # TODO(GYP) Also doesn't work on Mac, need to figure out why not. 1302 # TODO(GYP) Also doesn't work on Mac, need to figure out why not.
1290 if (!is_android && !is_win && !is_mac) { 1303 if (!is_android && !is_win && !is_mac) {
1291 test("net_unittests") { 1304 test("net_unittests") {
1292 sources = gypi_values.net_test_sources 1305 sources = gypi_values.net_test_sources
1293 1306
1294 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 1307 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1295 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] 1308 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
1296 defines = [] 1309 defines = []
1297 1310
1298 deps = [ 1311 deps = [
1299 ":extras", 1312 ":extras",
1300 ":http_server", 1313 ":http_server",
1301 ":net", 1314 ":net",
1302 ":quic_tools", 1315 ":epoll_quic_tools",
1303 ":simple_quic_tools", 1316 ":simple_quic_tools",
1304 ":test_support", 1317 ":test_support",
1305 "//base", 1318 "//base",
1306 "//base:i18n", 1319 "//base:i18n",
1307 "//base:prefs_test_support", 1320 "//base:prefs_test_support",
1308 "//base/allocator", 1321 "//base/allocator",
1309 "//base/third_party/dynamic_annotations", 1322 "//base/third_party/dynamic_annotations",
1310 "//crypto", 1323 "//crypto",
1311 "//crypto:platform", 1324 "//crypto:platform",
1312 "//crypto:test_support", 1325 "//crypto:test_support",
1313 "//gin", 1326 "//gin",
1314 "//net/base/registry_controlled_domains", 1327 "//net/base/registry_controlled_domains",
1315 "//sql", 1328 "//sql",
1316 "//testing/gmock", 1329 "//testing/gmock",
1317 "//testing/gtest", 1330 "//testing/gtest",
1318 "//third_party/zlib", 1331 "//third_party/zlib",
1319 "//url", 1332 "//url",
1320 ] 1333 ]
1321 1334
1322 if (is_linux) { 1335 if (is_linux) {
1323 sources += gypi_values.net_linux_test_sources 1336 sources += gypi_values.net_linux_test_sources
1324 deps += [ 1337 deps += [
1325 ":balsa", 1338 ":balsa",
1326 ":epoll_server", 1339 ":epoll_server",
1327 ":flip_in_mem_edsm_server_base", 1340 ":flip_in_mem_edsm_server_base",
1328 ":quic_base", 1341 ":epoll_quic_tools",
1329 ] 1342 ]
1330 } 1343 }
1331 1344
1332 if (is_mac || is_ios) { 1345 if (is_mac || is_ios) {
1333 sources += gypi_values.net_base_test_mac_ios_sources 1346 sources += gypi_values.net_base_test_mac_ios_sources
1334 } 1347 }
1335 1348
1336 if (is_chromeos) { 1349 if (is_chromeos) {
1337 sources -= [ "proxy/proxy_config_service_linux_unittest.cc" ] 1350 sources -= [ "proxy/proxy_config_service_linux_unittest.cc" ]
1338 } 1351 }
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
1578 if (use_icu_alternatives_on_android) { 1591 if (use_icu_alternatives_on_android) {
1579 sources -= [ 1592 sources -= [
1580 "base/filename_util_unittest.cc", 1593 "base/filename_util_unittest.cc",
1581 "base/net_util_icu_unittest.cc", 1594 "base/net_util_icu_unittest.cc",
1582 ] 1595 ]
1583 deps -= [ "//base:i18n" ] 1596 deps -= [ "//base:i18n" ]
1584 } 1597 }
1585 } 1598 }
1586 } # !is_android && !is_win && !is_mac 1599 } # !is_android && !is_win && !is_mac
1587 1600
1588 if (!is_android && !is_win) {
1589 executable("quic_server") {
1590 sources = [
1591 "quic/quic_server_bin.cc",
1592 ]
1593 deps = [
1594 ":net",
1595 ":quic_tools",
1596 ":simple_quic_tools",
1597 "//base",
1598 "//third_party/boringssl",
1599 ]
1600 }
1601 }
1602
1603 executable("net_perftests") { 1601 executable("net_perftests") {
1604 testonly = true 1602 testonly = true
1605 sources = [ 1603 sources = [
1606 "cookies/cookie_monster_perftest.cc", 1604 "cookies/cookie_monster_perftest.cc",
1607 "disk_cache/blockfile/disk_cache_perftest.cc", 1605 "disk_cache/blockfile/disk_cache_perftest.cc",
1608 "proxy/proxy_resolver_perftest.cc", 1606 "proxy/proxy_resolver_perftest.cc",
1609 "udp/udp_socket_perftest.cc", 1607 "udp/udp_socket_perftest.cc",
1610 ] 1608 ]
1611 1609
1612 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 1610 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
(...skipping 17 matching lines...) Expand all
1630 } else { 1628 } else {
1631 sources -= [ "proxy/proxy_resolver_perftest.cc" ] 1629 sources -= [ "proxy/proxy_resolver_perftest.cc" ]
1632 } 1630 }
1633 1631
1634 if (is_win && icu_use_data_file) { 1632 if (is_win && icu_use_data_file) {
1635 # This is needed to trigger the dll copy step on windows. 1633 # This is needed to trigger the dll copy step on windows.
1636 # TODO(mark): Specifying this here shouldn't be necessary. 1634 # TODO(mark): Specifying this here shouldn't be necessary.
1637 deps += [ "//third_party/icu:icudata" ] 1635 deps += [ "//third_party/icu:icudata" ]
1638 } 1636 }
1639 } 1637 }
OLDNEW
« no previous file with comments | « components/cronet.gypi ('k') | net/net.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698