OLD | NEW |
| (Empty) |
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 | |
3 # found in the LICENSE file. | |
4 | |
5 import("//build/config/ui.gni") | |
6 import("//mojo/public/mojo_application.gni") | |
7 import("//testing/test.gni") | |
8 | |
9 mojo_native_application("view_manager") { | |
10 sources = [ | |
11 "main.cc", | |
12 "view_manager_app.cc", | |
13 "view_manager_app.h", | |
14 "view_manager_root_connection.cc", | |
15 "view_manager_root_connection.h", | |
16 ] | |
17 | |
18 deps = [ | |
19 ":view_manager_lib", | |
20 "//base", | |
21 "//mojo/application", | |
22 "//mojo/common:tracing_impl", | |
23 "//mojo/environment:chromium", | |
24 "//mojo/converters/geometry", | |
25 "//mojo/public/cpp/bindings:bindings", | |
26 "//mojo/services/view_manager/interfaces", | |
27 "//mojo/services/window_manager/interfaces", | |
28 ] | |
29 } | |
30 | |
31 source_set("view_manager_lib") { | |
32 sources = [ | |
33 "access_policy.h", | |
34 "access_policy_delegate.h", | |
35 "animation_runner.cc", | |
36 "animation_runner.h", | |
37 "animation_runner_observer.h", | |
38 "client_connection.cc", | |
39 "client_connection.h", | |
40 "connection_manager.cc", | |
41 "connection_manager.h", | |
42 "connection_manager_delegate.h", | |
43 "default_access_policy.cc", | |
44 "default_access_policy.h", | |
45 "display_manager.cc", | |
46 "display_manager.h", | |
47 "focus_controller.cc", | |
48 "focus_controller.h", | |
49 "focus_controller_delegate.h", | |
50 "gesture_manager.cc", | |
51 "gesture_manager.h", | |
52 "gesture_manager_delegate.h", | |
53 "scheduled_animation_group.cc", | |
54 "scheduled_animation_group.h", | |
55 "server_view.cc", | |
56 "server_view.h", | |
57 "server_view_delegate.h", | |
58 "server_view_drawn_tracker.cc", | |
59 "server_view_drawn_tracker.h", | |
60 "server_view_drawn_tracker_observer.h", | |
61 "server_view_observer.h", | |
62 "view_coordinate_conversions.cc", | |
63 "view_coordinate_conversions.h", | |
64 "view_locator.cc", | |
65 "view_locator.h", | |
66 "view_manager_service_impl.cc", | |
67 "view_manager_service_impl.h", | |
68 "window_manager_access_policy.cc", | |
69 "window_manager_access_policy.h", | |
70 ] | |
71 | |
72 public_deps = [ | |
73 "//mojo/services/view_manager/cpp", | |
74 ] | |
75 | |
76 deps = [ | |
77 "//base", | |
78 "//cc/surfaces", | |
79 "//cc/surfaces:surface_id", | |
80 "//mojo/application", | |
81 "//mojo/converters/geometry", | |
82 "//mojo/converters/input_events", | |
83 "//mojo/converters/surfaces", | |
84 "//mojo/public/cpp/bindings", | |
85 "//mojo/public/cpp/bindings:callback", | |
86 "//mojo/public/interfaces/application", | |
87 "//mojo/services/geometry/interfaces", | |
88 "//mojo/services/input_events/interfaces", | |
89 "//mojo/services/native_viewport/interfaces", | |
90 "//mojo/services/surfaces/cpp", | |
91 "//mojo/services/surfaces/interfaces", | |
92 "//mojo/services/view_manager/interfaces", | |
93 "//mojo/services/view_manager/cpp:common", | |
94 "//mojo/services/window_manager/interfaces", | |
95 "//ui/gfx", | |
96 "//ui/gfx/geometry", | |
97 ] | |
98 } | |
99 | |
100 source_set("test_support") { | |
101 testonly = true | |
102 | |
103 sources = [ | |
104 "test_change_tracker.cc", | |
105 "test_change_tracker.h", | |
106 ] | |
107 | |
108 deps = [ | |
109 "//base", | |
110 "//mojo/converters/array_string", | |
111 "//mojo/public/cpp/bindings:bindings", | |
112 "//mojo/services/geometry/interfaces", | |
113 "//mojo/services/view_manager/cpp", | |
114 "//mojo/services/view_manager/cpp:common", | |
115 "//mojo/services/view_manager/interfaces", | |
116 ] | |
117 } | |
118 | |
119 test("view_manager_service_unittests") { | |
120 sources = [ | |
121 "animation_runner_unittest.cc", | |
122 "focus_controller_unittest.cc", | |
123 "gesture_manager_unittest.cc", | |
124 "scheduled_animation_group_unittest.cc", | |
125 "server_view_drawn_tracker_unittest.cc", | |
126 "test_server_view_delegate.cc", | |
127 "test_server_view_delegate.h", | |
128 "view_coordinate_conversions_unittest.cc", | |
129 "view_manager_service_unittest.cc", | |
130 ] | |
131 | |
132 deps = [ | |
133 ":test_support", | |
134 ":view_manager_lib", | |
135 "//base", | |
136 "//base/test:test_config", | |
137 "//mojo/converters/geometry", | |
138 "//mojo/converters/input_events", | |
139 "//mojo/edk/test:run_all_unittests", | |
140 "//mojo/environment:chromium", | |
141 "//mojo/public/cpp/bindings", | |
142 "//mojo/public/interfaces/application", | |
143 "//mojo/services/geometry/interfaces", | |
144 "//mojo/services/input_events/interfaces", | |
145 "//mojo/services/native_viewport/cpp:args", | |
146 "//mojo/services/view_manager/cpp", | |
147 "//mojo/services/view_manager/interfaces", | |
148 "//mojo/services/window_manager/interfaces", | |
149 "//testing/gtest", | |
150 "//ui/gfx", | |
151 "//ui/gfx:test_support", | |
152 "//ui/gfx/geometry", | |
153 ] | |
154 | |
155 if (!is_android) { # TODO(GYP) Enable on Android when osmesa links. | |
156 deps += [ "//third_party/mesa:osmesa" ] | |
157 } | |
158 } | |
159 | |
160 mojo_native_application("mojo_view_manager_client_apptests") { | |
161 testonly = true | |
162 | |
163 sources = [ | |
164 "view_manager_client_apptest.cc", | |
165 ] | |
166 | |
167 deps = [ | |
168 "//base", | |
169 "//base/test:test_config", | |
170 "//mojo/application", | |
171 "//mojo/application:test_support", | |
172 "//mojo/services/geometry/cpp", | |
173 "//mojo/services/view_manager/cpp", | |
174 ] | |
175 } | |
176 | |
177 mojo_native_application("view_manager_service_apptests") { | |
178 testonly = true | |
179 | |
180 sources = [ | |
181 "view_manager_service_apptest.cc", | |
182 ] | |
183 | |
184 deps = [ | |
185 ":test_support", | |
186 "//base", | |
187 "//mojo/application", | |
188 "//mojo/application:test_support", | |
189 "//mojo/common", | |
190 "//mojo/public/cpp/bindings", | |
191 "//mojo/services/geometry/interfaces", | |
192 "//mojo/services/view_manager/cpp", | |
193 "//mojo/services/view_manager/interfaces", | |
194 "//mojo/services/window_manager/interfaces", | |
195 ] | |
196 } | |
OLD | NEW |