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

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: Added Accept-Ecnoding test Created 5 years 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 280 matching lines...) Expand 10 before | Expand all | Expand 10 after
414 419
415 if (!is_nacl) { 420 if (!is_nacl) {
416 if (!disable_file_support) { 421 if (!disable_file_support) {
417 sources += gypi_values.net_file_support_sources 422 sources += gypi_values.net_file_support_sources
418 } 423 }
419 424
420 if (!disable_ftp_support) { 425 if (!disable_ftp_support) {
421 sources += gypi_values.net_ftp_support_sources 426 sources += gypi_values.net_ftp_support_sources
422 } 427 }
423 428
429 if (!disable_brotli_support) {
430 sources += gypi_values.net_brotli_support_sources
431 }
432
424 if (enable_websockets) { 433 if (enable_websockets) {
425 sources += gypi_values.net_websockets_sources 434 sources += gypi_values.net_websockets_sources
426 } 435 }
427 436
428 # ICU support. 437 # ICU support.
429 deps += [ 438 deps += [
430 "//base:i18n", 439 "//base:i18n",
431 "//third_party/icu", 440 "//third_party/icu",
432 ] 441 ]
433 sources += [ 442 sources += [
(...skipping 899 matching lines...) Expand 10 before | Expand all | Expand 10 after
1333 "//base:prefs_test_support", 1342 "//base:prefs_test_support",
1334 "//base/allocator", 1343 "//base/allocator",
1335 "//base/third_party/dynamic_annotations", 1344 "//base/third_party/dynamic_annotations",
1336 "//crypto", 1345 "//crypto",
1337 "//crypto:platform", 1346 "//crypto:platform",
1338 "//crypto:test_support", 1347 "//crypto:test_support",
1339 "//net/base/registry_controlled_domains", 1348 "//net/base/registry_controlled_domains",
1340 "//sql", 1349 "//sql",
1341 "//testing/gmock", 1350 "//testing/gmock",
1342 "//testing/gtest", 1351 "//testing/gtest",
1352 "//third_party/brotli",
1343 "//third_party/zlib", 1353 "//third_party/zlib",
1344 "//url", 1354 "//url",
1345 ] 1355 ]
1346 1356
1347 data = [ 1357 data = [
1348 "data/", 1358 "data/",
1349 ] 1359 ]
1350 1360
1351 if (is_linux || is_mac || is_win) { 1361 if (is_linux || is_mac || is_win) {
1352 deps += [ 1362 deps += [
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
1490 "ftp/ftp_directory_listing_parser_unittest.cc", 1500 "ftp/ftp_directory_listing_parser_unittest.cc",
1491 "ftp/ftp_directory_listing_parser_unittest.h", 1501 "ftp/ftp_directory_listing_parser_unittest.h",
1492 "ftp/ftp_directory_listing_parser_vms_unittest.cc", 1502 "ftp/ftp_directory_listing_parser_vms_unittest.cc",
1493 "ftp/ftp_directory_listing_parser_windows_unittest.cc", 1503 "ftp/ftp_directory_listing_parser_windows_unittest.cc",
1494 "ftp/ftp_network_transaction_unittest.cc", 1504 "ftp/ftp_network_transaction_unittest.cc",
1495 "ftp/ftp_util_unittest.cc", 1505 "ftp/ftp_util_unittest.cc",
1496 "url_request/url_request_ftp_job_unittest.cc", 1506 "url_request/url_request_ftp_job_unittest.cc",
1497 ] 1507 ]
1498 } 1508 }
1499 1509
1510 if (disable_brotli_support) {
1511 sources -= [ "filter/brotli_filter_unittest.cc" ]
1512 deps -= [ "//third_party/brotli" ]
1513 }
1514
1500 if (!enable_built_in_dns) { 1515 if (!enable_built_in_dns) {
1501 sources -= [ 1516 sources -= [
1502 "dns/address_sorter_posix_unittest.cc", 1517 "dns/address_sorter_posix_unittest.cc",
1503 "dns/address_sorter_unittest.cc", 1518 "dns/address_sorter_unittest.cc",
1504 ] 1519 ]
1505 } 1520 }
1506 1521
1507 if (use_v8_in_net) { 1522 if (use_v8_in_net) {
1508 deps += [ ":net_with_v8" ] 1523 deps += [ ":net_with_v8" ]
1509 } else { 1524 } else {
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
1663 if (enable_websockets) { 1678 if (enable_websockets) {
1664 sources += [ "websockets/websocket_frame_perftest.cc" ] 1679 sources += [ "websockets/websocket_frame_perftest.cc" ]
1665 } 1680 }
1666 1681
1667 if (use_v8_in_net) { 1682 if (use_v8_in_net) {
1668 deps += [ ":net_with_v8" ] 1683 deps += [ ":net_with_v8" ]
1669 } else { 1684 } else {
1670 sources -= [ "proxy/proxy_resolver_perftest.cc" ] 1685 sources -= [ "proxy/proxy_resolver_perftest.cc" ]
1671 } 1686 }
1672 } 1687 }
OLDNEW
« no previous file with comments | « components/cronet.gypi ('k') | net/DEPS » ('j') | net/filter/filter.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698