[email protected] | f38dc10 | 2014-02-12 11:34:25 | [diff] [blame] | 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 | declare_args() { |
[email protected] | f38dc10 | 2014-02-12 11:34:25 | [diff] [blame] | 13 | # 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] | c48ad0b | 2014-02-19 20:31:52 | [diff] [blame^] | 15 | use_ash = is_win || is_chromeos |
[email protected] | f38dc10 | 2014-02-12 11:34:25 | [diff] [blame] | 16 | |
| 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] | f38dc10 | 2014-02-12 11:34:25 | [diff] [blame] | 20 | |
[email protected] | c48ad0b | 2014-02-19 20:31:52 | [diff] [blame^] | 21 | # 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] | f38dc10 | 2014-02-12 11:34:25 | [diff] [blame] | 24 | |
[email protected] | c48ad0b | 2014-02-19 20:31:52 | [diff] [blame^] | 25 | # True means the UI is built useing the "views" framework. |
| 26 | toolkit_views = is_win || is_chromeos || use_aura |
[email protected] | f38dc10 | 2014-02-12 11:34:25 | [diff] [blame] | 27 | } |
| 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. |
| 34 | toolkit_uses_gtk = is_linux && !is_chromeos && !use_aura && !use_ozone |
| 35 | |
| 36 | # Indicates if the UI toolkit depends on X11. |
| 37 | use_x11 = is_linux && !use_ozone |
| 38 | |
| 39 | use_glib = is_linux |