2014-02-12 15:34:25 +04:00
|
|
|
# Copyright 2014 The Chromium Authors. All rights reserved.
|
|
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
|
|
# found in the LICENSE file.
|
|
|
|
|
2015-05-20 20:32:06 +03:00
|
|
|
# This file contains UI-related build flags (see features.gni for Chrome
|
|
|
|
# feature-related ones). These should theoretically be moved to the ui
|
|
|
|
# directory.
|
2014-02-12 15:34:25 +04:00
|
|
|
#
|
|
|
|
# However, today we have many "bad" dependencies on some of these flags from,
|
2015-05-20 20:32:06 +03:00
|
|
|
# e.g. base, so they need to be global to match the GYP configuration. Also,
|
|
|
|
# anything that needs a grit define must be in either this file or features.gni.
|
2014-02-25 01:29:49 +04:00
|
|
|
#
|
2015-05-20 20:32:06 +03:00
|
|
|
# PLEASE TRY TO AVOID ADDING FLAGS TO THIS FILE in cases where grit isn't
|
|
|
|
# required. See the declare_args block of BUILDCONFIG.gn for advice on how
|
|
|
|
# to set up feature flags.
|
2014-02-12 15:34:25 +04:00
|
|
|
|
|
|
|
declare_args() {
|
2014-04-12 10:47:18 +04:00
|
|
|
# Indicates if Ash is enabled. Ash is the Aura Shell which provides a
|
2014-02-12 15:34:25 +04:00
|
|
|
# desktop-like environment for Aura. Requires use_aura = true
|
2014-07-11 23:23:19 +04:00
|
|
|
use_ash = is_win || is_linux
|
2014-02-12 15:34:25 +04:00
|
|
|
|
|
|
|
# Indicates if Ozone is enabled. Ozone is a low-level library layer for Linux
|
|
|
|
# that does not require X11.
|
|
|
|
use_ozone = false
|
|
|
|
|
2014-06-10 19:58:45 +04:00
|
|
|
# Support ChromeOS touchpad gestures with ozone.
|
|
|
|
use_evdev_gestures = false
|
|
|
|
|
2014-02-20 00:31:52 +04:00
|
|
|
# Indicates if Aura is enabled. Aura is a low-level windowing library, sort
|
|
|
|
# of a replacement for GDI or GTK.
|
2014-07-11 23:23:19 +04:00
|
|
|
use_aura = is_win || is_linux
|
2014-02-12 15:34:25 +04:00
|
|
|
|
2014-04-12 10:47:18 +04:00
|
|
|
# True means the UI is built using the "views" framework.
|
2015-03-19 07:44:07 +03:00
|
|
|
toolkit_views = is_mac || is_win || is_chromeos || use_aura
|
2015-01-20 23:25:26 +03:00
|
|
|
|
2015-03-20 21:16:37 +03:00
|
|
|
# Whether the entire browser uses toolkit-views on Mac instead of Cocoa.
|
|
|
|
mac_views_browser = false
|
2014-02-12 15:34:25 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
# Additional dependent variables -----------------------------------------------
|
|
|
|
#
|
|
|
|
# These variables depend on other variables and can't be set externally.
|
|
|
|
|
2014-02-25 01:29:49 +04:00
|
|
|
# Use GPU accelerated cross process image transport by default on linux builds
|
|
|
|
# with the Aura window manager.
|
|
|
|
ui_compositor_image_transport = use_aura && is_linux
|
|
|
|
|
2015-06-05 09:03:53 +03:00
|
|
|
use_default_render_theme = use_aura && !is_android
|
2014-02-25 01:29:49 +04:00
|
|
|
|
2014-02-12 15:34:25 +04:00
|
|
|
# Indicates if the UI toolkit depends on X11.
|
|
|
|
use_x11 = is_linux && !use_ozone
|
|
|
|
|
2015-06-09 22:04:57 +03:00
|
|
|
# Whether we should use glib, a low level C utility library.
|
|
|
|
use_glib = is_linux && !use_ozone
|
|
|
|
|
|
|
|
if (is_linux && use_glib) {
|
|
|
|
use_cairo = true
|
|
|
|
use_pango = true
|
|
|
|
} else {
|
|
|
|
use_cairo = false
|
|
|
|
use_pango = false
|
|
|
|
}
|
|
|
|
|
2014-06-10 19:58:45 +04:00
|
|
|
use_ozone_evdev = use_ozone
|
|
|
|
|
2014-02-25 01:29:49 +04:00
|
|
|
use_clipboard_aurax11 = is_linux && use_aura && use_x11
|
2014-09-05 02:27:57 +04:00
|
|
|
|
2015-03-24 00:47:51 +03:00
|
|
|
enable_hidpi = is_mac || is_chromeos || is_win || is_linux
|
2015-05-23 01:01:00 +03:00
|
|
|
|
2015-06-26 22:37:49 +03:00
|
|
|
enable_topchrome_md = is_chromeos || is_win || is_linux
|