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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 # using X11, and disable this platform. | 43 # using X11, and disable this platform. |
44 if (is_cast_desktop_build && !is_cast_audio_only) { | 44 if (is_cast_desktop_build && !is_cast_audio_only) { |
45 ozone_platform_x11 = true | 45 ozone_platform_x11 = true |
46 } else { | 46 } else { |
47 ozone_platform = "cast" | 47 ozone_platform = "cast" |
48 } | 48 } |
49 } else if (is_chromeos) { | 49 } else if (is_chromeos) { |
50 ozone_platform_gbm = true | 50 ozone_platform_gbm = true |
51 ozone_platform_x11 = true | 51 ozone_platform_x11 = true |
52 ozone_platform_wayland = true | 52 ozone_platform_wayland = true |
53 } else { | 53 } else if (is_desktop_linux) { |
54 # Build all platforms whose deps are in install-build-deps.sh. | 54 ozone_platform_wayland = true |
55 # Only these platforms will be compile tested by buildbots. | |
56 ozone_platform_x11 = true | 55 ozone_platform_x11 = true |
57 } | 56 } |
58 } | 57 } |
59 } | 58 } |
60 | 59 |
61 assert(use_ozone || !(ozone_platform_cast || ozone_platform_gbm || | 60 assert(use_ozone || !(ozone_platform_cast || ozone_platform_gbm || |
62 ozone_platform_headless || ozone_platform_x11 || | 61 ozone_platform_headless || ozone_platform_x11 || |
63 ozone_platform_wayland), | 62 ozone_platform_wayland), |
64 "Must set use_ozone to select ozone platforms") | 63 "Must set use_ozone to select ozone platforms") |
OLD | NEW |