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

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: undefine __APPLE_USE_RFC_n after use 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') | 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 1024 matching lines...) Expand 10 before | Expand all | Expand 10 after
1035 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 1035 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1036 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] 1036 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
1037 deps = [ 1037 deps = [
1038 "//base", 1038 "//base",
1039 "//base:i18n", 1039 "//base:i18n",
1040 "//net/tools/tld_cleanup", 1040 "//net/tools/tld_cleanup",
1041 ] 1041 ]
1042 } 1042 }
1043 } 1043 }
1044 1044
1045 if (is_linux) { 1045 if (is_linux || is_mac) {
1046 static_library("epoll_server") { 1046 static_library("epoll_server") {
1047 sources = [ 1047 sources = [
1048 "tools/epoll_server/epoll_server.cc", 1048 "tools/epoll_server/epoll_server.cc",
1049 "tools/epoll_server/epoll_server.h", 1049 "tools/epoll_server/epoll_server.h",
1050 "tools/epoll_server/linux_epoll_server.cc",
1051 ] 1050 ]
1051 if (is_mac) {
1052 sources += [ "tools/epoll_server/darwin_epoll_server.cc" ]
1053 } else {
1054 sources += [ "tools/epoll_server/linux_epoll_server.cc" ]
1055 }
1052 deps = [ 1056 deps = [
1053 ":net", 1057 ":net",
1054 "//base", 1058 "//base",
1055 ] 1059 ]
1056 } 1060 }
1061 }
1057 1062
1063 if (is_linux) {
1058 static_library("flip_in_mem_edsm_server_base") { 1064 static_library("flip_in_mem_edsm_server_base") {
1059 testonly = true 1065 testonly = true
1060 sources = [ 1066 sources = [
1061 "tools/dump_cache/url_to_filename_encoder.cc", 1067 "tools/dump_cache/url_to_filename_encoder.cc",
1062 "tools/dump_cache/url_to_filename_encoder.h", 1068 "tools/dump_cache/url_to_filename_encoder.h",
1063 "tools/dump_cache/url_utilities.cc", 1069 "tools/dump_cache/url_utilities.cc",
1064 "tools/dump_cache/url_utilities.h", 1070 "tools/dump_cache/url_utilities.h",
1065 "tools/flip_server/acceptor_thread.cc", 1071 "tools/flip_server/acceptor_thread.cc",
1066 "tools/flip_server/acceptor_thread.h", 1072 "tools/flip_server/acceptor_thread.h",
1067 "tools/flip_server/constants.h", 1073 "tools/flip_server/constants.h",
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
1221 sources = [ 1227 sources = [
1222 "tools/disk_cache_memory_test/disk_cache_memory_test.cc", 1228 "tools/disk_cache_memory_test/disk_cache_memory_test.cc",
1223 ] 1229 ]
1224 deps = [ 1230 deps = [
1225 ":net", 1231 ":net",
1226 "//base", 1232 "//base",
1227 ] 1233 ]
1228 } 1234 }
1229 } 1235 }
1230 1236
1237 # This source_set is defined even if no build targets need it,
1238 # such as when all dependees are not buildable for the chosen OS.
1239 source_set("quic_tools") {
1240 sources = [
1241 "quic/quic_dispatcher.cc",
1242 "quic/quic_dispatcher.h",
1243 "quic/quic_in_memory_cache.cc",
1244 "quic/quic_in_memory_cache.h",
1245 "quic/quic_per_connection_packet_writer.cc",
1246 "quic/quic_per_connection_packet_writer.h",
1247 "quic/quic_server.cc",
1248 "quic/quic_server.h",
1249 "quic/quic_server_packet_writer.cc",
1250 "quic/quic_server_packet_writer.h",
1251 "quic/quic_server_session.cc",
1252 "quic/quic_server_session.h",
1253 "quic/quic_spdy_server_stream.cc",
1254 "quic/quic_spdy_server_stream.h",
1255 "quic/quic_time_wait_list_manager.cc",
1256 "quic/quic_time_wait_list_manager.h",
1257 ]
1258 deps = [
1259 ":net",
1260 "//base",
1261 "//base/third_party/dynamic_annotations",
1262 "//url",
1263 ]
1264 }
1265
1231 # TODO(GYP) make this compile on Android, we need some native test deps done. 1266 # TODO(GYP) make this compile on Android, we need some native test deps done.
1232 # TODO(GYP) Also doesn't work on Windows; dependency on boringssl is wrong. 1267 # TODO(GYP) Also doesn't work on Windows; dependency on boringssl is wrong.
1233 # TODO(GYP) Also doesn't work on Mac, need to figure out why not. 1268 # TODO(GYP) Also doesn't work on Mac, need to figure out why not.
1234 if (!is_android && !is_win && !is_mac) { 1269 if (!is_android && !is_win && !is_mac) {
1235 source_set("quic_tools") {
1236 sources = [
1237 "quic/quic_dispatcher.cc",
1238 "quic/quic_dispatcher.h",
1239 "quic/quic_in_memory_cache.cc",
1240 "quic/quic_in_memory_cache.h",
1241 "quic/quic_per_connection_packet_writer.cc",
1242 "quic/quic_per_connection_packet_writer.h",
1243 "quic/quic_server.cc",
1244 "quic/quic_server.h",
1245 "quic/quic_server_packet_writer.cc",
1246 "quic/quic_server_packet_writer.h",
1247 "quic/quic_server_session.cc",
1248 "quic/quic_server_session.h",
1249 "quic/quic_spdy_server_stream.cc",
1250 "quic/quic_spdy_server_stream.h",
1251 "quic/quic_time_wait_list_manager.cc",
1252 "quic/quic_time_wait_list_manager.h",
1253 ]
1254 deps = [
1255 ":net",
1256 "//base",
1257 "//base/third_party/dynamic_annotations",
1258 "//url",
1259 ]
1260 }
1261
1262 test("net_unittests") { 1270 test("net_unittests") {
1263 sources = gypi_values.net_test_sources 1271 sources = gypi_values.net_test_sources
1264 1272
1265 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 1273 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
1266 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] 1274 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
1267 defines = [] 1275 defines = []
1268 1276
1269 deps = [ 1277 deps = [
1270 ":extras", 1278 ":extras",
1271 ":http_server", 1279 ":http_server",
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after
1546 } 1554 }
1547 1555
1548 if (use_icu_alternatives_on_android) { 1556 if (use_icu_alternatives_on_android) {
1549 sources -= [ 1557 sources -= [
1550 "base/filename_util_unittest.cc", 1558 "base/filename_util_unittest.cc",
1551 "base/net_util_icu_unittest.cc", 1559 "base/net_util_icu_unittest.cc",
1552 ] 1560 ]
1553 deps -= [ "//base:i18n" ] 1561 deps -= [ "//base:i18n" ]
1554 } 1562 }
1555 } 1563 }
1564 } # !is_android && !is_win && !is_mac
1556 1565
1566 if (!is_android && !is_win) {
1557 executable("quic_server") { 1567 executable("quic_server") {
1558 sources = [ 1568 sources = [
1559 "quic/quic_server_bin.cc", 1569 "quic/quic_server_bin.cc",
1560 ] 1570 ]
1561 deps = [ 1571 deps = [
1562 ":quic_tools", 1572 ":quic_tools",
1563 ":net", 1573 ":net",
1564 "//base", 1574 "//base",
1565 "//third_party/boringssl", 1575 "//third_party/boringssl",
1566 ] 1576 ]
1567 } 1577 }
1568 } # !is_android && !is_win && !is_mac 1578 }
1569 1579
1570 executable("net_perftests") { 1580 executable("net_perftests") {
1571 testonly = true 1581 testonly = true
1572 sources = [ 1582 sources = [
1573 "cookies/cookie_monster_perftest.cc", 1583 "cookies/cookie_monster_perftest.cc",
1574 "disk_cache/blockfile/disk_cache_perftest.cc", 1584 "disk_cache/blockfile/disk_cache_perftest.cc",
1575 "proxy/proxy_resolver_perftest.cc", 1585 "proxy/proxy_resolver_perftest.cc",
1576 "udp/udp_socket_perftest.cc", 1586 "udp/udp_socket_perftest.cc",
1577 ] 1587 ]
1578 1588
(...skipping 18 matching lines...) Expand all
1597 } else { 1607 } else {
1598 sources -= [ "proxy/proxy_resolver_perftest.cc" ] 1608 sources -= [ "proxy/proxy_resolver_perftest.cc" ]
1599 } 1609 }
1600 1610
1601 if (is_win && icu_use_data_file) { 1611 if (is_win && icu_use_data_file) {
1602 # This is needed to trigger the dll copy step on windows. 1612 # This is needed to trigger the dll copy step on windows.
1603 # TODO(mark): Specifying this here shouldn't be necessary. 1613 # TODO(mark): Specifying this here shouldn't be necessary.
1604 deps += [ "//third_party/icu:icudata" ] 1614 deps += [ "//third_party/icu:icudata" ]
1605 } 1615 }
1606 } 1616 }
OLDNEW
« no previous file with comments | « no previous file | net/net.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698