diff options
Diffstat (limited to 'chromium/ui/ozone/ozone.gni')
-rw-r--r-- | chromium/ui/ozone/ozone.gni | 38 |
1 files changed, 20 insertions, 18 deletions
diff --git a/chromium/ui/ozone/ozone.gni b/chromium/ui/ozone/ozone.gni index 8d12805c205..768ddf74a93 100644 --- a/chromium/ui/ozone/ozone.gni +++ b/chromium/ui/ozone/ozone.gni @@ -3,10 +3,11 @@ # found in the LICENSE file. import("//build/config/chromecast_build.gni") +import("//build/config/ui.gni") declare_args() { # Select platforms automatically. Turn this off for manual control. - ozone_auto_platforms = true + ozone_auto_platforms = use_ozone # This enables memory-mapped access to accelerated graphics buffers via the # VGEM ("virtual GEM") driver. This is currently only available on Chrome OS @@ -28,6 +29,7 @@ declare_args() { ozone_platform_ozonex = false ozone_platform_headless = false ozone_platform_x11 = false + ozone_platform_wayland = false if (ozone_auto_platforms) { # Use headless as the default platform. @@ -35,30 +37,30 @@ declare_args() { ozone_platform_headless = true if (is_chromecast) { - if (!disable_display) { - # Enable the Cast ozone platform on all A/V Cast builds. - ozone_platform_cast = true + # Enable the Cast ozone platform on all A/V Cast builds. + ozone_platform_cast = true - # For desktop Chromecast builds, override the default "headless" - # platform with --ozone-platform=egltest - # TODO(halliwell): Create a libcast_graphics implementation for desktop - # using X11, and disable these two platforms. "cast" platform should be - # the default on every A/V build. - if (is_cast_desktop_build) { - ozone_platform_egltest = true - ozone_platform_ozonex = true - } else { - # On device builds, enable "cast" as the default platform. - ozone_platform = "cast" - } + # For visual desktop Chromecast builds, override the default "headless" + # platform with --ozone-platform=x11. + # TODO(halliwell): Create a libcast_graphics implementation for desktop + # using X11, and disable this platform. + if (is_cast_desktop_build && !disable_display) { + ozone_platform_x11 = true + } else { + ozone_platform = "cast" } } else if (is_chromeos) { ozone_platform_gbm = true - ozone_platform_egltest = true + ozone_platform_x11 = true } else { # Build all platforms whose deps are in install-build-deps.sh. # Only these platforms will be compile tested by buildbots. - ozone_platform_egltest = true + ozone_platform_x11 = true } } } + +assert(use_ozone || !(ozone_platform_caca || ozone_platform_cast || + ozone_platform_egltest || ozone_platform_gbm || + ozone_platform_ozonex || ozone_platform_headless), + "Must set use_ozone to select ozone platforms") |