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

Side by Side Diff: net/BUILD.gn

Issue 994193002: Compile quic_server on MacOS (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 | « no previous file | net/net.gyp » ('j') | net/tools/quic/quic_client.cc » ('J')
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 932 matching lines...) Expand 10 before | Expand all | Expand 10 after
943 } 943 }
944 944
945 executable("run_testserver") { 945 executable("run_testserver") {
946 testonly = true 946 testonly = true
947 sources = [ 947 sources = [
948 "tools/testserver/run_testserver.cc", 948 "tools/testserver/run_testserver.cc",
949 ] 949 ]
950 deps = [ 950 deps = [
951 ":net", # TODO(brettw) bug 363749: this shouldn't be necessary. It's not 951 ":net", # TODO(brettw) bug 363749: this shouldn't be necessary. It's not
952 # in the GYP build, and can be removed when the bug is fixed. 952 # in the GYP build, and can be removed when the bug is fixed.
953
953 ":test_support", 954 ":test_support",
954 "//base", 955 "//base",
955 "//base/test:test_support", 956 "//base/test:test_support",
956 "//testing/gtest", 957 "//testing/gtest",
957 ] 958 ]
958 } 959 }
959 960
960 executable("stress_cache") { 961 executable("stress_cache") {
961 testonly = true 962 testonly = true
962 sources = [ 963 sources = [
(...skipping 17 matching lines...) Expand all
980 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 981 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
981 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] 982 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
982 deps = [ 983 deps = [
983 "//base", 984 "//base",
984 "//base:i18n", 985 "//base:i18n",
985 "//net/tools/tld_cleanup", 986 "//net/tools/tld_cleanup",
986 ] 987 ]
987 } 988 }
988 } 989 }
989 990
990 if (is_linux) { 991 if (is_linux || is_mac) {
991 static_library("epoll_server") { 992 static_library("epoll_server") {
992 sources = [ 993 sources = [
993 "tools/epoll_server/epoll_server.cc", 994 "tools/epoll_server/epoll_server.cc",
994 "tools/epoll_server/linux_epoll_server.cc",
995 "tools/epoll_server/epoll_server.h", 995 "tools/epoll_server/epoll_server.h",
996 ] 996 ]
997 if (is_mac) {
998 sources += [ "tools/epoll_server/darwin_epoll_server.cc" ]
999 } else {
1000 sources += [ "tools/epoll_server/linux_epoll_server.cc" ]
1001 }
997 deps = [ 1002 deps = [
998 ":net", 1003 ":net",
999 "//base", 1004 "//base",
1000 ] 1005 ]
1001 } 1006 }
1007 }
1002 1008
1009 if (is_linux) {
1003 static_library("flip_in_mem_edsm_server_base") { 1010 static_library("flip_in_mem_edsm_server_base") {
1004 testonly = true 1011 testonly = true
1005 sources = [ 1012 sources = [
1006 "tools/dump_cache/url_to_filename_encoder.cc", 1013 "tools/dump_cache/url_to_filename_encoder.cc",
1007 "tools/dump_cache/url_to_filename_encoder.h", 1014 "tools/dump_cache/url_to_filename_encoder.h",
1008 "tools/dump_cache/url_utilities.cc", 1015 "tools/dump_cache/url_utilities.cc",
1009 "tools/dump_cache/url_utilities.h", 1016 "tools/dump_cache/url_utilities.h",
1010 "tools/flip_server/acceptor_thread.cc", 1017 "tools/flip_server/acceptor_thread.cc",
1011 "tools/flip_server/acceptor_thread.h", 1018 "tools/flip_server/acceptor_thread.h",
1012 "tools/flip_server/constants.h", 1019 "tools/flip_server/constants.h",
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
1166 sources = [ 1173 sources = [
1167 "tools/disk_cache_memory_test/disk_cache_memory_test.cc", 1174 "tools/disk_cache_memory_test/disk_cache_memory_test.cc",
1168 ] 1175 ]
1169 deps = [ 1176 deps = [
1170 ":net", 1177 ":net",
1171 "//base", 1178 "//base",
1172 ] 1179 ]
1173 } 1180 }
1174 } 1181 }
1175 1182
1183 # This source_set is defined even if no build targets need it,
1184 # such as when all dependees are not buildable for the chosen OS.
1185 source_set("quic_tools") {
1186 sources = [
1187 "quic/quic_dispatcher.cc",
1188 "quic/quic_dispatcher.h",
1189 "quic/quic_in_memory_cache.cc",
1190 "quic/quic_in_memory_cache.h",
1191 "quic/quic_per_connection_packet_writer.cc",
1192 "quic/quic_per_connection_packet_writer.h",
1193 "quic/quic_server.cc",
1194 "quic/quic_server.h",
1195 "quic/quic_server_packet_writer.cc",
1196 "quic/quic_server_packet_writer.h",
1197 "quic/quic_server_session.cc",
1198 "quic/quic_server_session.h",
1199 "quic/quic_spdy_server_stream.cc",
1200 "quic/quic_spdy_server_stream.h",
1201 "quic/quic_time_wait_list_manager.cc",
1202 "quic/quic_time_wait_list_manager.h",
1203 ]
1204 deps = [
1205 ":net",
1206 "//base",
1207 "//base/third_party/dynamic_annotations",
1208 "//url",
1209 ]
1210 }
1211
1176 # TODO(GYP) make this compile on Android, we need some native test deps done. 1212 # TODO(GYP) make this compile on Android, we need some native test deps done.
1177 # TODO(GYP) Also doesn't work on Windows; dependency on boringssl is wrong. 1213 # TODO(GYP) Also doesn't work on Windows; dependency on boringssl is wrong.
1178 # TODO(GYP) Also doesn't work on Mac, need to figure out why not. 1214 # TODO(GYP) Also doesn't work on Mac, need to figure out why not.
1179 if (!is_android && !is_win && !is_mac) { 1215 if (!is_android && !is_win && !is_mac) {
1180 source_set("quic_tools") {
1181 sources = [
1182 "quic/quic_dispatcher.cc",
1183 "quic/quic_dispatcher.h",
1184 "quic/quic_in_memory_cache.cc",
1185 "quic/quic_in_memory_cache.h",
1186 "quic/quic_per_connection_packet_writer.cc",
1187 "quic/quic_per_connection_packet_writer.h",
1188 "quic/quic_server.cc",
1189 "quic/quic_server.h",
1190 "quic/quic_server_packet_writer.cc",
1191 "quic/quic_server_packet_writer.h",
1192 "quic/quic_server_session.cc",
1193 "quic/quic_server_session.h",
1194 "quic/quic_spdy_server_stream.cc",
1195 "quic/quic_spdy_server_stream.h",
1196 "quic/quic_time_wait_list_manager.cc",
1197 "quic/quic_time_wait_list_manager.h",
1198 ]
1199 deps = [
1200 ":net",
1201 "//base",
1202 "//base/third_party/dynamic_annotations",
1203 "//url",
1204 ]
1205 }
1206
1207 test("net_unittests") { 1216 test("net_unittests") {
1208 sources = gypi_values.net_test_sources 1217 sources = gypi_values.net_test_sources
1209 1218
1210 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 1219 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1211 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] 1220 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
1212 defines = [] 1221 defines = []
1213 1222
1214 deps = [ 1223 deps = [
1215 ":extras", 1224 ":extras",
1216 ":http_server", 1225 ":http_server",
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
1489 } 1498 }
1490 1499
1491 if (use_icu_alternatives_on_android) { 1500 if (use_icu_alternatives_on_android) {
1492 sources -= [ 1501 sources -= [
1493 "base/filename_util_unittest.cc", 1502 "base/filename_util_unittest.cc",
1494 "base/net_util_icu_unittest.cc", 1503 "base/net_util_icu_unittest.cc",
1495 ] 1504 ]
1496 deps -= [ "//base:i18n" ] 1505 deps -= [ "//base:i18n" ]
1497 } 1506 }
1498 } 1507 }
1508 } # !is_android && !is_win && !is_mac
1499 1509
1510 if (!is_android && !is_win) {
1500 executable("quic_server") { 1511 executable("quic_server") {
1501 sources = [ 1512 sources = [
1502 "quic/quic_server_bin.cc", 1513 "quic/quic_server_bin.cc",
1503 ] 1514 ]
1504 deps = [ 1515 deps = [
1505 ":quic_tools", 1516 ":quic_tools",
1506 ":net", 1517 ":net",
1507 "//base", 1518 "//base",
1508 "//third_party/boringssl", 1519 "//third_party/boringssl",
1509 ] 1520 ]
1510 } 1521 }
1511 } # !is_android && !is_win && !is_mac 1522 }
OLDNEW
« no previous file with comments | « no previous file | net/net.gyp » ('j') | net/tools/quic/quic_client.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698