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

Side by Side Diff: build/config/features.gni

Issue 356303002: First pass on adding a chrome/browser GN target. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « build/config/BUILD.gn ('k') | build/secondary/tools/grit/grit_rule.gni » ('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 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 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 # This file contains UI-related build flags. It should theoretically be in the 5 # This file contains UI-related build flags. It should theoretically be in the
6 # src/ui directory and only things that depend on the ui module should get the 6 # src/ui directory and only things that depend on the ui module should get the
7 # definitions. 7 # definitions.
8 # 8 #
9 # However, today we have many "bad" dependencies on some of these flags from, 9 # However, today we have many "bad" dependencies on some of these flags from,
10 # e.g. base, so they need to be global. 10 # e.g. base, so they need to be global.
11 # 11 #
12 # See also build/config/ui.gni 12 # See also build/config/ui.gni
13 13
14 if (is_android) {
15 import("//build/config/android/config.gni")
16 }
17
14 declare_args() { 18 declare_args() {
15 # Multicast DNS. 19 # Multicast DNS.
16 enable_mdns = is_win || is_linux 20 enable_mdns = is_win || is_linux
17 21
18 enable_plugins = !is_android || !is_ios 22 enable_plugins = !is_android || !is_ios
19 23
20 # Enables Native Client support. 24 # Enables Native Client support.
21 enable_nacl = (!is_ios && !is_android) 25 enable_nacl = (!is_ios && !is_android)
22 } 26 }
23 27
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 # disables it, 1 enables it fully, and 2 enables only UI and reporting features 85 # disables it, 1 enables it fully, and 2 enables only UI and reporting features
82 # without enabling phishing and malware detection. This is useful to integrate 86 # without enabling phishing and malware detection. This is useful to integrate
83 # a third party phishing/malware detection to existing safe browsing logic. 87 # a third party phishing/malware detection to existing safe browsing logic.
84 if (is_android) { 88 if (is_android) {
85 safe_browsing_mode = 2 89 safe_browsing_mode = 2
86 } else if (is_ios) { 90 } else if (is_ios) {
87 safe_browsing_mode = 0 91 safe_browsing_mode = 0
88 } else { 92 } else {
89 safe_browsing_mode = 1 93 safe_browsing_mode = 1
90 } 94 }
95
96 enable_configuration_policy = true
97
98 # The data acquisition mode for CLD2. Possible values are:
99 # static: CLD2 data is statically linked to the executable.
100 # standalone: CLD2 data is provided in a standalone file that is
101 # bundled with the executable.
102 # component: CLD2 data is provided as a Chrome "component" and is
103 # downloaded via the component updater.
104 #
105 # For more information on switching the CLD2 data source, see:
106 # https://sites.google.com/a/chromium.org/dev/developers/how-tos/compact-langu age-detector-cld-data-source-configuration
107 cld2_data_source = "static"
108
109 # Enables support for background apps.
110 enable_background = !is_ios && !is_android
111
112 enable_task_manager = !is_ios && !is_android
113
114 use_cups = is_desktop_linux || is_mac
115
116 enable_themes = !is_android && !is_chromeos
117
118 # TODO(scottmg) remove this when we've fixed printing.
119 win_pdf_metafile_for_printing = true
120
121 enable_captive_portal_detection = !is_android && !is_ios
122
123 # Enables use of the session service, which is enabled by default.
124 # Android stores them separately on the Java side.
125 enable_session_service = !is_android && !is_ios
126
127 # Whether we are using the rlz library or not. Platforms like Android send
128 # rlz codes for searches but do not use the library.
129 enable_rlz = is_chrome_branded && (is_win || is_mac || is_ios || is_chromeos)
130
131 enable_plugin_installation = is_win || is_mac
132
133 enable_app_list = !is_ios && !is_android
134
135 enable_managed_users = !is_ios
136
137 enable_service_discovery = enable_mdns || is_mac
138
139 enable_autofill_dialog = !is_ios && !(is_android && is_android_webview_build)
140
141 enable_wifi_bootstrapping = is_win || is_mac
OLDNEW
« no previous file with comments | « build/config/BUILD.gn ('k') | build/secondary/tools/grit/grit_rule.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698