blob: 08964df8701dcbcc83c0bb726400583c61cf6bcc [file] [log] [blame]
[email protected]f38dc102014-02-12 11:34:251# 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
12declare_args() {
[email protected]f38dc102014-02-12 11:34:2513 # Indicates if Ash is enabled. Ash is the Aura SHell which provides a
14 # desktop-like environment for Aura. Requires use_aura = true
[email protected]c48ad0b2014-02-19 20:31:5215 use_ash = is_win || is_chromeos
[email protected]f38dc102014-02-12 11:34:2516
17 # Indicates if Ozone is enabled. Ozone is a low-level library layer for Linux
18 # that does not require X11.
19 use_ozone = false
[email protected]f38dc102014-02-12 11:34:2520
[email protected]c48ad0b2014-02-19 20:31:5221 # Indicates if Aura is enabled. Aura is a low-level windowing library, sort
22 # of a replacement for GDI or GTK.
23 use_aura = is_linux || use_ozone || is_win || is_chromeos || use_ash
[email protected]f38dc102014-02-12 11:34:2524
[email protected]c48ad0b2014-02-19 20:31:5225 # True means the UI is built useing the "views" framework.
26 toolkit_views = is_win || is_chromeos || use_aura
[email protected]f38dc102014-02-12 11:34:2527}
28
29# Additional dependent variables -----------------------------------------------
30#
31# These variables depend on other variables and can't be set externally.
32
33# Indicates if the UI toolkit depends on GTK.
34toolkit_uses_gtk = is_linux && !is_chromeos && !use_aura && !use_ozone
35
36# Indicates if the UI toolkit depends on X11.
37use_x11 = is_linux && !use_ozone
38
39use_glib = is_linux