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 |
11 # This enables memory-mapped access to accelerated graphics buffers via the | 11 # This enables memory-mapped access to accelerated graphics buffers via the |
12 # VGEM ("virtual GEM") driver. This is currently only available on Chrome OS | 12 # VGEM ("virtual GEM") driver. This is currently only available on Chrome OS |
13 # kernels and affects code in the GBM ozone platform. | 13 # kernels and affects code in the GBM ozone platform. |
14 # TODO(dshwang): remove this flag when all gbm hardware supports vgem map. | 14 # TODO(dshwang): remove this flag when all gbm hardware supports vgem map. |
15 # crbug.com/519587 | 15 # crbug.com/519587 |
16 use_vgem_map = false | 16 use_vgem_map = false |
17 } | 17 } |
18 | 18 |
19 declare_args() { | 19 declare_args() { |
20 # The platform that will be active by default. | 20 # The platform that will be active by default. |
21 ozone_platform = "" | 21 ozone_platform = "" |
22 | 22 |
23 # Enable individual platforms. | 23 # Enable individual platforms. |
24 ozone_platform_caca = false | 24 ozone_platform_caca = false |
25 ozone_platform_cast = false | 25 ozone_platform_cast = false |
26 ozone_platform_egltest = false | 26 ozone_platform_egltest = false |
27 ozone_platform_gbm = false | 27 ozone_platform_gbm = false |
28 ozone_platform_ozonex = false | 28 ozone_platform_ozonex = false |
29 ozone_platform_test = false | 29 ozone_platform_headless = false |
30 | 30 |
31 if (ozone_auto_platforms) { | 31 if (ozone_auto_platforms) { |
32 if (is_chromecast) { | 32 if (is_chromecast) { |
33 # The default platform used at runtime is "cast". | 33 # The default platform used at runtime is "cast". |
34 ozone_platform = "cast" | 34 ozone_platform = "cast" |
35 ozone_platform_cast = true | 35 ozone_platform_cast = true |
36 ozone_platform_test = true | 36 ozone_platform_headless = true |
37 | 37 |
38 # For desktop Chromecast builds, override the default "cast" platform with | 38 # For desktop Chromecast builds, override the default "cast" platform with |
39 # --ozone_platform=egltest | 39 # --ozone_platform=egltest |
40 if (target_os == "linux" && target_cpu != "arm") { | 40 if (target_os == "linux" && target_cpu != "arm") { |
41 ozone_platform_egltest = true | 41 ozone_platform_egltest = true |
42 ozone_platform_ozonex = true | 42 ozone_platform_ozonex = true |
43 } | 43 } |
44 } else { | 44 } else { |
45 # Use test as the default platform. | 45 # Use headless as the default platform. |
46 ozone_platform = "test" | 46 ozone_platform = "headless" |
47 | 47 |
48 # Build all platforms whose deps are in install-build-deps.sh. | 48 # Build all platforms whose deps are in install-build-deps.sh. |
49 # Only these platforms will be compile tested by buildbots. | 49 # Only these platforms will be compile tested by buildbots. |
50 ozone_platform_gbm = true | 50 ozone_platform_gbm = true |
51 ozone_platform_test = true | 51 ozone_platform_headless = true |
52 ozone_platform_egltest = true | 52 ozone_platform_egltest = true |
53 } | 53 } |
54 } | 54 } |
55 } | 55 } |
OLD | NEW |