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 import("//build/config/ui.gni") | 6 import("//build/config/ui.gni") |
7 | 7 |
8 declare_args() { | 8 declare_args() { |
9 # Select platforms automatically. Turn this off for manual control. | 9 # Select platforms automatically. Turn this off for manual control. |
10 ozone_auto_platforms = use_ozone | 10 ozone_auto_platforms = use_ozone |
(...skipping 11 matching lines...) Expand all Loading... |
22 ozone_platform = "" | 22 ozone_platform = "" |
23 | 23 |
24 # Enable individual platforms. | 24 # Enable individual platforms. |
25 ozone_platform_caca = false | 25 ozone_platform_caca = false |
26 ozone_platform_cast = false | 26 ozone_platform_cast = false |
27 ozone_platform_egltest = false | 27 ozone_platform_egltest = false |
28 ozone_platform_gbm = false | 28 ozone_platform_gbm = false |
29 ozone_platform_ozonex = false | 29 ozone_platform_ozonex = false |
30 ozone_platform_headless = false | 30 ozone_platform_headless = false |
31 ozone_platform_x11 = false | 31 ozone_platform_x11 = false |
| 32 ozone_platform_wayland = false |
32 | 33 |
33 if (ozone_auto_platforms) { | 34 if (ozone_auto_platforms) { |
34 # Use headless as the default platform. | 35 # Use headless as the default platform. |
35 ozone_platform = "headless" | 36 ozone_platform = "headless" |
36 ozone_platform_headless = true | 37 ozone_platform_headless = true |
37 | 38 |
38 if (is_chromecast) { | 39 if (is_chromecast) { |
39 if (!disable_display) { | 40 if (!disable_display) { |
40 # Enable the Cast ozone platform on all A/V Cast builds. | 41 # Enable the Cast ozone platform on all A/V Cast builds. |
41 ozone_platform_cast = true | 42 ozone_platform_cast = true |
(...skipping 19 matching lines...) Expand all Loading... |
61 # Only these platforms will be compile tested by buildbots. | 62 # Only these platforms will be compile tested by buildbots. |
62 ozone_platform_egltest = true | 63 ozone_platform_egltest = true |
63 } | 64 } |
64 } | 65 } |
65 } | 66 } |
66 | 67 |
67 assert(use_ozone || !(ozone_platform_caca || ozone_platform_cast || | 68 assert(use_ozone || !(ozone_platform_caca || ozone_platform_cast || |
68 ozone_platform_egltest || ozone_platform_gbm || | 69 ozone_platform_egltest || ozone_platform_gbm || |
69 ozone_platform_ozonex || ozone_platform_headless), | 70 ozone_platform_ozonex || ozone_platform_headless), |
70 "Must set use_ozone to select ozone platforms") | 71 "Must set use_ozone to select ozone platforms") |
OLD | NEW |