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") | |
6 | |
5 declare_args() { | 7 declare_args() { |
6 # Select platforms automatically. Turn this off for manual control. | 8 # Select platforms automatically. Turn this off for manual control. |
7 ozone_auto_platforms = true | 9 ozone_auto_platforms = !is_chromecast |
8 } | 10 } |
9 | 11 |
10 declare_args() { | 12 declare_args() { |
11 # The platform that will be active by default. | 13 # The platform that will be active by default. |
12 ozone_platform = "" | 14 ozone_platform = "" |
13 | 15 |
14 # Enable individual platforms. | 16 # Enable individual platforms. |
15 ozone_platform_caca = false | 17 ozone_platform_caca = false |
18 ozone_platform_cast = false | |
16 ozone_platform_egltest = false | 19 ozone_platform_egltest = false |
17 ozone_platform_gbm = false | 20 ozone_platform_gbm = false |
18 ozone_platform_ozonex = false | 21 ozone_platform_ozonex = false |
19 ozone_platform_test = false | 22 ozone_platform_test = false |
20 | 23 |
21 if (ozone_auto_platforms) { | 24 if (ozone_auto_platforms) { |
22 # Use test as the default platform. | 25 # Use test as the default platform. |
23 ozone_platform = "test" | 26 ozone_platform = "test" |
24 | 27 |
25 # Build all platforms whose deps are in install-build-deps.sh. | 28 # Build all platforms whose deps are in install-build-deps.sh. |
26 # Only these platforms will be compile tested by buildbots. | 29 # Only these platforms will be compile tested by buildbots. |
27 ozone_platform_gbm = true | 30 ozone_platform_gbm = true |
28 ozone_platform_test = true | 31 ozone_platform_test = true |
29 ozone_platform_egltest = true | 32 ozone_platform_egltest = true |
33 } else if (is_chromecast) { | |
34 # The default platform used at runtime is "cast". | |
35 ozone_platform = "cast" | |
36 | |
37 # This platform is the default for all Chromecast builds. | |
38 ozone_platform_cast = true | |
39 | |
40 # For desktop Chromecast builds, override the default "cast" platform with | |
41 # --ozone_platform=egltest | |
42 ozone_platform_egltest = true | |
43 ozone_platform_ozonex = true | |
gunsch
2015/09/16 04:41:48
we also use ozone_platform_test (for our automated
slan
2015/09/16 16:13:08
Added.
| |
30 } | 44 } |
31 } | 45 } |
OLD | NEW |