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 24 matching lines...) Expand all Loading... |
35 ozone_platform_headless = true | 35 ozone_platform_headless = true |
36 | 36 |
37 if (is_chromecast) { | 37 if (is_chromecast) { |
38 # Enable the Cast ozone platform on all A/V Cast builds. | 38 # Enable the Cast ozone platform on all A/V Cast builds. |
39 ozone_platform_cast = true | 39 ozone_platform_cast = true |
40 | 40 |
41 # For visual desktop Chromecast builds, override the default "headless" | 41 # For visual desktop Chromecast builds, override the default "headless" |
42 # platform with --ozone-platform=x11. | 42 # platform with --ozone-platform=x11. |
43 # TODO(halliwell): Create a libcast_graphics implementation for desktop | 43 # TODO(halliwell): Create a libcast_graphics implementation for desktop |
44 # using X11, and disable this platform. | 44 # using X11, and disable this platform. |
45 if (is_cast_desktop_build && !disable_display) { | 45 if (is_cast_desktop_build && !is_cast_audio_only) { |
46 ozone_platform_x11 = true | 46 ozone_platform_x11 = true |
47 } else { | 47 } else { |
48 ozone_platform = "cast" | 48 ozone_platform = "cast" |
49 } | 49 } |
50 } else if (is_chromeos) { | 50 } else if (is_chromeos) { |
51 ozone_platform_gbm = true | 51 ozone_platform_gbm = true |
52 ozone_platform_x11 = true | 52 ozone_platform_x11 = true |
53 } else { | 53 } else { |
54 # Build all platforms whose deps are in install-build-deps.sh. | 54 # Build all platforms whose deps are in install-build-deps.sh. |
55 # Only these platforms will be compile tested by buildbots. | 55 # Only these platforms will be compile tested by buildbots. |
56 ozone_platform_x11 = true | 56 ozone_platform_x11 = true |
57 } | 57 } |
58 } | 58 } |
59 } | 59 } |
60 | 60 |
61 assert(use_ozone || !(ozone_platform_caca || ozone_platform_cast || | 61 assert(use_ozone || !(ozone_platform_caca || ozone_platform_cast || |
62 ozone_platform_gbm || ozone_platform_headless || | 62 ozone_platform_gbm || ozone_platform_headless || |
63 ozone_platform_x11 || ozone_platform_wayland), | 63 ozone_platform_x11 || ozone_platform_wayland), |
64 "Must set use_ozone to select ozone platforms") | 64 "Must set use_ozone to select ozone platforms") |
OLD | NEW |