| Index: ui/ozone/ozone.gni
|
| diff --git a/ui/ozone/ozone.gni b/ui/ozone/ozone.gni
|
| index e0da9196bd19159b67031bc26b6c3869a6d04dd8..74d7aa23aa201ce747d4c15f4889196921f1e74c 100644
|
| --- a/ui/ozone/ozone.gni
|
| +++ b/ui/ozone/ozone.gni
|
| @@ -2,6 +2,8 @@
|
| # Use of this source code is governed by a BSD-style license that can be
|
| # found in the LICENSE file.
|
|
|
| +import("//build/config/chromecast_build.gni")
|
| +
|
| declare_args() {
|
| # Select platforms automatically. Turn this off for manual control.
|
| ozone_auto_platforms = true
|
| @@ -13,19 +15,32 @@ declare_args() {
|
|
|
| # Enable individual platforms.
|
| ozone_platform_caca = false
|
| + ozone_platform_cast = false
|
| ozone_platform_egltest = false
|
| ozone_platform_gbm = false
|
| ozone_platform_ozonex = false
|
| ozone_platform_test = false
|
|
|
| if (ozone_auto_platforms) {
|
| - # Use test as the default platform.
|
| - ozone_platform = "test"
|
| + if (is_chromecast) {
|
| + # The default platform used at runtime is "cast".
|
| + ozone_platform = "cast"
|
| +
|
| + # For desktop Chromecast builds, override the default "cast" platform with
|
| + # --ozone_platform=egltest
|
| + ozone_platform_cast = true
|
| + ozone_platform_egltest = true
|
| + ozone_platform_ozonex = true
|
| + ozone_platform_test = true
|
| + } else {
|
| + # Use test as the default platform.
|
| + ozone_platform = "test"
|
|
|
| - # Build all platforms whose deps are in install-build-deps.sh.
|
| - # Only these platforms will be compile tested by buildbots.
|
| - ozone_platform_gbm = true
|
| - ozone_platform_test = true
|
| - ozone_platform_egltest = true
|
| + # Build all platforms whose deps are in install-build-deps.sh.
|
| + # Only these platforms will be compile tested by buildbots.
|
| + ozone_platform_gbm = true
|
| + ozone_platform_test = true
|
| + ozone_platform_egltest = true
|
| + }
|
| }
|
| }
|
|
|