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): Get NaCl linking on other platforms.
26 # Also, see if we can always get rid of enable_nacl_untrusted and
27 # enable_pnacl and always build them if enable_nacl is true.
28 # The "is_nacl" part of the condition is needed to ensure that
29 # the untrusted code is built properly; arguably it should be
30 # guarded by "is_nacl" directly rather than enable_nacl_untrusted, but
31 # this will go away when Mac and Win are working and we can just use
32 # the commented out logic.
33 # Eventually we want this to be:
34 # enable_nacl = !is_ios && !is_android
35 enable_nacl = (is_linux && !is_chromeos && !is_component_build &&
36 current_cpu == "x64") || is_nacl
37 enable_nacl_untrusted = enable_nacl
38 enable_pnacl = enable_nacl_untrusted
40 # If debug_devtools is set to true, JavaScript files for DevTools are stored
41 # as is and loaded from disk. Otherwise, a concatenated file is stored in
42 # resources.pak. It is still possible to load JS files from disk by passing
43 # --debug-devtools cmdline switch.
44 debug_devtools = false
47 # TODO(GYP) make mac and android work.
48 enable_webrtc = !is_ios && !is_mac && !is_android
50 # Enables the Media Router.
51 enable_media_router = !is_ios && !is_android
53 # Enables proprietary codecs and demuxers; e.g. H264, MOV, AAC, and MP3.
54 proprietary_codecs = false
56 enable_configuration_policy = true
58 # Enables support for background apps.
59 enable_background = !is_ios && !is_android
61 enable_captive_portal_detection = !is_android && !is_ios
63 # Enables use of the session service, which is enabled by default.
64 # Android stores them separately on the Java side.
65 enable_session_service = !is_android && !is_ios
67 enable_plugin_installation = is_win || is_mac
69 enable_app_list = !is_ios && !is_android
71 enable_supervised_users = !is_ios
73 enable_autofill_dialog = !is_ios
75 enable_google_now = !is_ios && !is_android
77 enable_one_click_signin = is_win || is_mac || (is_linux && !is_chromeos)
79 enable_remoting = !is_ios && !is_android
81 # Enable hole punching for the protected video.
82 enable_video_hole = is_android
84 # Enables browser side Content Decryption Modules. Required for embedders
85 # (e.g. Android and ChromeCast) that use a browser side CDM.
86 enable_browser_cdms = is_android
89 # Additional dependent variables -----------------------------------------------
91 # Set the version of CLD.
92 # 0: Don't specify the version. This option is for the Finch testing.
101 # libudev usage. This currently only affects the content layer.
104 # Enable the spell checker.
105 enable_spellcheck = !is_android
107 enable_pepper_cdms = enable_plugins && (is_linux || is_mac || is_win)
109 # Enable basic printing support and UI.
110 enable_basic_printing = !is_chromeos
112 # Enable printing with print preview. It does not imply
113 # enable_basic_printing. It's possible to build Chrome with preview only.
114 enable_print_preview = !is_android
116 # The seccomp-bpf sandbox is only supported on three architectures
118 # Do not disable seccomp_bpf anywhere without talking to
119 # security@chromium.org!
120 use_seccomp_bpf = (is_linux || is_android) &&
121 (current_cpu == "x86" || current_cpu == "x64" ||
122 current_cpu == "arm" || current_cpu == "mipsel")
124 # Enable notifications everywhere except iOS.
125 enable_notifications = !is_ios
127 # TODO(brettw) this should be moved to net and only dependents get this define.
128 disable_ftp_support = is_ios
130 enable_web_speech = !is_android && !is_ios
134 enable_extensions = !is_android && !is_ios
136 # Variable safe_browsing is used to control the build time configuration for
137 # safe browsing feature. Safe browsing can be compiled in 3 different levels: 0
138 # disables it, 1 enables it fully, and 2 enables only UI and reporting features
139 # without enabling phishing and malware detection. This is useful to integrate
140 # a third party phishing/malware detection to existing safe browsing logic.
142 safe_browsing_mode = 2
144 safe_browsing_mode = 0
146 safe_browsing_mode = 1
149 enable_task_manager = !is_ios && !is_android
151 use_cups = is_desktop_linux || is_mac
153 enable_themes = !is_android && !is_ios
155 # TODO(scottmg) remove this when we've fixed printing.
156 win_pdf_metafile_for_printing = true
158 # Whether we are using the rlz library or not. Platforms like Android send
159 # rlz codes for searches but do not use the library.
160 enable_rlz = is_chrome_branded && (is_win || is_mac || is_ios || is_chromeos)
162 enable_settings_app = enable_app_list && !is_chromeos
164 enable_service_discovery = enable_mdns || is_mac
166 enable_wifi_bootstrapping = is_win || is_mac
168 # Image loader extension is enabled on ChromeOS only.
169 enable_image_loader_extension = is_chromeos
171 # Chrome OS: whether to also build the upcoming version of
172 # ChromeVox, which can then be enabled via a command-line switch.
173 enable_chromevox_next = false
175 # Use brlapi from brltty for braille display support.
176 use_brlapi = is_chromeos
178 enable_media_router = !is_ios && !is_android
180 # Option controlling the use of GConf (the classic GNOME configuration
182 # TODO(GYP) also require !embedded to enable.
183 use_gconf = is_linux && !is_chromeos
185 # Hangout services is an extension that adds extra features to Hangouts.
186 # For official GYP builds, this flag is set, it will likely need to be
187 # parameterized in the future for a similar use.
188 enable_hangout_services_extension = false
190 # Whether to back up data before sync.
191 enable_pre_sync_backup = is_win || is_mac || (is_linux && !is_chromeos)