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 # TODO(GYP) make mac and android work.
37 enable_webrtc = !is_ios && !is_mac && !is_android
39 # Enables proprietary codecs and demuxers; e.g. H264, MOV, AAC, and MP3.
40 proprietary_codecs = false
43 # Additional dependent variables -----------------------------------------------
45 # Set the version of CLD.
46 # 0: Don't specify the version. This option is for the Finch testing.
55 # libudev usage. This currently only affects the content layer.
58 # Enable the spell checker.
59 enable_spellcheck = !is_android
61 enable_pepper_cdms = enable_plugins && (is_linux || is_mac || is_win)
63 enable_browser_cdms = is_android
65 # Enable basic printing support and UI.
66 enable_basic_printing = !is_chromeos
68 # Enable printing with print preview. It does not imply
69 # enable_basic_printing. It's possible to build Chrome with preview only.
70 enable_print_preview = !is_android
72 # The seccomp-bpf sandbox is only supported on three architectures
74 # Do not disable seccomp_bpf anywhere without talking to
75 # security@chromium.org!
76 use_seccomp_bpf = (is_linux || is_android) &&
77 (current_cpu == "x86" || current_cpu == "x64" ||
78 current_cpu == "arm" || current_cpu == "mipsel")
80 # Enable notifications everywhere except iOS.
81 enable_notifications = !is_ios
83 # TODO(brettw) this should be moved to net and only dependents get this define.
84 disable_ftp_support = is_ios
86 enable_web_speech = !is_android && !is_ios
90 enable_extensions = !is_android && !is_ios
92 # Variable safe_browsing is used to control the build time configuration for
93 # safe browsing feature. Safe browsing can be compiled in 3 different levels: 0
94 # disables it, 1 enables it fully, and 2 enables only UI and reporting features
95 # without enabling phishing and malware detection. This is useful to integrate
96 # a third party phishing/malware detection to existing safe browsing logic.
98 safe_browsing_mode = 2
100 safe_browsing_mode = 0
102 safe_browsing_mode = 1
105 enable_configuration_policy = true
107 # Enables support for background apps.
108 enable_background = !is_ios && !is_android
110 enable_task_manager = !is_ios && !is_android
112 use_cups = is_desktop_linux || is_mac
114 enable_themes = !is_android && !is_ios
116 # TODO(scottmg) remove this when we've fixed printing.
117 win_pdf_metafile_for_printing = true
119 enable_captive_portal_detection = !is_android && !is_ios
121 # Enables use of the session service, which is enabled by default.
122 # Android stores them separately on the Java side.
123 enable_session_service = !is_android && !is_ios
125 # Whether we are using the rlz library or not. Platforms like Android send
126 # rlz codes for searches but do not use the library.
127 enable_rlz = is_chrome_branded && (is_win || is_mac || is_ios || is_chromeos)
129 enable_plugin_installation = is_win || is_mac
131 enable_app_list = !is_ios && !is_android
132 enable_settings_app = enable_app_list && !is_chromeos
134 enable_supervised_users = !is_ios
136 enable_service_discovery = enable_mdns || is_mac
138 enable_autofill_dialog = !is_ios && !(is_android && is_android_webview_build)
140 enable_wifi_bootstrapping = is_win || is_mac
142 # Image loader extension is enabled on ChromeOS only.
143 enable_image_loader_extension = is_chromeos
145 enable_remoting = !is_ios && !is_android
147 enable_google_now = !is_ios && !is_android
149 enable_one_click_signin = is_win || is_mac || (is_linux && !is_chromeos)
151 # Chrome OS: whether to also build the upcoming version of
152 # ChromeVox, which can then be enabled via a command-line switch.
153 enable_chromevox_next = false
155 # Use brlapi from brltty for braille display support.
156 use_brlapi = is_chromeos
158 # Option controlling the use of GConf (the classic GNOME configuration
160 # TODO(GYP) also require !embedded to enable.
161 use_gconf = is_linux && !is_chromeos
163 # Hangout services is an extension that adds extra features to Hangouts.
164 # For official GYP builds, this flag is set, it will likely need to be
165 # parameterized in the future for a similar use.
166 enable_hangout_services_extension = false