| 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 # ============================================= | 5 # ============================================= |
| 6 # PLEASE DO NOT ADD MORE FLAGS TO THIS FILE | 6 # PLEASE DO NOT ADD MORE FLAGS TO THIS FILE |
| 7 # ============================================= | 7 # ============================================= |
| 8 # | 8 # |
| 9 # These flags are effectively global. Your feature flag should go near the | 9 # These flags are effectively global. Your feature flag should go near the |
| 10 # code it controls. Most of these items are here now because they control | 10 # code it controls. Most of these items are here now because they control |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 | 26 |
| 27 # Indicates if Ozone is enabled. Ozone is a low-level library layer for Linux | 27 # Indicates if Ozone is enabled. Ozone is a low-level library layer for Linux |
| 28 # that does not require X11. Enabling this feature disables use of glib, x11, | 28 # that does not require X11. Enabling this feature disables use of glib, x11, |
| 29 # Pango, and Cairo. Default to false on non-Chromecast builds. | 29 # Pango, and Cairo. Default to false on non-Chromecast builds. |
| 30 use_ozone = is_chromecast && !is_android | 30 use_ozone = is_chromecast && !is_android |
| 31 | 31 |
| 32 # Indicates if Aura is enabled. Aura is a low-level windowing library, sort | 32 # Indicates if Aura is enabled. Aura is a low-level windowing library, sort |
| 33 # of a replacement for GDI or GTK. | 33 # of a replacement for GDI or GTK. |
| 34 use_aura = is_win || is_linux | 34 use_aura = is_win || is_linux |
| 35 | 35 |
| 36 # True means the UI is built using the "views" framework. | |
| 37 toolkit_views = | |
| 38 (is_mac || is_win || is_chromeos || use_aura) && !is_chromecast | |
| 39 | |
| 40 # Whether the entire browser uses toolkit-views on Mac instead of Cocoa. | 36 # Whether the entire browser uses toolkit-views on Mac instead of Cocoa. |
| 41 mac_views_browser = false | 37 mac_views_browser = false |
| 42 | 38 |
| 43 # Whether we should use GTKv3 instead of GTKv2. | 39 # Whether we should use GTKv3 instead of GTKv2. |
| 44 use_gtk3 = false | 40 use_gtk3 = false |
| 45 | 41 |
| 46 # Whether we should use glib, a low level C utility library. | 42 # Whether we should use glib, a low level C utility library. |
| 47 use_glib = is_linux | 43 use_glib = is_linux |
| 48 | 44 |
| 49 # Indicates if Wayland display server support is enabled. | 45 # Indicates if Wayland display server support is enabled. |
| 50 enable_wayland_server = is_chromeos | 46 enable_wayland_server = is_chromeos |
| 51 | 47 |
| 52 # Enable experimental vulkan backend. | 48 # Enable experimental vulkan backend. |
| 53 enable_vulkan = false | 49 enable_vulkan = false |
| 54 } | 50 } |
| 55 | 51 |
| 52 declare_args() { |
| 53 # True means the UI is built using the "views" framework. |
| 54 toolkit_views = |
| 55 (is_mac || is_win || is_chromeos || use_aura) && !is_chromecast |
| 56 } |
| 57 |
| 56 # Additional dependent variables ----------------------------------------------- | 58 # Additional dependent variables ----------------------------------------------- |
| 57 # | 59 # |
| 58 # These variables depend on other variables and can't be set externally. | 60 # These variables depend on other variables and can't be set externally. |
| 59 | 61 |
| 60 # Use GPU accelerated cross process image transport by default on linux builds | 62 # Use GPU accelerated cross process image transport by default on linux builds |
| 61 # with the Aura window manager. | 63 # with the Aura window manager. |
| 62 ui_compositor_image_transport = use_aura && is_linux | 64 ui_compositor_image_transport = use_aura && is_linux |
| 63 | 65 |
| 64 # Indicates if the UI toolkit depends on X11. | 66 # Indicates if the UI toolkit depends on X11. |
| 65 use_x11 = is_linux && !use_ozone | 67 use_x11 = is_linux && !use_ozone |
| (...skipping 11 matching lines...) Expand all Loading... |
| 77 use_pango = false | 79 use_pango = false |
| 78 } | 80 } |
| 79 | 81 |
| 80 # Whether to use atk, the Accessibility ToolKit library | 82 # Whether to use atk, the Accessibility ToolKit library |
| 81 use_atk = is_desktop_linux && use_x11 | 83 use_atk = is_desktop_linux && use_x11 |
| 82 # ============================================= | 84 # ============================================= |
| 83 # PLEASE DO NOT ADD MORE FLAGS TO THIS FILE | 85 # PLEASE DO NOT ADD MORE FLAGS TO THIS FILE |
| 84 # ============================================= | 86 # ============================================= |
| 85 # | 87 # |
| 86 # See comment at the top. | 88 # See comment at the top. |
| OLD | NEW |