OLD | NEW |
1 # Copyright 2014 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") | 5 import("//build/config/ui.gni") |
6 import("//testing/test.gni") | 6 import("//testing/test.gni") |
7 import("//mojo/public/mojo_application.gni") | 7 import("//mojo/public/mojo_application.gni") |
8 | 8 |
9 if (is_android) { | 9 if (is_android) { |
10 import("//build/config/android/config.gni") | 10 import("//build/config/android/config.gni") |
11 import("//build/config/android/rules.gni") | 11 import("//build/config/android/rules.gni") |
(...skipping 21 matching lines...) Expand all Loading... |
33 | 33 |
34 deps = [ | 34 deps = [ |
35 ":lib", | 35 ":lib", |
36 "//mojo/application/public/cpp:sources", | 36 "//mojo/application/public/cpp:sources", |
37 ] | 37 ] |
38 } | 38 } |
39 } | 39 } |
40 | 40 |
41 source_set("lib") { | 41 source_set("lib") { |
42 sources = [ | 42 sources = [ |
43 "access_policy.h", | |
44 "access_policy_delegate.h", | |
45 "client_connection.cc", | |
46 "client_connection.h", | |
47 "connection_manager.cc", | |
48 "connection_manager.h", | |
49 "connection_manager_delegate.h", | |
50 "default_access_policy.cc", | |
51 "default_access_policy.h", | |
52 "display_manager.cc", | |
53 "display_manager.h", | |
54 "display_manager_delegate.h", | |
55 "display_manager_factory.h", | |
56 "event_dispatcher.cc", | |
57 "event_dispatcher.h", | |
58 "focus_controller.cc", | |
59 "focus_controller.h", | |
60 "focus_controller_delegate.h", | |
61 "mus_app.cc", | 43 "mus_app.cc", |
62 "mus_app.h", | 44 "mus_app.h", |
63 "server_view.cc", | |
64 "server_view.h", | |
65 "server_view_delegate.h", | |
66 "server_view_drawn_tracker.cc", | |
67 "server_view_drawn_tracker.h", | |
68 "server_view_drawn_tracker_observer.h", | |
69 "server_view_observer.h", | |
70 "view_coordinate_conversions.cc", | |
71 "view_coordinate_conversions.h", | |
72 "view_tree_host_connection.cc", | |
73 "view_tree_host_connection.h", | |
74 "view_tree_host_delegate.h", | |
75 "view_tree_host_impl.cc", | |
76 "view_tree_host_impl.h", | |
77 "view_tree_impl.cc", | |
78 "view_tree_impl.h", | |
79 "window_manager_access_policy.cc", | |
80 "window_manager_access_policy.h", | |
81 ] | 45 ] |
82 | 46 |
83 deps = [ | 47 deps = [ |
84 "//base", | 48 "//base", |
85 "//cc", | 49 "//cc", |
86 "//cc/surfaces", | 50 "//cc/surfaces", |
87 "//cc/surfaces:surface_id", | 51 "//components/mus/gles2", |
88 "//components/mus/gles2:gles2", | |
89 "//components/mus/public/cpp:common", | 52 "//components/mus/public/cpp:common", |
90 "//components/mus/public/interfaces", | 53 "//components/mus/public/interfaces", |
91 "//components/mus/surfaces", | 54 "//components/mus/surfaces", |
| 55 "//components/mus/vm:lib", |
92 "//mojo/application/public/cpp", | 56 "//mojo/application/public/cpp", |
93 "//mojo/common:common_base", | 57 "//mojo/common:common_base", |
94 "//mojo/common:tracing_impl", | 58 "//mojo/common:tracing_impl", |
95 "//mojo/converters/geometry", | |
96 "//mojo/converters/ime", | |
97 "//mojo/converters/input_events", | |
98 "//mojo/converters/surfaces", | |
99 "//third_party/mojo/src/mojo/public/cpp/bindings:callback", | |
100 "//ui/events", | 59 "//ui/events", |
101 "//ui/events/platform", | |
102 "//ui/gfx", | |
103 "//ui/gfx/geometry", | |
104 "//ui/gl:gl", | 60 "//ui/gl:gl", |
105 "//ui/gl:test_support", | 61 "//ui/gl:test_support", |
106 "//ui/mojo/events:interfaces", | |
107 "//ui/mojo/geometry:interfaces", | |
108 "//ui/platform_window:platform_impls", | 62 "//ui/platform_window:platform_impls", |
109 "//ui/platform_window:platform_window", | 63 "//ui/platform_window:platform_window", |
110 ] | 64 ] |
111 } | 65 } |
112 | |
113 source_set("test_support") { | |
114 testonly = true | |
115 | |
116 sources = [ | |
117 "test_change_tracker.cc", | |
118 "test_change_tracker.h", | |
119 ] | |
120 | |
121 deps = [ | |
122 "//base", | |
123 "//components/mus/public/cpp", | |
124 "//components/mus/public/cpp:common", | |
125 "//components/mus/public/interfaces", | |
126 "//mojo/common", | |
127 "//third_party/mojo/src/mojo/public/cpp/bindings:bindings", | |
128 "//ui/mojo/geometry:interfaces", | |
129 ] | |
130 } | |
131 | |
132 group("tests") { | |
133 testonly = true | |
134 deps = [ | |
135 ":apptests", | |
136 ":view_manager_unittests", | |
137 "//components/mus/public/cpp/tests:mojo_view_manager_lib_unittests", | |
138 ] | |
139 } | |
140 | |
141 test("view_manager_unittests") { | |
142 sources = [ | |
143 "focus_controller_unittest.cc", | |
144 "server_view_drawn_tracker_unittest.cc", | |
145 "test_server_view_delegate.cc", | |
146 "test_server_view_delegate.h", | |
147 "view_coordinate_conversions_unittest.cc", | |
148 "view_tree_unittest.cc", | |
149 ] | |
150 | |
151 deps = [ | |
152 ":test_support", | |
153 ":lib", | |
154 "//base", | |
155 "//base/test:test_config", | |
156 "//components/mus/public/cpp:common", | |
157 "//components/mus/public/interfaces", | |
158 "//components/mus/surfaces", | |
159 "//mojo/application/public/interfaces", | |
160 "//mojo/converters/geometry", | |
161 "//mojo/converters/input_events", | |
162 "//mojo/converters/transform", | |
163 "//mojo/environment:chromium", | |
164 "//mojo/platform_handle", | |
165 "//third_party/mojo/src/mojo/edk/test:run_all_unittests", | |
166 "//third_party/mojo/src/mojo/public/cpp/bindings:bindings", | |
167 "//ui/mojo/geometry:interfaces", | |
168 "//ui/mojo/events:interfaces", | |
169 "//testing/gtest", | |
170 "//ui/gfx", | |
171 "//ui/gfx:test_support", | |
172 "//ui/gfx/geometry", | |
173 ] | |
174 | |
175 if (!is_android) { # TODO(GYP) Enable on Android when osmesa links. | |
176 deps += [ "//third_party/mesa:osmesa" ] | |
177 } | |
178 } | |
179 | |
180 mojo_native_application("apptests") { | |
181 output_name = "mus_apptests" | |
182 testonly = true | |
183 | |
184 sources = [ | |
185 "view_manager_client_apptest.cc", | |
186 "view_tree_apptest.cc", | |
187 ] | |
188 | |
189 deps = [ | |
190 ":test_support", | |
191 "//base", | |
192 "//base/test:test_config", | |
193 "//components/mus/public/cpp", | |
194 "//components/mus/public/cpp/tests:test_support", | |
195 "//components/mus/public/interfaces", | |
196 "//mojo/application/public/cpp:sources", | |
197 "//mojo/application/public/cpp:test_support", | |
198 "//ui/mojo/geometry:interfaces", | |
199 "//ui/mojo/geometry:util", | |
200 ] | |
201 | |
202 data_deps = [ | |
203 ":mus", | |
204 ] | |
205 } | |
OLD | NEW |