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/ui.gni") | 5 import("//build/config/ui.gni") |
6 import("//ui/ozone/ozone.gni") | 6 import("//ui/ozone/ozone.gni") |
7 import("//testing/test.gni") | 7 import("//testing/test.gni") |
8 | 8 |
9 assert(use_ozone) | 9 assert(use_ozone) |
10 | 10 |
11 visibility = [ ":*" ] | 11 visibility = [ ":*" ] |
12 | 12 |
13 # The list of platforms that will be built. | 13 # The list of platforms that will be built. |
14 ozone_platforms = [] | 14 ozone_platforms = [] |
15 | 15 |
16 # Extra dependencies to pull into ui/ozone for built platforms. | 16 # Extra dependencies to pull into ui/ozone for built platforms. |
17 ozone_platform_deps = [] | 17 ozone_platform_deps = [] |
18 | 18 |
19 # Extra dependencies to pull into ozone_unittests for built platforms. | 19 # Extra dependencies to pull into ozone_unittests for built platforms. |
20 ozone_platform_test_deps = [] | 20 ozone_platform_test_deps = [] |
21 | 21 |
22 if (ozone_platform_egltest) { | |
23 ozone_platforms += [ "egltest" ] | |
24 ozone_platform_deps += [ "platform/egltest" ] | |
25 } | |
26 | |
27 if (ozone_platform_headless) { | 22 if (ozone_platform_headless) { |
28 ozone_platforms += [ "headless" ] | 23 ozone_platforms += [ "headless" ] |
29 ozone_platform_deps += [ "platform/headless" ] | 24 ozone_platform_deps += [ "platform/headless" ] |
30 } | 25 } |
31 | 26 |
32 if (ozone_platform_caca) { | 27 if (ozone_platform_caca) { |
33 ozone_platforms += [ "caca" ] | 28 ozone_platforms += [ "caca" ] |
34 ozone_platform_deps += [ "platform/caca" ] | 29 ozone_platform_deps += [ "platform/caca" ] |
35 } | 30 } |
36 | 31 |
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
235 "//ui/gfx/geometry", | 230 "//ui/gfx/geometry", |
236 ] | 231 ] |
237 | 232 |
238 # Add tests of platform internals. | 233 # Add tests of platform internals. |
239 deps += ozone_platform_test_deps | 234 deps += ozone_platform_test_deps |
240 | 235 |
241 # Platform tests link ozone statically. Make sure we're not getting a | 236 # Platform tests link ozone statically. Make sure we're not getting a |
242 # 2nd copy of any code via the component. | 237 # 2nd copy of any code via the component. |
243 assert_no_deps = [ "//ui/ozone" ] | 238 assert_no_deps = [ "//ui/ozone" ] |
244 } | 239 } |
OLD | NEW |