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

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: Fix histograms.xml 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 914 matching lines...) Expand 10 before | Expand all | Expand 10 after
1346 "//base:prefs_test_support", 1355 "//base:prefs_test_support",
1347 "//base/allocator", 1356 "//base/allocator",
1348 "//base/third_party/dynamic_annotations", 1357 "//base/third_party/dynamic_annotations",
1349 "//crypto", 1358 "//crypto",
1350 "//crypto:platform", 1359 "//crypto:platform",
1351 "//crypto:test_support", 1360 "//crypto:test_support",
1352 "//net/base/registry_controlled_domains", 1361 "//net/base/registry_controlled_domains",
1353 "//sql", 1362 "//sql",
1354 "//testing/gmock", 1363 "//testing/gmock",
1355 "//testing/gtest", 1364 "//testing/gtest",
1365 "//third_party/brotli",
1356 "//third_party/zlib", 1366 "//third_party/zlib",
1357 "//url", 1367 "//url",
1358 ] 1368 ]
1359 1369
1360 data = [ 1370 data = [
1361 "data/", 1371 "data/",
1362 ] 1372 ]
1363 1373
1364 if (is_linux || is_mac || is_win) { 1374 if (is_linux || is_mac || is_win) {
1365 deps += [ 1375 deps += [
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
1503 "ftp/ftp_directory_listing_parser_unittest.cc", 1513 "ftp/ftp_directory_listing_parser_unittest.cc",
1504 "ftp/ftp_directory_listing_parser_unittest.h", 1514 "ftp/ftp_directory_listing_parser_unittest.h",
1505 "ftp/ftp_directory_listing_parser_vms_unittest.cc", 1515 "ftp/ftp_directory_listing_parser_vms_unittest.cc",
1506 "ftp/ftp_directory_listing_parser_windows_unittest.cc", 1516 "ftp/ftp_directory_listing_parser_windows_unittest.cc",
1507 "ftp/ftp_network_transaction_unittest.cc", 1517 "ftp/ftp_network_transaction_unittest.cc",
1508 "ftp/ftp_util_unittest.cc", 1518 "ftp/ftp_util_unittest.cc",
1509 "url_request/url_request_ftp_job_unittest.cc", 1519 "url_request/url_request_ftp_job_unittest.cc",
1510 ] 1520 ]
1511 } 1521 }
1512 1522
1523 if (disable_brotli_support) {
1524 sources -= [ "filter/brotli_filter_unittest.cc" ]
1525 deps -= [ "//third_party/brotli" ]
1526 }
1527
1513 if (!enable_built_in_dns) { 1528 if (!enable_built_in_dns) {
1514 sources -= [ 1529 sources -= [
1515 "dns/address_sorter_posix_unittest.cc", 1530 "dns/address_sorter_posix_unittest.cc",
1516 "dns/address_sorter_unittest.cc", 1531 "dns/address_sorter_unittest.cc",
1517 ] 1532 ]
1518 } 1533 }
1519 1534
1520 if (use_v8_in_net) { 1535 if (use_v8_in_net) {
1521 deps += [ ":net_with_v8" ] 1536 deps += [ ":net_with_v8" ]
1522 } else { 1537 } else {
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
1577 # ], 1592 # ],
1578 sources -= [ 1593 sources -= [
1579 # TODO(droger): The following tests are disabled because the 1594 # TODO(droger): The following tests are disabled because the
1580 # implementation is missing or incomplete. 1595 # implementation is missing or incomplete.
1581 # KeygenHandler::GenKeyAndSignChallenge() is not ported to iOS. 1596 # KeygenHandler::GenKeyAndSignChallenge() is not ported to iOS.
1582 "base/keygen_handler_unittest.cc", 1597 "base/keygen_handler_unittest.cc",
1583 "disk_cache/backend_unittest.cc", 1598 "disk_cache/backend_unittest.cc",
1584 "disk_cache/blockfile/block_files_unittest.cc", 1599 "disk_cache/blockfile/block_files_unittest.cc",
1585 1600
1586 # Need to read input data files. 1601 # Need to read input data files.
1602 "filter/brotli_filter_unittest.cc",
1587 "filter/gzip_filter_unittest.cc", 1603 "filter/gzip_filter_unittest.cc",
1588 "socket/ssl_server_socket_unittest.cc", 1604 "socket/ssl_server_socket_unittest.cc",
1589 "spdy/fuzzing/hpack_fuzz_util_test.cc", 1605 "spdy/fuzzing/hpack_fuzz_util_test.cc",
1590 1606
1591 # Need TestServer. 1607 # Need TestServer.
1592 "cert_net/cert_net_fetcher_impl_unittest.cc", 1608 "cert_net/cert_net_fetcher_impl_unittest.cc",
1593 "proxy/proxy_script_fetcher_impl_unittest.cc", 1609 "proxy/proxy_script_fetcher_impl_unittest.cc",
1594 "socket/ssl_client_socket_unittest.cc", 1610 "socket/ssl_client_socket_unittest.cc",
1595 "url_request/url_fetcher_impl_unittest.cc", 1611 "url_request/url_fetcher_impl_unittest.cc",
1596 "url_request/url_request_context_builder_unittest.cc", 1612 "url_request/url_request_context_builder_unittest.cc",
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
1677 if (enable_websockets) { 1693 if (enable_websockets) {
1678 sources += [ "websockets/websocket_frame_perftest.cc" ] 1694 sources += [ "websockets/websocket_frame_perftest.cc" ]
1679 } 1695 }
1680 1696
1681 if (use_v8_in_net) { 1697 if (use_v8_in_net) {
1682 deps += [ ":net_with_v8" ] 1698 deps += [ ":net_with_v8" ]
1683 } else { 1699 } else {
1684 sources -= [ "proxy/proxy_resolver_perftest.cc" ] 1700 sources -= [ "proxy/proxy_resolver_perftest.cc" ]
1685 } 1701 }
1686 } 1702 }
OLDNEW
« no previous file with comments | « components/cronet.gypi ('k') | net/DEPS » ('j') | net/filter/brotli_filter.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698