| 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/chromecast_build.gni") | 5 import("//build/config/chromecast_build.gni") |
| 6 import("//build/config/compiler/compiler.gni") | 6 import("//build/config/compiler/compiler.gni") |
| 7 import("//build/config/crypto.gni") | 7 import("//build/config/crypto.gni") |
| 8 import("//build/config/features.gni") | 8 import("//build/config/features.gni") |
| 9 import("//build/config/ui.gni") | 9 import("//build/config/ui.gni") |
| 10 import("//build_overrides/v8.gni") | 10 import("//build_overrides/v8.gni") |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 # this flag is set, we hackily avoid using mmap() in the disk cache. We are | 34 # this flag is set, we hackily avoid using mmap() in the disk cache. We are |
| 35 # pretty confident that mmap-ing the index would not hurt any existing x86 | 35 # pretty confident that mmap-ing the index would not hurt any existing x86 |
| 36 # android devices, but we cannot be so sure about the variety of ARM devices. | 36 # android devices, but we cannot be so sure about the variety of ARM devices. |
| 37 # So enable it for x86 only for now. | 37 # So enable it for x86 only for now. |
| 38 posix_avoid_mmap = is_android && current_cpu != "x86" | 38 posix_avoid_mmap = is_android && current_cpu != "x86" |
| 39 | 39 |
| 40 # WebSockets and socket stream code are used everywhere except iOS. | 40 # WebSockets and socket stream code are used everywhere except iOS. |
| 41 enable_websockets = !is_ios | 41 enable_websockets = !is_ios |
| 42 use_v8_in_net = !is_ios | 42 use_v8_in_net = !is_ios |
| 43 enable_built_in_dns = !is_ios | 43 enable_built_in_dns = !is_ios |
| 44 disable_brotli_support = is_ios |
| 44 disable_ftp_support = is_ios | 45 disable_ftp_support = is_ios |
| 45 | 46 |
| 46 declare_args() { | 47 declare_args() { |
| 47 # Disables support for file URLs. File URL support requires use of icu. | 48 # Disables support for file URLs. File URL support requires use of icu. |
| 48 disable_file_support = false | 49 disable_file_support = false |
| 49 } | 50 } |
| 50 | 51 |
| 51 config("net_config") { | 52 config("net_config") { |
| 52 defines = [] | 53 defines = [] |
| 53 if (posix_avoid_mmap) { | 54 if (posix_avoid_mmap) { |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 if (!is_nacl) { | 115 if (!is_nacl) { |
| 115 net_shared_sources += gypi_values.net_non_nacl_sources | 116 net_shared_sources += gypi_values.net_non_nacl_sources |
| 116 | 117 |
| 117 net_shared_deps += [ | 118 net_shared_deps += [ |
| 118 "//base:prefs", | 119 "//base:prefs", |
| 119 "//base/third_party/dynamic_annotations", | 120 "//base/third_party/dynamic_annotations", |
| 120 "//sdch", | 121 "//sdch", |
| 121 "//third_party/zlib", | 122 "//third_party/zlib", |
| 122 ] | 123 ] |
| 123 | 124 |
| 125 if (!disable_brotli_support) { |
| 126 net_shared_deps += [ "//third_party/brotli" ] |
| 127 } |
| 128 |
| 124 if (!use_kerberos) { | 129 if (!use_kerberos) { |
| 125 net_shared_sources -= [ | 130 net_shared_sources -= [ |
| 126 "http/http_auth_gssapi_posix.cc", | 131 "http/http_auth_gssapi_posix.cc", |
| 127 "http/http_auth_gssapi_posix.h", | 132 "http/http_auth_gssapi_posix.h", |
| 128 "http/http_auth_handler_negotiate.cc", | 133 "http/http_auth_handler_negotiate.cc", |
| 129 "http/http_auth_handler_negotiate.h", | 134 "http/http_auth_handler_negotiate.h", |
| 130 ] | 135 ] |
| 131 } | 136 } |
| 132 | 137 |
| 133 if (is_posix) { | 138 if (is_posix) { |
| (...skipping 1230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1364 "//base:prefs_test_support", | 1369 "//base:prefs_test_support", |
| 1365 "//base/allocator", | 1370 "//base/allocator", |
| 1366 "//base/third_party/dynamic_annotations", | 1371 "//base/third_party/dynamic_annotations", |
| 1367 "//crypto", | 1372 "//crypto", |
| 1368 "//crypto:platform", | 1373 "//crypto:platform", |
| 1369 "//crypto:test_support", | 1374 "//crypto:test_support", |
| 1370 "//net/base/registry_controlled_domains", | 1375 "//net/base/registry_controlled_domains", |
| 1371 "//sql", | 1376 "//sql", |
| 1372 "//testing/gmock", | 1377 "//testing/gmock", |
| 1373 "//testing/gtest", | 1378 "//testing/gtest", |
| 1379 "//third_party/brotli", |
| 1374 "//third_party/zlib", | 1380 "//third_party/zlib", |
| 1375 "//url", | 1381 "//url", |
| 1376 ] | 1382 ] |
| 1377 | 1383 |
| 1378 data = [ | 1384 data = [ |
| 1379 "data/", | 1385 "data/", |
| 1380 ] | 1386 ] |
| 1381 | 1387 |
| 1382 if (is_linux || is_mac || is_win) { | 1388 if (is_linux || is_mac || is_win) { |
| 1383 deps += [ | 1389 deps += [ |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1521 "ftp/ftp_directory_listing_parser_unittest.cc", | 1527 "ftp/ftp_directory_listing_parser_unittest.cc", |
| 1522 "ftp/ftp_directory_listing_parser_unittest.h", | 1528 "ftp/ftp_directory_listing_parser_unittest.h", |
| 1523 "ftp/ftp_directory_listing_parser_vms_unittest.cc", | 1529 "ftp/ftp_directory_listing_parser_vms_unittest.cc", |
| 1524 "ftp/ftp_directory_listing_parser_windows_unittest.cc", | 1530 "ftp/ftp_directory_listing_parser_windows_unittest.cc", |
| 1525 "ftp/ftp_network_transaction_unittest.cc", | 1531 "ftp/ftp_network_transaction_unittest.cc", |
| 1526 "ftp/ftp_util_unittest.cc", | 1532 "ftp/ftp_util_unittest.cc", |
| 1527 "url_request/url_request_ftp_job_unittest.cc", | 1533 "url_request/url_request_ftp_job_unittest.cc", |
| 1528 ] | 1534 ] |
| 1529 } | 1535 } |
| 1530 | 1536 |
| 1537 if (disable_brotli_support) { |
| 1538 sources -= [ "filter/brotli_filter_unittest.cc" ] |
| 1539 deps -= [ "//third_party/brotli" ] |
| 1540 } |
| 1541 |
| 1531 if (!enable_built_in_dns) { | 1542 if (!enable_built_in_dns) { |
| 1532 sources -= [ | 1543 sources -= [ |
| 1533 "dns/address_sorter_posix_unittest.cc", | 1544 "dns/address_sorter_posix_unittest.cc", |
| 1534 "dns/address_sorter_unittest.cc", | 1545 "dns/address_sorter_unittest.cc", |
| 1535 ] | 1546 ] |
| 1536 } | 1547 } |
| 1537 | 1548 |
| 1538 if (use_v8_in_net) { | 1549 if (use_v8_in_net) { |
| 1539 deps += [ ":net_with_v8" ] | 1550 deps += [ ":net_with_v8" ] |
| 1540 } else { | 1551 } else { |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1692 if (enable_websockets) { | 1703 if (enable_websockets) { |
| 1693 sources += [ "websockets/websocket_frame_perftest.cc" ] | 1704 sources += [ "websockets/websocket_frame_perftest.cc" ] |
| 1694 } | 1705 } |
| 1695 | 1706 |
| 1696 if (use_v8_in_net) { | 1707 if (use_v8_in_net) { |
| 1697 deps += [ ":net_with_v8" ] | 1708 deps += [ ":net_with_v8" ] |
| 1698 } else { | 1709 } else { |
| 1699 sources -= [ "proxy/proxy_resolver_perftest.cc" ] | 1710 sources -= [ "proxy/proxy_resolver_perftest.cc" ] |
| 1700 } | 1711 } |
| 1701 } | 1712 } |
| OLD | NEW |