summaryrefslogtreecommitdiffstats
path: root/ui/ozone/ozone.gni
diff options
context:
space:
mode:
authorslan <slan@chromium.org>2015-12-15 21:08:06 -0800
committerCommit bot <commit-bot@chromium.org>2015-12-16 05:09:45 +0000
commit5fcffc49276168c1e80ca5f0ba6d1c13fdd8dd02 (patch)
tree640e090d824e88acb8bb8d8d29e4f43829af2601 /ui/ozone/ozone.gni
parent268de1c7f1fe74961291f6abc861a3e569642791 (diff)
downloadchromium_src-5fcffc49276168c1e80ca5f0ba6d1c13fdd8dd02.zip
chromium_src-5fcffc49276168c1e80ca5f0ba6d1c13fdd8dd02.tar.gz
chromium_src-5fcffc49276168c1e80ca5f0ba6d1c13fdd8dd02.tar.bz2
[Chromecast] Replace architecture-based conditionals with flag.
Chromecast has historically used the target architecture as a proxy for the type of device targeted (embedded vs. desktop). Looking to the future, the decisions should be made on a per-feature basis and should be independent of the architecture. Replace each of the architecture conditionals with a flag that indicates Cast is being built for desktop. BUG= Review URL: https://codereview.chromium.org/1528533002 Cr-Commit-Position: refs/heads/master@{#365452}
Diffstat (limited to 'ui/ozone/ozone.gni')
-rw-r--r--ui/ozone/ozone.gni6
1 files changed, 4 insertions, 2 deletions
diff --git a/ui/ozone/ozone.gni b/ui/ozone/ozone.gni
index 05994bd..c5855df 100644
--- a/ui/ozone/ozone.gni
+++ b/ui/ozone/ozone.gni
@@ -40,8 +40,10 @@ declare_args() {
# For desktop Chromecast builds, override the default "headless"
# platform with --ozone-platform=egltest
- # TODO(slan|halliwell): Make the default platform "cast" on desktop too.
- if (target_os == "linux" && target_cpu != "arm") {
+ # 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 {