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/crypto.gni") | 5 import("//build/config/crypto.gni") |
6 import("//build/config/features.gni") | 6 import("//build/config/features.gni") |
7 import("//build/config/ui.gni") | 7 import("//build/config/ui.gni") |
8 import("//tools/grit/grit_rule.gni") | 8 import("//tools/grit/grit_rule.gni") |
9 | 9 |
10 if (is_android) { | 10 if (is_android) { |
11 import("//build/config/android/config.gni") | 11 import("//build/config/android/config.gni") |
12 } else if (is_mac) { | 12 } else if (is_mac) { |
13 import("//build/config/mac/mac_sdk.gni") | 13 import("//build/config/mac/mac_sdk.gni") |
14 } | 14 } |
15 | 15 |
16 # The list of net files is kept in net.gypi. Read it. | 16 # The list of net files is kept in net.gypi. Read it. |
17 gypi_values = exec_script( | 17 gypi_values = exec_script( |
18 "//build/gypi_to_gn.py", | 18 "//build/gypi_to_gn.py", |
19 [ rebase_path("net.gypi") ] | 19 [ rebase_path("net.gypi") ], |
20 "scope", | 20 "scope", |
21 [ "net.gypi" ]) | 21 [ "net.gypi" ]) |
22 | 22 |
23 # Disable Kerberos on ChromeOS, Android and iOS, at least for now. It needs | 23 # Disable Kerberos on ChromeOS, Android and iOS, at least for now. It needs |
24 # configuration (krb5.conf and so on). | 24 # configuration (krb5.conf and so on). |
25 use_kerberos = !is_chromeos && !is_android && !is_ios | 25 use_kerberos = !is_chromeos && !is_android && !is_ios |
26 | 26 |
27 # The way the cache uses mmap() is inefficient on some Android devices. If | 27 # The way the cache uses mmap() is inefficient on some Android devices. If |
28 # this flag is set, we hackily avoid using mmap() in the disk cache. We are | 28 # this flag is set, we hackily avoid using mmap() in the disk cache. We are |
29 # pretty confident that mmap-ing the index would not hurt any existing x86 | 29 # pretty confident that mmap-ing the index would not hurt any existing x86 |
(...skipping 884 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
914 | 914 |
915 if (is_android || is_linux) { | 915 if (is_android || is_linux) { |
916 executable("disk_cache_memory_test") { | 916 executable("disk_cache_memory_test") { |
917 sources = [ "tools/disk_cache_memory_test/disk_cache_memory_test.cc" ] | 917 sources = [ "tools/disk_cache_memory_test/disk_cache_memory_test.cc" ] |
918 deps = [ | 918 deps = [ |
919 ":net", | 919 ":net", |
920 "//base", | 920 "//base", |
921 ] | 921 ] |
922 } | 922 } |
923 } | 923 } |
OLD | NEW |