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_test = false |
30 ozone_platform_headless = false | |
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_test = 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=egltest |
40 if (target_os == "linux" && target_cpu != "arm") { | 41 if (target_os == "linux" && target_cpu != "arm") { |
41 ozone_platform_egltest = true | 42 ozone_platform_egltest = true |
42 ozone_platform_ozonex = true | 43 ozone_platform_ozonex = true |
43 } | 44 } |
45 } else if (is_headless) { | |
46 ozone_platform = "headless" | |
Sami
2015/10/26 16:47:07
This means we won't have to override the platform
altimin
2015/10/26 17:24:21
Yes!
| |
47 ozone_platform_headless = true | |
44 } else { | 48 } else { |
45 # Use test as the default platform. | 49 # Use test as the default platform. |
46 ozone_platform = "test" | 50 ozone_platform = "test" |
47 | 51 |
48 # Build all platforms whose deps are in install-build-deps.sh. | 52 # Build all platforms whose deps are in install-build-deps.sh. |
49 # Only these platforms will be compile tested by buildbots. | 53 # Only these platforms will be compile tested by buildbots. |
50 ozone_platform_gbm = true | 54 ozone_platform_gbm = true |
51 ozone_platform_test = true | 55 ozone_platform_test = true |
52 ozone_platform_egltest = true | 56 ozone_platform_egltest = true |
53 } | 57 } |
54 } | 58 } |
55 } | 59 } |
OLD | NEW |