| 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") |
| 11 import("//testing/test.gni") | 11 import("//testing/test.gni") |
| 12 import("//third_party/icu/config.gni") | 12 import("//third_party/icu/config.gni") |
| 13 import("//third_party/protobuf/proto_library.gni") | 13 import("//third_party/protobuf/proto_library.gni") |
| 14 import("//tools/grit/grit_rule.gni") | 14 import("//tools/grit/grit_rule.gni") |
| 15 | 15 |
| 16 if (is_android) { | 16 if (is_android) { |
| 17 import("//build/config/android/config.gni") | 17 import("//build/config/android/config.gni") |
| 18 import("//build/config/android/rules.gni") | 18 import("//build/config/android/rules.gni") |
| 19 } else if (is_mac) { | 19 } else if (is_mac) { |
| 20 import("//build/config/mac/mac_sdk.gni") | 20 import("//build/config/mac/mac_sdk.gni") |
| 21 } | 21 } |
| 22 | 22 |
| 23 # The list of net files is kept in net.gypi. Read it. | 23 # The list of net files is kept in net.gypi. Read it. |
| 24 gypi_values = exec_script("//build/gypi_to_gn.py", | 24 gypi_values = exec_script("//build/gypi_to_gn.py", |
| 25 [ rebase_path("net.gypi") ], | 25 [ rebase_path("net.gypi") ], |
| 26 "scope", | 26 "scope", |
| 27 [ "net.gypi" ]) | 27 [ "net.gypi" ]) |
| 28 | 28 |
| 29 # Disable Kerberos on ChromeOS, iOS, and Chromecast, at least for now. | 29 # Disable Kerberos on ChromeOS, iOS, Chromecast and headless, at least for now. |
| 30 # It needs configuration (krb5.conf and so on). | 30 # It needs configuration (krb5.conf and so on). |
| 31 use_kerberos = !is_chromeos && !is_ios && !is_chromecast | 31 use_kerberos = !is_chromeos && !is_ios && !is_chromecast && !is_headless |
| 32 | 32 |
| 33 # The way the cache uses mmap() is inefficient on some Android devices. If | 33 # The way the cache uses mmap() is inefficient on some Android devices. If |
| 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 |
| (...skipping 1619 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1661 if (enable_websockets) { | 1661 if (enable_websockets) { |
| 1662 sources += [ "websockets/websocket_frame_perftest.cc" ] | 1662 sources += [ "websockets/websocket_frame_perftest.cc" ] |
| 1663 } | 1663 } |
| 1664 | 1664 |
| 1665 if (use_v8_in_net) { | 1665 if (use_v8_in_net) { |
| 1666 deps += [ ":net_with_v8" ] | 1666 deps += [ ":net_with_v8" ] |
| 1667 } else { | 1667 } else { |
| 1668 sources -= [ "proxy/proxy_resolver_perftest.cc" ] | 1668 sources -= [ "proxy/proxy_resolver_perftest.cc" ] |
| 1669 } | 1669 } |
| 1670 } | 1670 } |
| OLD | NEW |