summaryrefslogtreecommitdiffstats
path: root/ui/ozone/ozone.gni
diff options
context:
space:
mode:
authorslan <slan@chromium.org>2015-11-13 09:46:49 -0800
committerCommit bot <commit-bot@chromium.org>2015-11-13 17:47:41 +0000
commit93f59d1d9032abbd9791652f4dcbbdff98ac60e3 (patch)
tree531e57b2cdf7bbc558e13b658ad72a0c5df125e5 /ui/ozone/ozone.gni
parentecdc43285aed600c3b48ea91d0ff45931d28d62e (diff)
downloadchromium_src-93f59d1d9032abbd9791652f4dcbbdff98ac60e3.zip
chromium_src-93f59d1d9032abbd9791652f4dcbbdff98ac60e3.tar.gz
chromium_src-93f59d1d9032abbd9791652f4dcbbdff98ac60e3.tar.bz2
[Chromecast] Audio-only builds should not enable "cast" ozone platform.
Currently this is being configured in infrastructure. Remove the complexity of setting up an audio build by setting the "headless" platform to default for "disable_display" builds. BUG= Review URL: https://codereview.chromium.org/1442643005 Cr-Commit-Position: refs/heads/master@{#359578}
Diffstat (limited to 'ui/ozone/ozone.gni')
-rw-r--r--ui/ozone/ozone.gni23
1 files changed, 14 insertions, 9 deletions
diff --git a/ui/ozone/ozone.gni b/ui/ozone/ozone.gni
index 15e909d..a1fe2f8 100644
--- a/ui/ozone/ozone.gni
+++ b/ui/ozone/ozone.gni
@@ -30,16 +30,21 @@ declare_args() {
if (ozone_auto_platforms) {
if (is_chromecast) {
- # The default platform used at runtime is "cast".
- ozone_platform = "cast"
- ozone_platform_cast = true
ozone_platform_headless = true
-
- # For desktop Chromecast builds, override the default "cast" platform with
- # --ozone_platform=egltest
- if (target_os == "linux" && target_cpu != "arm") {
- ozone_platform_egltest = true
- ozone_platform_ozonex = true
+ if (disable_display) {
+ # Audio-only builds should use the "headless" platform by default.
+ ozone_platform = "headless"
+ } else {
+ # Builds with video should default to the "cast" platform.
+ ozone_platform_cast = true
+ ozone_platform = "cast"
+
+ # For desktop Chromecast builds, override the default "cast" platform with
+ # --ozone_platform=egltest
+ if (target_os == "linux" && target_cpu != "arm") {
+ ozone_platform_egltest = true
+ ozone_platform_ozonex = true
+ }
}
} else {
# Use headless as the default platform.