diff options
author | slan <slan@chromium.org> | 2015-09-21 10:56:26 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-09-21 17:57:09 +0000 |
commit | 77bdc2e6b89cac63abb81da88d87bd897da67f71 (patch) | |
tree | 533a7f7d02f7ddf63dbe22d46f1cda8e6fd72a8c /ui/ozone/ozone.gni | |
parent | 2326a777f5acfc188e0493582597bd776bc55e22 (diff) | |
download | chromium_src-77bdc2e6b89cac63abb81da88d87bd897da67f71.zip chromium_src-77bdc2e6b89cac63abb81da88d87bd897da67f71.tar.gz chromium_src-77bdc2e6b89cac63abb81da88d87bd897da67f71.tar.bz2 |
Add is_chromecast to GN build.
There are several specific features needed for Chromecast builds. This
flag will be used to enable and disable these features. This flag is
the equivalent of 'embedded' and 'is_chromecast' in GYP, which mean the
same thing in practice.
BUG=516899
Bug:b/17615224
Review URL: https://codereview.chromium.org/1345013002
Cr-Commit-Position: refs/heads/master@{#349961}
Diffstat (limited to 'ui/ozone/ozone.gni')
-rw-r--r-- | ui/ozone/ozone.gni | 29 |
1 files changed, 22 insertions, 7 deletions
diff --git a/ui/ozone/ozone.gni b/ui/ozone/ozone.gni index e0da919..74d7aa2 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 + } } } |