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 1231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1365 "//base:prefs_test_support", | 1370 "//base:prefs_test_support", |
1366 "//base/allocator", | 1371 "//base/allocator", |
1367 "//base/third_party/dynamic_annotations", | 1372 "//base/third_party/dynamic_annotations", |
1368 "//crypto", | 1373 "//crypto", |
1369 "//crypto:platform", | 1374 "//crypto:platform", |
1370 "//crypto:test_support", | 1375 "//crypto:test_support", |
1371 "//net/base/registry_controlled_domains", | 1376 "//net/base/registry_controlled_domains", |
1372 "//sql", | 1377 "//sql", |
1373 "//testing/gmock", | 1378 "//testing/gmock", |
1374 "//testing/gtest", | 1379 "//testing/gtest", |
| 1380 "//third_party/brotli", |
1375 "//third_party/zlib", | 1381 "//third_party/zlib", |
1376 "//url", | 1382 "//url", |
1377 ] | 1383 ] |
1378 | 1384 |
1379 data = [ | 1385 data = [ |
1380 "data/", | 1386 "data/", |
1381 ] | 1387 ] |
1382 | 1388 |
1383 if (is_linux || is_mac || is_win) { | 1389 if (is_linux || is_mac || is_win) { |
1384 deps += [ | 1390 deps += [ |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1517 "ftp/ftp_directory_listing_parser_unittest.cc", | 1523 "ftp/ftp_directory_listing_parser_unittest.cc", |
1518 "ftp/ftp_directory_listing_parser_unittest.h", | 1524 "ftp/ftp_directory_listing_parser_unittest.h", |
1519 "ftp/ftp_directory_listing_parser_vms_unittest.cc", | 1525 "ftp/ftp_directory_listing_parser_vms_unittest.cc", |
1520 "ftp/ftp_directory_listing_parser_windows_unittest.cc", | 1526 "ftp/ftp_directory_listing_parser_windows_unittest.cc", |
1521 "ftp/ftp_network_transaction_unittest.cc", | 1527 "ftp/ftp_network_transaction_unittest.cc", |
1522 "ftp/ftp_util_unittest.cc", | 1528 "ftp/ftp_util_unittest.cc", |
1523 "url_request/url_request_ftp_job_unittest.cc", | 1529 "url_request/url_request_ftp_job_unittest.cc", |
1524 ] | 1530 ] |
1525 } | 1531 } |
1526 | 1532 |
| 1533 if (disable_brotli_support) { |
| 1534 sources -= [ "filter/brotli_filter_unittest.cc" ] |
| 1535 deps -= [ "//third_party/brotli" ] |
| 1536 } |
| 1537 |
1527 if (!enable_built_in_dns) { | 1538 if (!enable_built_in_dns) { |
1528 sources -= [ | 1539 sources -= [ |
1529 "dns/address_sorter_posix_unittest.cc", | 1540 "dns/address_sorter_posix_unittest.cc", |
1530 "dns/address_sorter_unittest.cc", | 1541 "dns/address_sorter_unittest.cc", |
1531 ] | 1542 ] |
1532 } | 1543 } |
1533 | 1544 |
1534 if (use_v8_in_net) { | 1545 if (use_v8_in_net) { |
1535 deps += [ ":net_with_v8" ] | 1546 deps += [ ":net_with_v8" ] |
1536 } else { | 1547 } else { |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1688 if (enable_websockets) { | 1699 if (enable_websockets) { |
1689 sources += [ "websockets/websocket_frame_perftest.cc" ] | 1700 sources += [ "websockets/websocket_frame_perftest.cc" ] |
1690 } | 1701 } |
1691 | 1702 |
1692 if (use_v8_in_net) { | 1703 if (use_v8_in_net) { |
1693 deps += [ ":net_with_v8" ] | 1704 deps += [ ":net_with_v8" ] |
1694 } else { | 1705 } else { |
1695 sources -= [ "proxy/proxy_resolver_perftest.cc" ] | 1706 sources -= [ "proxy/proxy_resolver_perftest.cc" ] |
1696 } | 1707 } |
1697 } | 1708 } |
OLD | NEW |