#
# However, today we have many "bad" dependencies on some of these flags from,
# e.g. base, so they need to be global.
+#
+# See also build/config/features.gni
declare_args() {
- # True means the UI is built useing the "views" framework.
- toolkit_views = false
-
- # Indicates if Ash is enabled. Ash is the Aura SHell which provides a
+ # Indicates if Ash is enabled. Ash is the Aura Shell which provides a
# desktop-like environment for Aura. Requires use_aura = true
- use_ash = false
-
- # Indicates if Aura is enabled. Aura is a low-level windowing library, sort
- # of a replacement for GDI or GTK.
- use_aura = false
+ use_ash = is_win || is_linux
# Indicates if Ozone is enabled. Ozone is a low-level library layer for Linux
# that does not require X11.
use_ozone = false
-}
-if (is_win || is_chromeos) {
- # Windows currelty implies Aura.
- # TODO(brettw) bug 342937 move to declare_args block.
- use_ash = true
- use_aura = true
-}
+ # Support ChromeOS touchpad gestures with ozone.
+ use_evdev_gestures = false
-if (is_linux || use_ozone) {
- use_aura = true
-}
+ # Indicates if Aura is enabled. Aura is a low-level windowing library, sort
+ # of a replacement for GDI or GTK.
+ use_aura = is_win || is_linux
-if (!use_aura) {
- use_ash = false # Ash needs Aura.
-}
+ # XInput2 multitouch support. Zero means disabled, nonzero indicates the
+ # minimum XI2 version. For example, use_xi2_mt=2 means XI2.2 or above.
+ use_xi2_mt = 2
-# TODO(brettw) bug 342937 move this to the declare_args block above when this
-# is supported. It would look like:
-# toolkit_views = is_win || is_chromeos || use_aura
-if (is_win || is_chromeos || use_aura) {
- toolkit_views = true
+ # True means the UI is built using the "views" framework.
+ toolkit_views = is_win || is_chromeos || use_aura
}
# Additional dependent variables -----------------------------------------------
#
# These variables depend on other variables and can't be set externally.
-# Indicates if the UI toolkit depends on GTK.
-toolkit_uses_gtk = is_linux && !is_chromeos && !use_aura && !use_ozone
+if (is_linux) {
+ use_cairo = true
+ use_pango = true
+} else {
+ use_cairo = false
+ use_pango = false
+}
+
+# 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
+
+use_default_render_theme = use_aura || is_linux
# Indicates if the UI toolkit depends on X11.
use_x11 = is_linux && !use_ozone
+use_ozone_evdev = use_ozone
+
use_glib = is_linux
+
+use_clipboard_aurax11 = is_linux && use_aura && use_x11