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

Side by Side Diff: net/BUILD.gn

Issue 1345013002: Add is_chromecast to GN build. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Rebase + ui changes. Created 5 years, 3 months 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
« no previous file with comments | « media/midi/BUILD.gn ('k') | ui/ozone/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/compiler/compiler.gni") 6 import("//build/config/compiler/compiler.gni")
6 import("//build/config/crypto.gni") 7 import("//build/config/crypto.gni")
7 import("//build/config/features.gni") 8 import("//build/config/features.gni")
8 import("//build/config/ui.gni") 9 import("//build/config/ui.gni")
9 import("//build/module_args/v8.gni") 10 import("//build/module_args/v8.gni")
10 import("//testing/test.gni") 11 import("//testing/test.gni")
11 import("//third_party/icu/config.gni") 12 import("//third_party/icu/config.gni")
12 import("//third_party/protobuf/proto_library.gni") 13 import("//third_party/protobuf/proto_library.gni")
13 14
14 # TODO(cjhopman): //build/config/android/rules.gni also imports grit_rule.gni. 15 # TODO(cjhopman): //build/config/android/rules.gni also imports grit_rule.gni.
15 # Currently, that file can't be imported multiple times. Make this always 16 # Currently, that file can't be imported multiple times. Make this always
16 # imported when http://crbug.com/393704 is fixed. 17 # imported when http://crbug.com/393704 is fixed.
17 if (!is_android) { 18 if (!is_android) {
18 import("//tools/grit/grit_rule.gni") 19 import("//tools/grit/grit_rule.gni")
19 } 20 }
20 21
21 if (is_android) { 22 if (is_android) {
22 import("//build/config/android/config.gni") 23 import("//build/config/android/config.gni")
23 import("//build/config/android/rules.gni") 24 import("//build/config/android/rules.gni")
24 } else if (is_mac) { 25 } else if (is_mac) {
25 import("//build/config/mac/mac_sdk.gni") 26 import("//build/config/mac/mac_sdk.gni")
26 } 27 }
27 28
28 # The list of net files is kept in net.gypi. Read it. 29 # The list of net files is kept in net.gypi. Read it.
29 gypi_values = exec_script("//build/gypi_to_gn.py", 30 gypi_values = exec_script("//build/gypi_to_gn.py",
30 [ rebase_path("net.gypi") ], 31 [ rebase_path("net.gypi") ],
31 "scope", 32 "scope",
32 [ "net.gypi" ]) 33 [ "net.gypi" ])
33 34
34 # Disable Kerberos on ChromeOS, Android and iOS, at least for now. It needs 35 # Disable Kerberos on ChromeOS, Android, iOS, and Chromecast, at least for now.
35 # configuration (krb5.conf and so on). 36 # It needs configuration (krb5.conf and so on).
36 use_kerberos = !is_chromeos && !is_android && !is_ios 37 use_kerberos = !is_chromeos && !is_android && !is_ios && !is_chromecast
37 38
38 # The way the cache uses mmap() is inefficient on some Android devices. If 39 # The way the cache uses mmap() is inefficient on some Android devices. If
39 # this flag is set, we hackily avoid using mmap() in the disk cache. We are 40 # this flag is set, we hackily avoid using mmap() in the disk cache. We are
40 # pretty confident that mmap-ing the index would not hurt any existing x86 41 # pretty confident that mmap-ing the index would not hurt any existing x86
41 # android devices, but we cannot be so sure about the variety of ARM devices. 42 # android devices, but we cannot be so sure about the variety of ARM devices.
42 # So enable it for x86 only for now. 43 # So enable it for x86 only for now.
43 posix_avoid_mmap = is_android && current_cpu != "x86" 44 posix_avoid_mmap = is_android && current_cpu != "x86"
44 45
45 # WebSockets and socket stream code are used everywhere except iOS. 46 # WebSockets and socket stream code are used everywhere except iOS.
46 enable_websockets = !is_ios 47 enable_websockets = !is_ios
(...skipping 936 matching lines...) Expand 10 before | Expand all | Expand 10 after
983 sources = [ 984 sources = [
984 "tools/net_watcher/net_watcher.cc", 985 "tools/net_watcher/net_watcher.cc",
985 ] 986 ]
986 deps = [ 987 deps = [
987 ":net", 988 ":net",
988 ":net_with_v8", 989 ":net_with_v8",
989 "//base", 990 "//base",
990 "//build/config/sanitizers:deps", 991 "//build/config/sanitizers:deps",
991 ] 992 ]
992 993
993 if (is_desktop_linux) { 994 if (is_desktop_linux && use_gconf) {
994 configs += [ 995 configs += [
995 "//build/config/linux:gconf", 996 "//build/config/linux:gconf",
996 "//build/config/linux:glib", 997 "//build/config/linux:glib",
997 ] 998 ]
998 deps += [ "//build/linux:gio" ] 999 deps += [ "//build/linux:gio" ]
999 } 1000 }
1000 } 1001 }
1001 } 1002 }
1002 1003
1003 executable("run_testserver") { 1004 executable("run_testserver") {
(...skipping 665 matching lines...) Expand 10 before | Expand all | Expand 10 after
1669 if (enable_websockets) { 1670 if (enable_websockets) {
1670 sources += [ "websockets/websocket_frame_perftest.cc" ] 1671 sources += [ "websockets/websocket_frame_perftest.cc" ]
1671 } 1672 }
1672 1673
1673 if (use_v8_in_net) { 1674 if (use_v8_in_net) {
1674 deps += [ ":net_with_v8" ] 1675 deps += [ ":net_with_v8" ]
1675 } else { 1676 } else {
1676 sources -= [ "proxy/proxy_resolver_perftest.cc" ] 1677 sources -= [ "proxy/proxy_resolver_perftest.cc" ]
1677 } 1678 }
1678 } 1679 }
OLDNEW
« no previous file with comments | « media/midi/BUILD.gn ('k') | ui/ozone/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698