| OLD | NEW |
| 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 30 matching lines...) Expand all Loading... |
| 41 # android devices, but we cannot be so sure about the variety of ARM devices. | 41 # android devices, but we cannot be so sure about the variety of ARM devices. |
| 42 # So enable it for x86 only for now. | 42 # So enable it for x86 only for now. |
| 43 posix_avoid_mmap = is_android && current_cpu != "x86" | 43 posix_avoid_mmap = is_android && current_cpu != "x86" |
| 44 | 44 |
| 45 # WebSockets and socket stream code are used everywhere except iOS. | 45 # WebSockets and socket stream code are used everywhere except iOS. |
| 46 enable_websockets = !is_ios | 46 enable_websockets = !is_ios |
| 47 use_v8_in_net = false | 47 use_v8_in_net = false |
| 48 enable_built_in_dns = !is_ios | 48 enable_built_in_dns = !is_ios |
| 49 disable_ftp_support = is_ios | 49 disable_ftp_support = is_ios |
| 50 | 50 |
| 51 # NOTE(vtl): This was "moved" from //build/config/features.gni. |
| 52 enable_mdns = is_linux |
| 53 |
| 51 declare_args() { | 54 declare_args() { |
| 52 # Disables support for file URLs. File URL support requires use of icu. | 55 # Disables support for file URLs. File URL support requires use of icu. |
| 53 disable_file_support = false | 56 disable_file_support = false |
| 54 } | 57 } |
| 55 | 58 |
| 56 config("net_config") { | 59 config("net_config") { |
| 57 defines = [] | 60 defines = [] |
| 58 if (posix_avoid_mmap) { | 61 if (posix_avoid_mmap) { |
| 59 defines += [ "POSIX_AVOID_MMAP" ] | 62 defines += [ "POSIX_AVOID_MMAP" ] |
| 60 } | 63 } |
| (...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 282 } else if (is_android) { | 285 } else if (is_android) { |
| 283 # Android doesn't use these even when using OpenSSL. | 286 # Android doesn't use these even when using OpenSSL. |
| 284 sources -= [ | 287 sources -= [ |
| 285 "base/openssl_private_key_store_memory.cc", | 288 "base/openssl_private_key_store_memory.cc", |
| 286 "cert/cert_database_openssl.cc", | 289 "cert/cert_database_openssl.cc", |
| 287 "cert/cert_verify_proc_openssl.cc", | 290 "cert/cert_verify_proc_openssl.cc", |
| 288 "cert/test_root_certs_openssl.cc", | 291 "cert/test_root_certs_openssl.cc", |
| 289 ] | 292 ] |
| 290 } | 293 } |
| 291 | 294 |
| 292 if (use_glib && !is_chromeos) { | |
| 293 configs += [ "//build/config/linux:gconf" ] | |
| 294 deps += [ "//build/config/linux:gio" ] | |
| 295 } | |
| 296 | |
| 297 if (is_linux) { | 295 if (is_linux) { |
| 298 configs += [ "//build/config/linux:libresolv" ] | 296 configs += [ "//build/config/linux:libresolv" ] |
| 299 } | 297 } |
| 300 | 298 |
| 301 if (!use_nss_certs) { | 299 if (!use_nss_certs) { |
| 302 sources -= [ | 300 sources -= [ |
| 303 "base/crypto_module_nss.cc", | 301 "base/crypto_module_nss.cc", |
| 304 "base/keygen_handler_nss.cc", | 302 "base/keygen_handler_nss.cc", |
| 305 "cert/cert_database_nss.cc", | 303 "cert/cert_database_nss.cc", |
| 306 "cert/nss_cert_database.cc", | 304 "cert/nss_cert_database.cc", |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 385 "websockets/websocket_handshake_stream_create_helper.cc", | 383 "websockets/websocket_handshake_stream_create_helper.cc", |
| 386 "websockets/websocket_handshake_stream_create_helper.h", | 384 "websockets/websocket_handshake_stream_create_helper.h", |
| 387 "websockets/websocket_inflater.cc", | 385 "websockets/websocket_inflater.cc", |
| 388 "websockets/websocket_inflater.h", | 386 "websockets/websocket_inflater.h", |
| 389 "websockets/websocket_mux.h", | 387 "websockets/websocket_mux.h", |
| 390 "websockets/websocket_stream.cc", | 388 "websockets/websocket_stream.cc", |
| 391 "websockets/websocket_stream.h", | 389 "websockets/websocket_stream.h", |
| 392 ] | 390 ] |
| 393 } | 391 } |
| 394 | 392 |
| 395 if (!enable_mdns) { | 393 # Was "!enable_mdns". |
| 394 if (!is_linux) { |
| 396 sources -= [ | 395 sources -= [ |
| 397 "dns/mdns_cache.cc", | 396 "dns/mdns_cache.cc", |
| 398 "dns/mdns_cache.h", | 397 "dns/mdns_cache.h", |
| 399 "dns/mdns_client.cc", | 398 "dns/mdns_client.cc", |
| 400 "dns/mdns_client.h", | 399 "dns/mdns_client.h", |
| 401 "dns/mdns_client_impl.cc", | 400 "dns/mdns_client_impl.cc", |
| 402 "dns/mdns_client_impl.h", | 401 "dns/mdns_client_impl.h", |
| 403 "dns/record_parsed.cc", | 402 "dns/record_parsed.cc", |
| 404 "dns/record_parsed.h", | 403 "dns/record_parsed.h", |
| 405 "dns/record_rdata.cc", | 404 "dns/record_rdata.cc", |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 562 "tools/dump_cache/url_to_filename_encoder.cc", | 561 "tools/dump_cache/url_to_filename_encoder.cc", |
| 563 "tools/dump_cache/url_to_filename_encoder.h", | 562 "tools/dump_cache/url_to_filename_encoder.h", |
| 564 "tools/dump_cache/url_utilities.cc", | 563 "tools/dump_cache/url_utilities.cc", |
| 565 "tools/dump_cache/url_utilities.h", | 564 "tools/dump_cache/url_utilities.h", |
| 566 ] | 565 ] |
| 567 | 566 |
| 568 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 567 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 569 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 568 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 570 | 569 |
| 571 deps = [ | 570 deps = [ |
| 572 "//base", | |
| 573 ":net", | 571 ":net", |
| 574 ":test_support", | 572 ":test_support", |
| 573 "//base", |
| 575 ] | 574 ] |
| 576 } | 575 } |
| 577 | 576 |
| 578 source_set("test_support") { | 577 source_set("test_support") { |
| 579 testonly = true | 578 testonly = true |
| 580 sources = [ | 579 sources = [ |
| 581 "base/load_timing_info_test_util.cc", | 580 "base/load_timing_info_test_util.cc", |
| 582 "base/load_timing_info_test_util.h", | 581 "base/load_timing_info_test_util.h", |
| 583 "base/mock_file_stream.cc", | 582 "base/mock_file_stream.cc", |
| 584 "base/mock_file_stream.h", | 583 "base/mock_file_stream.h", |
| (...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 921 | 920 |
| 922 executable("hpack_example_generator") { | 921 executable("hpack_example_generator") { |
| 923 testonly = true | 922 testonly = true |
| 924 sources = [ | 923 sources = [ |
| 925 "spdy/fuzzing/hpack_example_generator.cc", | 924 "spdy/fuzzing/hpack_example_generator.cc", |
| 926 ] | 925 ] |
| 927 | 926 |
| 928 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 927 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 929 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 928 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 930 deps = [ | 929 deps = [ |
| 930 ":net", |
| 931 "//base", | 931 "//base", |
| 932 ":net", | |
| 933 ] | 932 ] |
| 934 } | 933 } |
| 935 | 934 |
| 936 executable("hpack_fuzz_mutator") { | 935 executable("hpack_fuzz_mutator") { |
| 937 testonly = true | 936 testonly = true |
| 938 sources = [ | 937 sources = [ |
| 939 "spdy/fuzzing/hpack_fuzz_mutator.cc", | 938 "spdy/fuzzing/hpack_fuzz_mutator.cc", |
| 940 ] | 939 ] |
| 941 | 940 |
| 942 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 941 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 943 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 942 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 944 deps = [ | 943 deps = [ |
| 944 ":net", |
| 945 "//base", | 945 "//base", |
| 946 ":net", | |
| 947 ] | 946 ] |
| 948 } | 947 } |
| 949 | 948 |
| 950 executable("hpack_fuzz_wrapper") { | 949 executable("hpack_fuzz_wrapper") { |
| 951 testonly = true | 950 testonly = true |
| 952 sources = [ | 951 sources = [ |
| 953 "spdy/fuzzing/hpack_fuzz_wrapper.cc", | 952 "spdy/fuzzing/hpack_fuzz_wrapper.cc", |
| 954 ] | 953 ] |
| 955 | 954 |
| 956 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 955 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 957 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 956 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 958 deps = [ | 957 deps = [ |
| 958 ":net", |
| 959 "//base", | 959 "//base", |
| 960 ":net", | |
| 961 ] | 960 ] |
| 962 } | 961 } |
| 963 | 962 |
| 964 if (use_v8_in_net) { | 963 if (use_v8_in_net) { |
| 965 executable("net_watcher") { | 964 executable("net_watcher") { |
| 966 testonly = true | 965 testonly = true |
| 967 sources = [ | 966 sources = [ |
| 968 "tools/net_watcher/net_watcher.cc", | 967 "tools/net_watcher/net_watcher.cc", |
| 969 ] | 968 ] |
| 970 deps = [ | 969 deps = [ |
| (...skipping 13 matching lines...) Expand all Loading... |
| 984 } | 983 } |
| 985 | 984 |
| 986 executable("run_testserver") { | 985 executable("run_testserver") { |
| 987 testonly = true | 986 testonly = true |
| 988 sources = [ | 987 sources = [ |
| 989 "tools/testserver/run_testserver.cc", | 988 "tools/testserver/run_testserver.cc", |
| 990 ] | 989 ] |
| 991 deps = [ | 990 deps = [ |
| 992 ":net", # TODO(brettw) bug 363749: this shouldn't be necessary. It's not | 991 ":net", # TODO(brettw) bug 363749: this shouldn't be necessary. It's not |
| 993 # in the GYP build, and can be removed when the bug is fixed. | 992 # in the GYP build, and can be removed when the bug is fixed. |
| 994 | |
| 995 ":test_support", | 993 ":test_support", |
| 996 "//base", | 994 "//base", |
| 997 "//base/test:test_support", | 995 "//base/test:test_support", |
| 998 "//testing/gtest", | 996 "//testing/gtest", |
| 999 ] | 997 ] |
| 1000 } | 998 } |
| 1001 | 999 |
| 1002 executable("stress_cache") { | 1000 executable("stress_cache") { |
| 1003 testonly = true | 1001 testonly = true |
| 1004 sources = [ | 1002 sources = [ |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1093 "tools/flip_server/http_interface_test.cc", | 1091 "tools/flip_server/http_interface_test.cc", |
| 1094 "tools/flip_server/mem_cache_test.cc", | 1092 "tools/flip_server/mem_cache_test.cc", |
| 1095 "tools/flip_server/run_all_tests.cc", | 1093 "tools/flip_server/run_all_tests.cc", |
| 1096 "tools/flip_server/spdy_interface_test.cc", | 1094 "tools/flip_server/spdy_interface_test.cc", |
| 1097 ] | 1095 ] |
| 1098 deps = [ | 1096 deps = [ |
| 1099 ":balsa", | 1097 ":balsa", |
| 1100 ":flip_in_mem_edsm_server_base", | 1098 ":flip_in_mem_edsm_server_base", |
| 1101 ":net", | 1099 ":net", |
| 1102 ":test_support", | 1100 ":test_support", |
| 1101 "//testing/gmock", |
| 1103 "//testing/gtest", | 1102 "//testing/gtest", |
| 1104 "//testing/gmock", | |
| 1105 "//third_party/boringssl", | 1103 "//third_party/boringssl", |
| 1106 ] | 1104 ] |
| 1107 } | 1105 } |
| 1108 | 1106 |
| 1109 executable("flip_in_mem_edsm_server") { | 1107 executable("flip_in_mem_edsm_server") { |
| 1110 testonly = true | 1108 testonly = true |
| 1111 sources = [ | 1109 sources = [ |
| 1112 "tools/flip_server/flip_in_mem_edsm_server.cc", | 1110 "tools/flip_server/flip_in_mem_edsm_server.cc", |
| 1113 ] | 1111 ] |
| 1114 deps = [ | 1112 deps = [ |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1149 "//url", | 1147 "//url", |
| 1150 ] | 1148 ] |
| 1151 } | 1149 } |
| 1152 | 1150 |
| 1153 executable("epoll_quic_client") { | 1151 executable("epoll_quic_client") { |
| 1154 sources = [ | 1152 sources = [ |
| 1155 "tools/quic/quic_client_bin.cc", | 1153 "tools/quic/quic_client_bin.cc", |
| 1156 ] | 1154 ] |
| 1157 deps = [ | 1155 deps = [ |
| 1158 ":balsa", | 1156 ":balsa", |
| 1157 ":epoll_quic_tools", |
| 1159 ":epoll_server", | 1158 ":epoll_server", |
| 1160 ":epoll_quic_tools", | |
| 1161 ":net", | 1159 ":net", |
| 1162 ":simple_quic_tools", | 1160 ":simple_quic_tools", |
| 1163 "//base", | 1161 "//base", |
| 1164 "//third_party/boringssl", | 1162 "//third_party/boringssl", |
| 1165 ] | 1163 ] |
| 1166 } | 1164 } |
| 1167 | 1165 |
| 1168 executable("epoll_quic_server") { | 1166 executable("epoll_quic_server") { |
| 1169 sources = [ | 1167 sources = [ |
| 1170 "tools/quic/quic_server_bin.cc", | 1168 "tools/quic/quic_server_bin.cc", |
| 1171 ] | 1169 ] |
| 1172 deps = [ | 1170 deps = [ |
| 1173 ":balsa", | 1171 ":balsa", |
| 1172 ":epoll_quic_tools", |
| 1174 ":epoll_server", | 1173 ":epoll_server", |
| 1175 ":epoll_quic_tools", | |
| 1176 ":net", | 1174 ":net", |
| 1177 ":simple_quic_tools", | 1175 ":simple_quic_tools", |
| 1178 "//base", | 1176 "//base", |
| 1179 "//third_party/boringssl", | 1177 "//third_party/boringssl", |
| 1180 ] | 1178 ] |
| 1181 } | 1179 } |
| 1182 } | 1180 } |
| 1183 | 1181 |
| 1184 if (is_android) { | 1182 if (is_android) { |
| 1185 generate_jni("net_jni_headers") { | 1183 generate_jni("net_jni_headers") { |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1309 "//url", | 1307 "//url", |
| 1310 ] | 1308 ] |
| 1311 | 1309 |
| 1312 if (is_desktop_linux) { | 1310 if (is_desktop_linux) { |
| 1313 deps += [ ":epoll_quic_tools" ] | 1311 deps += [ ":epoll_quic_tools" ] |
| 1314 } | 1312 } |
| 1315 if (is_linux) { | 1313 if (is_linux) { |
| 1316 sources += gypi_values.net_linux_test_sources | 1314 sources += gypi_values.net_linux_test_sources |
| 1317 deps += [ | 1315 deps += [ |
| 1318 ":balsa", | 1316 ":balsa", |
| 1317 ":epoll_quic_tools", |
| 1319 ":epoll_server", | 1318 ":epoll_server", |
| 1320 ":flip_in_mem_edsm_server_base", | 1319 ":flip_in_mem_edsm_server_base", |
| 1321 ":epoll_quic_tools", | |
| 1322 ] | 1320 ] |
| 1323 } | 1321 } |
| 1324 | 1322 |
| 1325 if (is_mac || is_ios) { | 1323 if (is_mac || is_ios) { |
| 1326 sources += gypi_values.net_base_test_mac_ios_sources | 1324 sources += gypi_values.net_base_test_mac_ios_sources |
| 1327 } | 1325 } |
| 1328 | 1326 |
| 1329 if (is_chromeos) { | 1327 if (is_chromeos) { |
| 1330 sources -= [ "proxy/proxy_config_service_linux_unittest.cc" ] | 1328 sources -= [ "proxy/proxy_config_service_linux_unittest.cc" ] |
| 1331 } | 1329 } |
| (...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1579 "base/mime_sniffer_perftest.cc", | 1577 "base/mime_sniffer_perftest.cc", |
| 1580 "cookies/cookie_monster_perftest.cc", | 1578 "cookies/cookie_monster_perftest.cc", |
| 1581 "disk_cache/blockfile/disk_cache_perftest.cc", | 1579 "disk_cache/blockfile/disk_cache_perftest.cc", |
| 1582 "proxy/proxy_resolver_perftest.cc", | 1580 "proxy/proxy_resolver_perftest.cc", |
| 1583 "udp/udp_socket_perftest.cc", | 1581 "udp/udp_socket_perftest.cc", |
| 1584 ] | 1582 ] |
| 1585 | 1583 |
| 1586 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 1584 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 1587 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 1585 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 1588 deps = [ | 1586 deps = [ |
| 1587 ":net", |
| 1588 ":test_support", |
| 1589 "//base", | 1589 "//base", |
| 1590 "//base:i18n", | 1590 "//base:i18n", |
| 1591 "//base/test:test_support_perf", | 1591 "//base/test:test_support_perf", |
| 1592 "//testing/gtest", | 1592 "//testing/gtest", |
| 1593 "//url", | 1593 "//url", |
| 1594 ":net", | |
| 1595 ":test_support", | |
| 1596 ] | 1594 ] |
| 1597 | 1595 |
| 1598 if (enable_websockets) { | 1596 if (enable_websockets) { |
| 1599 sources += [ "websockets/websocket_frame_perftest.cc" ] | 1597 sources += [ "websockets/websocket_frame_perftest.cc" ] |
| 1600 } | 1598 } |
| 1601 | 1599 |
| 1602 if (use_v8_in_net) { | 1600 if (use_v8_in_net) { |
| 1603 deps += [ ":net_with_v8" ] | 1601 deps += [ ":net_with_v8" ] |
| 1604 } else { | 1602 } else { |
| 1605 sources -= [ "proxy/proxy_resolver_perftest.cc" ] | 1603 sources -= [ "proxy/proxy_resolver_perftest.cc" ] |
| 1606 } | 1604 } |
| 1607 | 1605 |
| 1608 if (is_win && icu_use_data_file) { | 1606 if (is_win && icu_use_data_file) { |
| 1609 # This is needed to trigger the dll copy step on windows. | 1607 # This is needed to trigger the dll copy step on windows. |
| 1610 # TODO(mark): Specifying this here shouldn't be necessary. | 1608 # TODO(mark): Specifying this here shouldn't be necessary. |
| 1611 deps += [ "//third_party/icu:icudata" ] | 1609 deps += [ "//third_party/icu:icudata" ] |
| 1612 } | 1610 } |
| 1613 } | 1611 } |
| OLD | NEW |