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 17 matching lines...) Expand all Loading... |
28 ozone_platform_ozonex = false | 28 ozone_platform_ozonex = false |
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 ozone_platform_cast = true | 39 ozone_platform_cast = true |
39 | 40 |
40 # For desktop Chromecast builds, override the default "headless" platfor
m | 41 # For desktop Chromecast builds, override the default "headless" |
41 # with --ozone-platform=egltest | 42 # platform with --ozone-platform=egltest |
| 43 # TODO(slan|halliwell): Make the default platform "cast" on desktop too. |
42 if (target_os == "linux" && target_cpu != "arm") { | 44 if (target_os == "linux" && target_cpu != "arm") { |
43 ozone_platform_egltest = true | 45 ozone_platform_egltest = true |
44 ozone_platform_ozonex = true | 46 ozone_platform_ozonex = true |
| 47 } else { |
| 48 # On device builds, enable "cast" as the default platform. |
| 49 ozone_platform = "cast" |
45 } | 50 } |
46 } | 51 } |
47 } else if (is_chromeos) { | 52 } else if (is_chromeos) { |
48 ozone_platform_gbm = true | 53 ozone_platform_gbm = true |
49 ozone_platform_egltest = true | 54 ozone_platform_egltest = true |
50 } else { | 55 } else { |
51 # Build all platforms whose deps are in install-build-deps.sh. | 56 # Build all platforms whose deps are in install-build-deps.sh. |
52 # Only these platforms will be compile tested by buildbots. | 57 # Only these platforms will be compile tested by buildbots. |
53 ozone_platform_egltest = true | 58 ozone_platform_egltest = true |
54 } | 59 } |
55 } | 60 } |
56 } | 61 } |
OLD | NEW |