Index: build/config/ui.gni |
diff --git a/build/config/ui.gni b/build/config/ui.gni |
index e534366bf06f9169a0acfe213b106c9234a99f1f..3acf6556603f299694aa10d7796cf240b0cfb9cc 100644 |
--- a/build/config/ui.gni |
+++ b/build/config/ui.gni |
@@ -15,16 +15,17 @@ |
# to set up feature flags. |
import("//build/config/chromecast_build.gni") |
+import("//build/config/headless_build.gni") |
declare_args() { |
# Indicates if Ash is enabled. Ash is the Aura Shell which provides a |
# desktop-like environment for Aura. Requires use_aura = true |
- use_ash = (is_win || is_linux) && !is_chromecast |
+ use_ash = (is_win || is_linux) && !is_chromecast && !is_headless |
# Indicates if Ozone is enabled. Ozone is a low-level library layer for Linux |
# that does not require X11. Enabling this feature disables use of glib, x11, |
# Pango, and Cairo. Default to false on non-Chromecast builds. |
- use_ozone = is_chromecast && !is_android |
+ use_ozone = (is_chromecast || is_headless) && !is_android |
# Indicates if Aura is enabled. Aura is a low-level windowing library, sort |
# of a replacement for GDI or GTK. |