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.
5 import("//build/config/ui.gni")
6 import("//testing/test.gni")
7 import("//mojo/public/mojo_application.gni")
10 import("//build/config/android/config.gni")
11 import("//build/config/android/rules.gni")
13 group("view_manager") {
21 source_set("loader") {
29 "//mojo/services/tracing:lib",
30 "//third_party/mojo/src/mojo/public/cpp/bindings",
34 mojo_native_application("view_manager") {
42 "//components/view_manager/public/interfaces",
43 "//components/view_manager/native_viewport",
44 "//mojo/application/public/cpp",
45 "//mojo/converters/geometry",
46 "//mojo/environment:chromium",
47 "//mojo/platform_handle",
48 "//third_party/mojo/src/mojo/public/cpp/bindings:bindings",
50 "//ui/events/platform",
54 data_deps = [ "//components/view_manager/surfaces" ]
61 "access_policy_delegate.h",
62 "animation_runner.cc",
64 "animation_runner_observer.h",
65 "client_connection.cc",
66 "client_connection.h",
67 "connection_manager.cc",
68 "connection_manager.h",
69 "connection_manager_delegate.h",
70 "default_access_policy.cc",
71 "default_access_policy.h",
74 "display_manager_delegate.h",
75 "display_manager_factory.h",
76 "event_dispatcher.cc",
78 "focus_controller.cc",
80 "focus_controller_delegate.h",
83 "gesture_manager_delegate.h",
84 "scheduled_animation_group.cc",
85 "scheduled_animation_group.h",
88 "server_view_delegate.h",
89 "server_view_drawn_tracker.cc",
90 "server_view_drawn_tracker.h",
91 "server_view_drawn_tracker_observer.h",
92 "server_view_observer.h",
93 "view_coordinate_conversions.cc",
94 "view_coordinate_conversions.h",
97 "view_manager_app.cc",
99 "view_manager_root_connection.cc",
100 "view_manager_root_connection.h",
101 "view_manager_root_delegate.h",
102 "view_manager_root_impl.cc",
103 "view_manager_root_impl.h",
104 "view_manager_service_impl.cc",
105 "view_manager_service_impl.h",
106 "window_manager_access_policy.cc",
107 "window_manager_access_policy.h",
111 "//components/view_manager/public/cpp",
117 "//cc/surfaces:surface_id",
118 "//components/view_manager/public/cpp:common",
119 "//components/view_manager/public/interfaces",
120 "//components/view_manager/native_viewport",
121 "//mojo/application/public/cpp",
122 "//mojo/common:tracing_impl",
123 "//mojo/converters/geometry",
124 "//mojo/converters/input_events",
125 "//mojo/converters/surfaces",
126 "//third_party/mojo/src/mojo/public/cpp/bindings:callback",
128 "//ui/events/platform",
131 "//ui/gl:test_support",
132 "//ui/mojo/events:interfaces",
133 "//ui/mojo/geometry:interfaces",
134 "//ui/platform_window:platform_impls",
138 source_set("test_support") {
142 "test_change_tracker.cc",
143 "test_change_tracker.h",
148 "//components/view_manager/public/cpp",
149 "//components/view_manager/public/cpp:common",
150 "//components/view_manager/public/interfaces",
152 "//third_party/mojo/src/mojo/public/cpp/bindings:bindings",
153 "//ui/mojo/geometry:interfaces",
161 ":view_manager_unittests",
162 "//components/view_manager/public/cpp/tests:mojo_view_manager_lib_unittests",
166 test("view_manager_unittests") {
168 "animation_runner_unittest.cc",
169 "focus_controller_unittest.cc",
170 "gesture_manager_unittest.cc",
171 "scheduled_animation_group_unittest.cc",
172 "server_view_drawn_tracker_unittest.cc",
173 "test_server_view_delegate.cc",
174 "test_server_view_delegate.h",
175 "view_coordinate_conversions_unittest.cc",
176 "view_manager_service_unittest.cc",
183 "//base/test:test_config",
184 "//components/view_manager/public/cpp:common",
185 "//components/view_manager/public/interfaces",
186 "//mojo/application/public/interfaces",
187 "//mojo/converters/geometry",
188 "//mojo/converters/input_events",
189 "//mojo/environment:chromium",
190 "//mojo/platform_handle",
191 "//third_party/mojo/src/mojo/edk/test:run_all_unittests",
192 "//third_party/mojo/src/mojo/public/cpp/bindings:bindings",
193 "//ui/mojo/geometry:interfaces",
194 "//ui/mojo/events:interfaces",
197 "//ui/gfx:test_support",
201 if (!is_android) { # TODO(GYP) Enable on Android when osmesa links.
202 deps += [ "//third_party/mesa:osmesa" ]
206 mojo_native_application("apptests") {
207 output_name = "view_manager_apptests"
211 "view_manager_client_apptest.cc",
212 "view_manager_service_apptest.cc",
218 "//base/test:test_config",
219 "//components/view_manager/public/cpp",
220 "//components/view_manager/public/cpp/tests:test_support",
221 "//components/view_manager/public/interfaces",
222 "//mojo/application/public/cpp:test_support",
223 "//ui/mojo/geometry:interfaces",
224 "//ui/mojo/geometry:util",
227 data_deps = [ ":view_manager" ]