OLD | NEW |
---|---|
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 The Chromium Authors. All rights reserved. |
spang
2015/10/29 15:46:35
don't update copyright
altimin
2015/10/29 16:06:10
Done.
| |
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_eglheadless = 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 ozone_platform_headless = false | |
spang
2015/10/29 15:46:35
dupe
altimin
2015/10/29 16:06:10
Done.
| |
30 | 31 |
31 if (ozone_auto_platforms) { | 32 if (ozone_auto_platforms) { |
32 if (is_chromecast) { | 33 if (is_chromecast) { |
33 # The default platform used at runtime is "cast". | 34 # The default platform used at runtime is "cast". |
34 ozone_platform = "cast" | 35 ozone_platform = "cast" |
35 ozone_platform_cast = true | 36 ozone_platform_cast = true |
36 ozone_platform_test = true | 37 ozone_platform_headless = true |
37 | 38 |
38 # For desktop Chromecast builds, override the default "cast" platform with | 39 # For desktop Chromecast builds, override the default "cast" platform with |
39 # --ozone_platform=egltest | 40 # --ozone_platform=eglheadless |
40 if (target_os == "linux" && target_cpu != "arm") { | 41 if (target_os == "linux" && target_cpu != "arm") { |
41 ozone_platform_egltest = true | 42 ozone_platform_eglheadless = true |
42 ozone_platform_ozonex = true | 43 ozone_platform_ozonex = true |
43 } | 44 } |
44 } else { | 45 } else { |
45 # Use test as the default platform. | 46 # Use headless as the default platform. |
46 ozone_platform = "test" | 47 ozone_platform = "headless" |
47 | 48 |
48 # Build all platforms whose deps are in install-build-deps.sh. | 49 # Build all platforms whose deps are in install-build-deps.sh. |
49 # Only these platforms will be compile tested by buildbots. | 50 # Only these platforms will be compile tested by buildbots. |
50 ozone_platform_gbm = true | 51 ozone_platform_gbm = true |
51 ozone_platform_test = true | 52 ozone_platform_headless = true |
52 ozone_platform_egltest = true | 53 ozone_platform_eglheadless = true |
53 } | 54 } |
54 } | 55 } |
55 } | 56 } |
OLD | NEW |