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

Side by Side Diff: net/BUILD.gn

Issue 1431723002: Add brotli content-encoding filter. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add brotli reference link Created 5 years, 1 month 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
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/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
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
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 278 matching lines...) Expand 10 before | Expand all | Expand 10 after
412 417
413 if (!is_nacl) { 418 if (!is_nacl) {
414 if (!disable_file_support) { 419 if (!disable_file_support) {
415 sources += gypi_values.net_file_support_sources 420 sources += gypi_values.net_file_support_sources
416 } 421 }
417 422
418 if (!disable_ftp_support) { 423 if (!disable_ftp_support) {
419 sources += gypi_values.net_ftp_support_sources 424 sources += gypi_values.net_ftp_support_sources
420 } 425 }
421 426
427 if (!disable_brotli_support) {
428 sources += gypi_values.net_brotli_support_sources
429 }
430
422 if (enable_websockets) { 431 if (enable_websockets) {
423 sources += gypi_values.net_websockets_sources 432 sources += gypi_values.net_websockets_sources
424 } 433 }
425 434
426 # ICU support. 435 # ICU support.
427 deps += [ 436 deps += [
428 "//base:i18n", 437 "//base:i18n",
429 "//third_party/icu", 438 "//third_party/icu",
430 ] 439 ]
431 sources += [ 440 sources += [
(...skipping 899 matching lines...) Expand 10 before | Expand all | Expand 10 after
1331 "//base:prefs_test_support", 1340 "//base:prefs_test_support",
1332 "//base/allocator", 1341 "//base/allocator",
1333 "//base/third_party/dynamic_annotations", 1342 "//base/third_party/dynamic_annotations",
1334 "//crypto", 1343 "//crypto",
1335 "//crypto:platform", 1344 "//crypto:platform",
1336 "//crypto:test_support", 1345 "//crypto:test_support",
1337 "//net/base/registry_controlled_domains", 1346 "//net/base/registry_controlled_domains",
1338 "//sql", 1347 "//sql",
1339 "//testing/gmock", 1348 "//testing/gmock",
1340 "//testing/gtest", 1349 "//testing/gtest",
1350 "//third_party/brotli",
1341 "//third_party/zlib", 1351 "//third_party/zlib",
1342 "//url", 1352 "//url",
1343 ] 1353 ]
1344 1354
1345 data = [ 1355 data = [
1346 "data/", 1356 "data/",
1347 ] 1357 ]
1348 1358
1349 if (is_linux || is_mac || is_win) { 1359 if (is_linux || is_mac || is_win) {
1350 deps += [ 1360 deps += [
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
1488 "ftp/ftp_directory_listing_parser_unittest.cc", 1498 "ftp/ftp_directory_listing_parser_unittest.cc",
1489 "ftp/ftp_directory_listing_parser_unittest.h", 1499 "ftp/ftp_directory_listing_parser_unittest.h",
1490 "ftp/ftp_directory_listing_parser_vms_unittest.cc", 1500 "ftp/ftp_directory_listing_parser_vms_unittest.cc",
1491 "ftp/ftp_directory_listing_parser_windows_unittest.cc", 1501 "ftp/ftp_directory_listing_parser_windows_unittest.cc",
1492 "ftp/ftp_network_transaction_unittest.cc", 1502 "ftp/ftp_network_transaction_unittest.cc",
1493 "ftp/ftp_util_unittest.cc", 1503 "ftp/ftp_util_unittest.cc",
1494 "url_request/url_request_ftp_job_unittest.cc", 1504 "url_request/url_request_ftp_job_unittest.cc",
1495 ] 1505 ]
1496 } 1506 }
1497 1507
1508 if (disable_brotli_support) {
1509 sources -= [ "filter/brotli_filter_unittest.cc" ]
1510 deps -= [ "//third_party/brotli" ]
1511 }
1512
1498 if (!enable_built_in_dns) { 1513 if (!enable_built_in_dns) {
1499 sources -= [ 1514 sources -= [
1500 "dns/address_sorter_posix_unittest.cc", 1515 "dns/address_sorter_posix_unittest.cc",
1501 "dns/address_sorter_unittest.cc", 1516 "dns/address_sorter_unittest.cc",
1502 ] 1517 ]
1503 } 1518 }
1504 1519
1505 if (use_v8_in_net) { 1520 if (use_v8_in_net) {
1506 deps += [ ":net_with_v8" ] 1521 deps += [ ":net_with_v8" ]
1507 } else { 1522 } else {
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
1562 # ], 1577 # ],
1563 sources -= [ 1578 sources -= [
1564 # TODO(droger): The following tests are disabled because the 1579 # TODO(droger): The following tests are disabled because the
1565 # implementation is missing or incomplete. 1580 # implementation is missing or incomplete.
1566 # KeygenHandler::GenKeyAndSignChallenge() is not ported to iOS. 1581 # KeygenHandler::GenKeyAndSignChallenge() is not ported to iOS.
1567 "base/keygen_handler_unittest.cc", 1582 "base/keygen_handler_unittest.cc",
1568 "disk_cache/backend_unittest.cc", 1583 "disk_cache/backend_unittest.cc",
1569 "disk_cache/blockfile/block_files_unittest.cc", 1584 "disk_cache/blockfile/block_files_unittest.cc",
1570 1585
1571 # Need to read input data files. 1586 # Need to read input data files.
1587 "filter/brotli_filter_unittest.cc",
xunjieli 2015/11/17 16:16:12 The test file is already excluded on 1508. Isn't t
eustas 2015/11/17 17:57:21 Right you are. Fixed.
1572 "filter/gzip_filter_unittest.cc", 1588 "filter/gzip_filter_unittest.cc",
1573 "socket/ssl_server_socket_unittest.cc", 1589 "socket/ssl_server_socket_unittest.cc",
1574 "spdy/fuzzing/hpack_fuzz_util_test.cc", 1590 "spdy/fuzzing/hpack_fuzz_util_test.cc",
1575 1591
1576 # Need TestServer. 1592 # Need TestServer.
1577 "cert_net/cert_net_fetcher_impl_unittest.cc", 1593 "cert_net/cert_net_fetcher_impl_unittest.cc",
1578 "proxy/proxy_script_fetcher_impl_unittest.cc", 1594 "proxy/proxy_script_fetcher_impl_unittest.cc",
1579 "socket/ssl_client_socket_unittest.cc", 1595 "socket/ssl_client_socket_unittest.cc",
1580 "url_request/url_fetcher_impl_unittest.cc", 1596 "url_request/url_fetcher_impl_unittest.cc",
1581 "url_request/url_request_context_builder_unittest.cc", 1597 "url_request/url_request_context_builder_unittest.cc",
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
1661 if (enable_websockets) { 1677 if (enable_websockets) {
1662 sources += [ "websockets/websocket_frame_perftest.cc" ] 1678 sources += [ "websockets/websocket_frame_perftest.cc" ]
1663 } 1679 }
1664 1680
1665 if (use_v8_in_net) { 1681 if (use_v8_in_net) {
1666 deps += [ ":net_with_v8" ] 1682 deps += [ ":net_with_v8" ]
1667 } else { 1683 } else {
1668 sources -= [ "proxy/proxy_resolver_perftest.cc" ] 1684 sources -= [ "proxy/proxy_resolver_perftest.cc" ]
1669 } 1685 }
1670 } 1686 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698