OLD | NEW |
1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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") |
| 6 |
5 source_set("wayland") { | 7 source_set("wayland") { |
6 sources = [ | 8 sources = [ |
7 "scoped_wl_types.cc", | 9 "scoped_wl_types.cc", |
8 "scoped_wl_types.h", | 10 "scoped_wl_types.h", |
9 "server.cc", | 11 "server.cc", |
10 "server.h", | 12 "server.h", |
11 ] | 13 ] |
12 | 14 |
13 defines = [ "EXO_IMPLEMENTATION" ] | 15 defines = [ "EXO_IMPLEMENTATION" ] |
14 | 16 |
15 deps = [ | 17 deps = [ |
16 "//base", | 18 "//base", |
17 "//components/exo", | 19 "//components/exo", |
18 "//skia", | 20 "//skia", |
19 "//third_party/wayland:wayland_server", | 21 "//third_party/wayland:wayland_server", |
20 ] | 22 ] |
| 23 |
| 24 if (use_ozone) { |
| 25 deps += [ "//third_party/mesa:wayland_drm_protocol" ] |
| 26 } |
21 } | 27 } |
22 | 28 |
23 source_set("unit_tests") { | 29 source_set("unit_tests") { |
24 testonly = true | 30 testonly = true |
25 | 31 |
26 sources = [ | 32 sources = [ |
27 "server_unittest.cc", | 33 "server_unittest.cc", |
28 ] | 34 ] |
29 | 35 |
30 deps = [ | 36 deps = [ |
31 ":wayland", | 37 ":wayland", |
32 "//testing/gtest", | 38 "//testing/gtest", |
33 "//third_party/wayland:wayland_client", | 39 "//third_party/wayland:wayland_client", |
34 ] | 40 ] |
35 } | 41 } |
OLD | NEW |