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
3 # found in the LICENSE file.
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
9 # However, today we have many "bad" dependencies on some of these flags from,
10 # e.g. base, so they need to be global.
12 # See also build/config/ui.gni
15 import("//build/config/android/config.gni")
20 enable_mdns = is_win || is_linux
22 enable_plugins = !is_android && !is_ios
24 # Enables Native Client support.
25 # TODO(GYP) enable this when nacl works in GN.
27 #enable_nacl = (!is_ios && !is_android)
29 # If debug_devtools is set to true, JavaScript files for DevTools are stored
30 # as is and loaded from disk. Otherwise, a concatenated file is stored in
31 # resources.pak. It is still possible to load JS files from disk by passing
32 # --debug-devtools cmdline switch.
33 debug_devtools = false
36 #enable_webrtc = !is_ios TODO(GYP) use this condition when WebRTC works in
41 # Additional dependent variables -----------------------------------------------
43 # Set the version of CLD.
44 # 0: Don't specify the version. This option is for the Finch testing.
47 if (is_android || is_ios) {
53 # libudev usage. This currently only affects the content layer.
56 # Enable the spell checker.
57 enable_spellcheck = !is_android
59 enable_pepper_cdms = enable_plugins && (is_linux || is_mac || is_win)
61 # Enable printing support and UI. This variable is used to configure which
62 # parts of printing will be built. 0 disables printing completely, 1 enables it
63 # fully, and 2 enables only the codepath to generate a Metafile (e.g. usually
64 # a PDF or EMF) and disables print preview, cloud print, UI, etc.
71 # The seccomp-bpf sandbox is only supported on three architectures
73 # Do not disable seccomp_bpf anywhere without talking to
74 # security@chromium.org!
75 use_seccomp_bpf = (is_linux || is_android) &&
76 (cpu_arch == "x86" || cpu_arch == "x64" || cpu_arch == "arm")
78 # Enable notifications everywhere except Android/iOS.
79 # Android is http://crbug.com/115320
80 enable_notifications = !is_android && !is_ios
82 # TODO(brettw) this should be moved to net and only dependents get this define.
83 disable_ftp_support = is_ios
85 enable_web_speech = (!is_android && !is_ios)
89 enable_extensions = (!is_android && !is_ios)
91 # Variable safe_browsing is used to control the build time configuration for
92 # safe browsing feature. Safe browsing can be compiled in 3 different levels: 0
93 # disables it, 1 enables it fully, and 2 enables only UI and reporting features
94 # without enabling phishing and malware detection. This is useful to integrate
95 # a third party phishing/malware detection to existing safe browsing logic.
97 safe_browsing_mode = 2
99 safe_browsing_mode = 0
101 safe_browsing_mode = 1
104 enable_configuration_policy = true
106 # The data acquisition mode for CLD2. Possible values are:
107 # static: CLD2 data is statically linked to the executable.
108 # standalone: CLD2 data is provided in a standalone file that is
109 # bundled with the executable.
110 # component: CLD2 data is provided as a Chrome "component" and is
111 # downloaded via the component updater.
113 # For more information on switching the CLD2 data source, see:
114 # https://sites.google.com/a/chromium.org/dev/developers/how-tos/compact-language-detector-cld-data-source-configuration
115 cld2_data_source = "static"
117 # Enables support for background apps.
118 enable_background = !is_ios && !is_android
120 enable_task_manager = !is_ios && !is_android
122 use_cups = is_desktop_linux || is_mac
124 enable_themes = !is_android && !is_chromeos
126 # TODO(scottmg) remove this when we've fixed printing.
127 win_pdf_metafile_for_printing = true
129 enable_captive_portal_detection = !is_android && !is_ios
131 # Enables use of the session service, which is enabled by default.
132 # Android stores them separately on the Java side.
133 enable_session_service = !is_android && !is_ios
135 # Whether we are using the rlz library or not. Platforms like Android send
136 # rlz codes for searches but do not use the library.
137 enable_rlz = is_chrome_branded && (is_win || is_mac || is_ios || is_chromeos)
139 enable_plugin_installation = is_win || is_mac
141 enable_app_list = !is_ios && !is_android
142 enable_settings_app = enable_app_list && !is_chromeos
144 enable_managed_users = !is_ios
146 enable_service_discovery = enable_mdns || is_mac
148 enable_autofill_dialog = !is_ios && !(is_android && is_android_webview_build)
150 enable_wifi_bootstrapping = is_win || is_mac
152 # Image loader extension is enabled on ChromeOS only.
153 enable_image_loader_extension = is_chromeos
155 enable_remoting = !is_ios && !is_android
157 enable_google_now = !is_ios && !is_android
159 enable_one_click_signin = is_win || is_mac || (is_linux && !is_chromeos)
161 # Chrome OS: whether to also build the upcoming version of
162 # ChromeVox, which can then be enabled via a command-line switch.
163 enable_chromevox_next = false
165 # Use brlapi from brltty for braille display support.
166 use_brlapi = is_chromeos
168 # Option controlling the use of GConf (the classic GNOME configuration
170 # TODO(GYP) also require !embedded to enable.
171 use_gconf = is_linux && !is_chromeos