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
36 (is_linux && !is_chromeos && !is_debug && 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
85 # Additional dependent variables -----------------------------------------------
87 # Set the version of CLD.
88 # 0: Don't specify the version. This option is for the Finch testing.
97 # libudev usage. This currently only affects the content layer.
100 # Enable the spell checker.
101 enable_spellcheck = !is_android
103 enable_pepper_cdms = enable_plugins && (is_linux || is_mac || is_win)
105 enable_browser_cdms = is_android
107 # Enable basic printing support and UI.
108 enable_basic_printing = !is_chromeos
110 # Enable printing with print preview. It does not imply
111 # enable_basic_printing. It's possible to build Chrome with preview only.
112 enable_print_preview = !is_android
114 # The seccomp-bpf sandbox is only supported on three architectures
116 # Do not disable seccomp_bpf anywhere without talking to
117 # security@chromium.org!
118 use_seccomp_bpf = (is_linux || is_android) &&
119 (current_cpu == "x86" || current_cpu == "x64" ||
120 current_cpu == "arm" || current_cpu == "mipsel")
122 # Enable notifications everywhere except iOS.
123 enable_notifications = !is_ios
125 # TODO(brettw) this should be moved to net and only dependents get this define.
126 disable_ftp_support = is_ios
128 enable_web_speech = !is_android && !is_ios
132 enable_extensions = !is_android && !is_ios
134 # Variable safe_browsing is used to control the build time configuration for
135 # safe browsing feature. Safe browsing can be compiled in 3 different levels: 0
136 # disables it, 1 enables it fully, and 2 enables only UI and reporting features
137 # without enabling phishing and malware detection. This is useful to integrate
138 # a third party phishing/malware detection to existing safe browsing logic.
140 safe_browsing_mode = 2
142 safe_browsing_mode = 0
144 safe_browsing_mode = 1
147 enable_task_manager = !is_ios && !is_android
149 use_cups = is_desktop_linux || is_mac
151 enable_themes = !is_android && !is_ios
153 # TODO(scottmg) remove this when we've fixed printing.
154 win_pdf_metafile_for_printing = true
156 # Whether we are using the rlz library or not. Platforms like Android send
157 # rlz codes for searches but do not use the library.
158 enable_rlz = is_chrome_branded && (is_win || is_mac || is_ios || is_chromeos)
160 enable_settings_app = enable_app_list && !is_chromeos
162 enable_service_discovery = enable_mdns || is_mac
164 enable_wifi_bootstrapping = is_win || is_mac
166 # Image loader extension is enabled on ChromeOS only.
167 enable_image_loader_extension = is_chromeos
169 # Chrome OS: whether to also build the upcoming version of
170 # ChromeVox, which can then be enabled via a command-line switch.
171 enable_chromevox_next = false
173 # Use brlapi from brltty for braille display support.
174 use_brlapi = is_chromeos
176 enable_media_router = !is_ios && !is_android
178 # Option controlling the use of GConf (the classic GNOME configuration
180 # TODO(GYP) also require !embedded to enable.
181 use_gconf = is_linux && !is_chromeos
183 # Hangout services is an extension that adds extra features to Hangouts.
184 # For official GYP builds, this flag is set, it will likely need to be
185 # parameterized in the future for a similar use.
186 enable_hangout_services_extension = false
188 # Whether to back up data before sync.
189 enable_pre_sync_backup = is_win || is_mac || (is_linux && !is_chromeos)