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 declare_args() { | 9 pkg_config("wayland-egl") { |
10 use_wayland_egl = true | 10 packages = [ "wayland-egl" ] |
11 } | |
12 | |
13 if (use_wayland_egl) { | |
14 pkg_config("wayland-egl") { | |
15 packages = [ "wayland-egl" ] | |
16 } | |
17 } | 11 } |
18 | 12 |
19 source_set("wayland") { | 13 source_set("wayland") { |
20 sources = [ | 14 sources = [ |
21 "client_native_pixmap_factory_wayland.cc", | 15 "client_native_pixmap_factory_wayland.cc", |
22 "client_native_pixmap_factory_wayland.h", | 16 "client_native_pixmap_factory_wayland.h", |
| 17 "gl_surface_wayland.cc", |
| 18 "gl_surface_wayland.h", |
23 "ozone_platform_wayland.cc", | 19 "ozone_platform_wayland.cc", |
24 "ozone_platform_wayland.h", | 20 "ozone_platform_wayland.h", |
25 "wayland_connection.cc", | 21 "wayland_connection.cc", |
26 "wayland_connection.h", | 22 "wayland_connection.h", |
27 "wayland_object.cc", | 23 "wayland_object.cc", |
28 "wayland_object.h", | 24 "wayland_object.h", |
29 "wayland_output.cc", | 25 "wayland_output.cc", |
30 "wayland_output.h", | 26 "wayland_output.h", |
31 "wayland_pointer.cc", | 27 "wayland_pointer.cc", |
32 "wayland_pointer.h", | 28 "wayland_pointer.h", |
(...skipping 12 matching lines...) Expand all Loading... |
45 "//ui/events/platform", | 41 "//ui/events/platform", |
46 "//ui/gfx", | 42 "//ui/gfx", |
47 "//ui/gfx/geometry", | 43 "//ui/gfx/geometry", |
48 "//ui/ozone:ozone_base", | 44 "//ui/ozone:ozone_base", |
49 "//ui/ozone/common", | 45 "//ui/ozone/common", |
50 "//ui/platform_window", | 46 "//ui/platform_window", |
51 ] | 47 ] |
52 | 48 |
53 defines = [ "OZONE_IMPLEMENTATION" ] | 49 defines = [ "OZONE_IMPLEMENTATION" ] |
54 | 50 |
55 if (use_wayland_egl) { | 51 configs += [ |
56 sources += [ | 52 ":wayland-egl", |
57 "gl_surface_wayland.cc", | 53 "//third_party/khronos:khronos_headers", |
58 "gl_surface_wayland.h", | 54 ] |
59 ] | |
60 configs += [ | |
61 ":wayland-egl", | |
62 "//third_party/khronos:khronos_headers", | |
63 ] | |
64 defines += [ "USE_WAYLAND_EGL" ] | |
65 } | |
66 } | 55 } |
67 | 56 |
68 source_set("wayland_unittests") { | 57 source_set("wayland_unittests") { |
69 testonly = true | 58 testonly = true |
70 | 59 |
71 sources = [ | 60 sources = [ |
72 "fake_server.cc", | 61 "fake_server.cc", |
73 "fake_server.h", | 62 "fake_server.h", |
74 "mock_platform_window_delegate.cc", | 63 "mock_platform_window_delegate.cc", |
75 "wayland_connection_unittest.cc", | 64 "wayland_connection_unittest.cc", |
76 "wayland_pointer_unittest.cc", | 65 "wayland_pointer_unittest.cc", |
77 "wayland_surface_factory_unittest.cc", | 66 "wayland_surface_factory_unittest.cc", |
78 "wayland_test.cc", | 67 "wayland_test.cc", |
79 "wayland_test.h", | 68 "wayland_test.h", |
80 "wayland_window_unittest.cc", | 69 "wayland_window_unittest.cc", |
81 ] | 70 ] |
82 | 71 |
83 deps = [ | 72 deps = [ |
84 ":wayland", | 73 ":wayland", |
85 "//testing/gmock", | 74 "//testing/gmock", |
86 "//testing/gtest", | 75 "//testing/gtest", |
87 "//third_party/wayland:wayland_server", | 76 "//third_party/wayland:wayland_server", |
88 "//third_party/wayland-protocols:xdg_shell_protocol", | 77 "//third_party/wayland-protocols:xdg_shell_protocol", |
89 "//ui/gfx:test_support", | 78 "//ui/gfx:test_support", |
90 "//ui/ozone:platform", | 79 "//ui/ozone:platform", |
91 ] | 80 ] |
92 | 81 |
93 defines = [ "WL_HIDE_DEPRECATED" ] | 82 defines = [ "WL_HIDE_DEPRECATED" ] |
94 } | 83 } |
OLD | NEW |