Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import("//build/config/chromecast_build.gni") | 5 import("//build/config/chromecast_build.gni") |
| 6 | 6 |
| 7 declare_args() { | 7 declare_args() { |
| 8 # Select platforms automatically. Turn this off for manual control. | 8 # Select platforms automatically. Turn this off for manual control. |
| 9 ozone_auto_platforms = true | 9 ozone_auto_platforms = true |
| 10 | 10 |
| (...skipping 18 matching lines...) Expand all Loading... | |
| 29 ozone_platform_headless = false | 29 ozone_platform_headless = false |
| 30 | 30 |
| 31 if (ozone_auto_platforms) { | 31 if (ozone_auto_platforms) { |
| 32 # Use headless as the default platform. | 32 # Use headless as the default platform. |
| 33 ozone_platform = "headless" | 33 ozone_platform = "headless" |
| 34 ozone_platform_headless = true | 34 ozone_platform_headless = true |
| 35 | 35 |
| 36 if (is_chromecast) { | 36 if (is_chromecast) { |
| 37 if (!disable_display) { | 37 if (!disable_display) { |
| 38 # Enable the Cast ozone platform on all A/V Cast builds. | 38 # Enable the Cast ozone platform on all A/V Cast builds. |
| 39 # TODO(slan|halliwell): Make the default platform "cast" on desktop too. | |
| 39 ozone_platform_cast = true | 40 ozone_platform_cast = true |
| 40 | 41 |
| 41 # For desktop Chromecast builds, override the default "headless" | 42 # For desktop Chromecast builds, override the default "headless" |
| 42 # platform with --ozone-platform=egltest | 43 # platform with --ozone-platform=egltest |
| 43 # TODO(slan|halliwell): Make the default platform "cast" on desktop too. | 44 # TODO(tsunghung): When we have a functioning software-decode CMA |
| 44 if (target_os == "linux" && target_cpu != "arm") { | 45 # implementation, remove this condition - we want to be using the "cast" |
| 46 # platform on every A/V build. | |
|
halliwell
2015/12/15 02:18:46
I don't think this has anything to do with CMA. T
slan
2015/12/15 03:11:11
Right you are, TODO updated and reassigned.
| |
| 47 if (is_cast_desktop_build) { | |
| 45 ozone_platform_egltest = true | 48 ozone_platform_egltest = true |
| 46 ozone_platform_ozonex = true | 49 ozone_platform_ozonex = true |
| 47 } else { | 50 } else { |
| 48 # On device builds, enable "cast" as the default platform. | 51 # On device builds, enable "cast" as the default platform. |
| 49 ozone_platform = "cast" | 52 ozone_platform = "cast" |
| 50 } | 53 } |
| 51 } | 54 } |
| 52 } else if (is_chromeos) { | 55 } else if (is_chromeos) { |
| 53 ozone_platform_gbm = true | 56 ozone_platform_gbm = true |
| 54 ozone_platform_egltest = true | 57 ozone_platform_egltest = true |
| 55 } else { | 58 } else { |
| 56 # Build all platforms whose deps are in install-build-deps.sh. | 59 # Build all platforms whose deps are in install-build-deps.sh. |
| 57 # Only these platforms will be compile tested by buildbots. | 60 # Only these platforms will be compile tested by buildbots. |
| 58 ozone_platform_egltest = true | 61 ozone_platform_egltest = true |
| 59 } | 62 } |
| 60 } | 63 } |
| 61 } | 64 } |
| OLD | NEW |