OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 # This file contains UI-related build flags. It should theoretically be in the | 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 | 6 # src/ui directory and only things that depend on the ui module should get the |
7 # definitions. | 7 # definitions. |
8 # | 8 # |
9 # However, today we have many "bad" dependencies on some of these flags from, | 9 # However, today we have many "bad" dependencies on some of these flags from, |
10 # e.g. base, so they need to be global. | 10 # e.g. base, so they need to be global. |
(...skipping 26 matching lines...) Expand all Loading... |
37 # These variables depend on other variables and can't be set externally. | 37 # These variables depend on other variables and can't be set externally. |
38 | 38 |
39 if (is_linux) { | 39 if (is_linux) { |
40 use_cairo = true | 40 use_cairo = true |
41 use_pango = true | 41 use_pango = true |
42 } else { | 42 } else { |
43 use_cairo = false | 43 use_cairo = false |
44 use_pango = false | 44 use_pango = false |
45 } | 45 } |
46 | 46 |
47 # Indicates if the UI toolkit depends on GTK. | |
48 toolkit_uses_gtk = is_linux && !is_chromeos && !use_aura && !use_ozone | |
49 | |
50 # Use GPU accelerated cross process image transport by default on linux builds | 47 # Use GPU accelerated cross process image transport by default on linux builds |
51 # with the Aura window manager. | 48 # with the Aura window manager. |
52 ui_compositor_image_transport = use_aura && is_linux | 49 ui_compositor_image_transport = use_aura && is_linux |
53 | 50 |
54 use_default_render_theme = use_aura || is_linux | 51 use_default_render_theme = use_aura || is_linux |
55 | 52 |
56 # Indicates if the UI toolkit depends on X11. | 53 # Indicates if the UI toolkit depends on X11. |
57 use_x11 = is_linux && !use_ozone | 54 use_x11 = is_linux && !use_ozone |
58 | 55 |
59 use_glib = is_linux | 56 use_glib = is_linux |
60 | 57 |
61 use_clipboard_aurax11 = is_linux && use_aura && use_x11 | 58 use_clipboard_aurax11 = is_linux && use_aura && use_x11 |
62 | 59 |
63 ozone_platform_dri = use_ozone | 60 ozone_platform_dri = use_ozone |
OLD | NEW |