OLD | NEW |
1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 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 visibility = [ "//ui/ozone/*" ] | 5 visibility = [ "//ui/ozone/*" ] |
6 | 6 |
7 import("//build/config/linux/pkg_config.gni") | 7 import("//build/config/linux/pkg_config.gni") |
8 | 8 |
9 pkg_config("wayland-egl") { | 9 pkg_config("wayland-egl") { |
10 packages = [ "wayland-egl" ] | 10 packages = [ "wayland-egl" ] |
11 } | 11 } |
12 | 12 |
13 source_set("wayland") { | 13 source_set("wayland") { |
14 sources = [ | 14 sources = [ |
15 "client_native_pixmap_factory_wayland.cc", | 15 "client_native_pixmap_factory_wayland.cc", |
16 "client_native_pixmap_factory_wayland.h", | 16 "client_native_pixmap_factory_wayland.h", |
17 "gl_surface_wayland.cc", | 17 "gl_surface_wayland.cc", |
18 "gl_surface_wayland.h", | 18 "gl_surface_wayland.h", |
19 "ozone_platform_wayland.cc", | 19 "ozone_platform_wayland.cc", |
20 "ozone_platform_wayland.h", | 20 "ozone_platform_wayland.h", |
21 "wayland_connection.cc", | 21 "wayland_connection.cc", |
22 "wayland_connection.h", | 22 "wayland_connection.h", |
| 23 "wayland_keyboard.cc", |
| 24 "wayland_keyboard.h", |
23 "wayland_object.cc", | 25 "wayland_object.cc", |
24 "wayland_object.h", | 26 "wayland_object.h", |
25 "wayland_output.cc", | 27 "wayland_output.cc", |
26 "wayland_output.h", | 28 "wayland_output.h", |
27 "wayland_pointer.cc", | 29 "wayland_pointer.cc", |
28 "wayland_pointer.h", | 30 "wayland_pointer.h", |
29 "wayland_surface_factory.cc", | 31 "wayland_surface_factory.cc", |
30 "wayland_surface_factory.h", | 32 "wayland_surface_factory.h", |
31 "wayland_window.cc", | 33 "wayland_window.cc", |
32 "wayland_window.h", | 34 "wayland_window.h", |
33 ] | 35 ] |
34 | 36 |
35 deps = [ | 37 deps = [ |
36 "//base", | 38 "//base", |
37 "//skia", | 39 "//skia", |
38 "//third_party/wayland:wayland_client", | 40 "//third_party/wayland:wayland_client", |
39 "//third_party/wayland-protocols:xdg_shell_protocol", | 41 "//third_party/wayland-protocols:xdg_shell_protocol", |
| 42 "//ui/base:ui_features", |
40 "//ui/display", | 43 "//ui/display", |
41 "//ui/events", | 44 "//ui/events", |
| 45 "//ui/events/ozone:events_ozone_evdev", |
| 46 "//ui/events/ozone:events_ozone_layout", |
42 "//ui/events/platform", | 47 "//ui/events/platform", |
43 "//ui/gfx", | 48 "//ui/gfx", |
44 "//ui/gfx/geometry", | 49 "//ui/gfx/geometry", |
45 "//ui/ozone:ozone_base", | 50 "//ui/ozone:ozone_base", |
46 "//ui/ozone/common", | 51 "//ui/ozone/common", |
47 "//ui/platform_window", | 52 "//ui/platform_window", |
48 ] | 53 ] |
49 | 54 |
50 defines = [ "OZONE_IMPLEMENTATION" ] | 55 defines = [ "OZONE_IMPLEMENTATION" ] |
51 | 56 |
52 configs += [ | 57 configs += [ |
53 ":wayland-egl", | 58 ":wayland-egl", |
54 "//third_party/khronos:khronos_headers", | 59 "//third_party/khronos:khronos_headers", |
55 ] | 60 ] |
56 } | 61 } |
57 | 62 |
58 source_set("wayland_unittests") { | 63 source_set("wayland_unittests") { |
59 testonly = true | 64 testonly = true |
60 | 65 |
61 sources = [ | 66 sources = [ |
62 "fake_server.cc", | 67 "fake_server.cc", |
63 "fake_server.h", | 68 "fake_server.h", |
64 "mock_platform_window_delegate.cc", | 69 "mock_platform_window_delegate.cc", |
65 "wayland_connection_unittest.cc", | 70 "wayland_connection_unittest.cc", |
| 71 "wayland_keyboard_unittest.cc", |
66 "wayland_pointer_unittest.cc", | 72 "wayland_pointer_unittest.cc", |
67 "wayland_surface_factory_unittest.cc", | 73 "wayland_surface_factory_unittest.cc", |
68 "wayland_test.cc", | 74 "wayland_test.cc", |
69 "wayland_test.h", | 75 "wayland_test.h", |
70 "wayland_window_unittest.cc", | 76 "wayland_window_unittest.cc", |
71 ] | 77 ] |
72 | 78 |
73 deps = [ | 79 deps = [ |
74 ":wayland", | 80 ":wayland", |
75 "//testing/gmock", | 81 "//testing/gmock", |
76 "//testing/gtest", | 82 "//testing/gtest", |
77 "//third_party/wayland:wayland_server", | 83 "//third_party/wayland:wayland_server", |
78 "//third_party/wayland-protocols:xdg_shell_protocol", | 84 "//third_party/wayland-protocols:xdg_shell_protocol", |
79 "//ui/gfx:test_support", | 85 "//ui/gfx:test_support", |
80 "//ui/ozone:platform", | 86 "//ui/ozone:platform", |
81 ] | 87 ] |
82 | 88 |
83 defines = [ "WL_HIDE_DEPRECATED" ] | 89 defines = [ "WL_HIDE_DEPRECATED" ] |
84 } | 90 } |
OLD | NEW |