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. 4 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 7# definitions. 8# 9# However, today we have many "bad" dependencies on some of these flags from, 10# e.g. base, so they need to be global. 11# 12# See also build/config/ui.gni 13 14if (is_android) { 15 import("//build/config/android/config.gni") 16} 17 18declare_args() { 19 # Multicast DNS. 20 enable_mdns = is_win || is_linux 21 22 enable_plugins = !is_android && !is_ios 23 24 # Enables Native Client support. 25 # TODO(GYP) enable this when nacl works in GN. 26 enable_nacl = false 27 #enable_nacl = (!is_ios && !is_android) 28 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 34 35 # Enables WebRTC. 36 #enable_webrtc = !is_ios TODO(GYP) use this condition when WebRTC works in 37 # the GN build. 38 enable_webrtc = false 39} 40 41# Additional dependent variables ----------------------------------------------- 42 43# Set the version of CLD. 44# 0: Don't specify the version. This option is for the Finch testing. 45# 1: Use only CLD1. 46# 2: Use only CLD2. 47if (is_android || is_ios) { 48 cld_version = 1 49} else { 50 cld_version = 2 51} 52 53# libudev usage. This currently only affects the content layer. 54use_udev = is_linux 55 56# Enable the spell checker. 57enable_spellcheck = !is_android 58 59enable_pepper_cdms = enable_plugins && (is_linux || is_mac || is_win) 60 61enable_browser_cdms = is_android 62 63# Enable printing support and UI. This variable is used to configure which 64# parts of printing will be built. 0 disables printing completely, 1 enables it 65# fully, and 2 enables only the codepath to generate a Metafile (e.g. usually 66# a PDF or EMF) and disables print preview, cloud print, UI, etc. 67if (is_android) { 68 printing_mode = 2 69} else { 70 printing_mode = 1 71} 72 73# The seccomp-bpf sandbox is only supported on three architectures 74# currently. 75# Do not disable seccomp_bpf anywhere without talking to 76# security@chromium.org! 77use_seccomp_bpf = (is_linux || is_android) && 78 (cpu_arch == "x86" || cpu_arch == "x64" || cpu_arch == "arm") 79 80# Enable notifications everywhere except Android/iOS. 81# Android is http://crbug.com/115320 82enable_notifications = !is_android && !is_ios 83 84# TODO(brettw) this should be moved to net and only dependents get this define. 85disable_ftp_support = is_ios 86 87enable_web_speech = (!is_android && !is_ios) 88 89use_dbus = is_linux 90 91enable_extensions = (!is_android && !is_ios) 92 93# Variable safe_browsing is used to control the build time configuration for 94# safe browsing feature. Safe browsing can be compiled in 3 different levels: 0 95# disables it, 1 enables it fully, and 2 enables only UI and reporting features 96# without enabling phishing and malware detection. This is useful to integrate 97# a third party phishing/malware detection to existing safe browsing logic. 98if (is_android) { 99 safe_browsing_mode = 2 100} else if (is_ios) { 101 safe_browsing_mode = 0 102} else { 103 safe_browsing_mode = 1 104} 105 106enable_configuration_policy = true 107 108# The data acquisition mode for CLD2. Possible values are: 109# static: CLD2 data is statically linked to the executable. 110# standalone: CLD2 data is provided in a standalone file that is 111# bundled with the executable. 112# component: CLD2 data is provided as a Chrome "component" and is 113# downloaded via the component updater. 114# 115# For more information on switching the CLD2 data source, see: 116# https://sites.google.com/a/chromium.org/dev/developers/how-tos/compact-language-detector-cld-data-source-configuration 117cld2_data_source = "static" 118 119# Enables support for background apps. 120enable_background = !is_ios && !is_android 121 122enable_task_manager = !is_ios && !is_android 123 124use_cups = is_desktop_linux || is_mac 125 126enable_themes = !is_android && !is_chromeos 127 128# TODO(scottmg) remove this when we've fixed printing. 129win_pdf_metafile_for_printing = true 130 131enable_captive_portal_detection = !is_android && !is_ios 132 133# Enables use of the session service, which is enabled by default. 134# Android stores them separately on the Java side. 135enable_session_service = !is_android && !is_ios 136 137# Whether we are using the rlz library or not. Platforms like Android send 138# rlz codes for searches but do not use the library. 139enable_rlz = is_chrome_branded && (is_win || is_mac || is_ios || is_chromeos) 140 141enable_plugin_installation = is_win || is_mac 142 143enable_app_list = !is_ios && !is_android 144enable_settings_app = enable_app_list && !is_chromeos 145 146enable_managed_users = !is_ios 147 148enable_service_discovery = enable_mdns || is_mac 149 150enable_autofill_dialog = !is_ios && !(is_android && is_android_webview_build) 151 152enable_wifi_bootstrapping = is_win || is_mac 153 154# Image loader extension is enabled on ChromeOS only. 155enable_image_loader_extension = is_chromeos 156 157enable_remoting = !is_ios && !is_android 158 159enable_google_now = !is_ios && !is_android 160 161enable_one_click_signin = is_win || is_mac || (is_linux && !is_chromeos) 162 163# Chrome OS: whether to also build the upcoming version of 164# ChromeVox, which can then be enabled via a command-line switch. 165enable_chromevox_next = false 166 167# Use brlapi from brltty for braille display support. 168use_brlapi = is_chromeos 169 170# Option controlling the use of GConf (the classic GNOME configuration 171# system). 172# TODO(GYP) also require !embedded to enable. 173use_gconf = is_linux && !is_chromeos 174