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