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.
13 # True means the UI is built useing the "views" framework.
16 # Indicates if Ash is enabled. Ash is the Aura SHell which provides a
17 # desktop-like environment for Aura. Requires use_aura = true
20 # Indicates if Aura is enabled. Aura is a low-level windowing library, sort
21 # of a replacement for GDI or GTK.
24 # Indicates if Ozone is enabled. Ozone is a low-level library layer for Linux
25 # that does not require X11.
29 if (is_win || is_chromeos) {
30 # Windows currelty implies Aura.
31 # TODO(brettw) bug 342937 move to declare_args block.
36 if (is_linux || use_ozone) {
41 use_ash = false # Ash needs Aura.
44 # TODO(brettw) bug 342937 move this to the declare_args block above when this
45 # is supported. It would look like:
46 # toolkit_views = is_win || is_chromeos || use_aura
47 if (is_win || is_chromeos || use_aura) {
51 # Additional dependent variables -----------------------------------------------
53 # These variables depend on other variables and can't be set externally.
55 # Indicates if the UI toolkit depends on GTK.
56 toolkit_uses_gtk = is_linux && !is_chromeos && !use_aura && !use_ozone
58 # Indicates if the UI toolkit depends on X11.
59 use_x11 = is_linux && !use_ozone