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 source_set("view_manager") {
22 "//mojo/application/public/cpp:sources",
23 "//mojo/services/tracing/public/interfaces",
25 "//third_party/mojo/src/mojo/public/cpp/bindings",
29 mojo_native_application("view_manager") {
36 "//mojo/application/public/cpp:sources",
44 "access_policy_delegate.h",
45 "animation_runner.cc",
47 "animation_runner_observer.h",
48 "client_connection.cc",
49 "client_connection.h",
50 "connection_manager.cc",
51 "connection_manager.h",
52 "connection_manager_delegate.h",
53 "default_access_policy.cc",
54 "default_access_policy.h",
57 "display_manager_delegate.h",
58 "display_manager_factory.h",
59 "event_dispatcher.cc",
61 "focus_controller.cc",
63 "focus_controller_delegate.h",
66 "gesture_manager_delegate.h",
67 "scheduled_animation_group.cc",
68 "scheduled_animation_group.h",
71 "server_view_delegate.h",
72 "server_view_drawn_tracker.cc",
73 "server_view_drawn_tracker.h",
74 "server_view_drawn_tracker_observer.h",
75 "server_view_observer.h",
76 "view_coordinate_conversions.cc",
77 "view_coordinate_conversions.h",
80 "view_manager_app.cc",
82 "view_tree_host_connection.cc",
83 "view_tree_host_connection.h",
84 "view_tree_host_delegate.h",
85 "view_tree_host_impl.cc",
86 "view_tree_host_impl.h",
89 "window_manager_access_policy.cc",
90 "window_manager_access_policy.h",
94 "//components/view_manager/public/cpp",
101 "//cc/surfaces:surface_id",
102 "//components/view_manager/gles2:gles2",
103 "//components/view_manager/public/cpp:common",
104 "//components/view_manager/public/interfaces",
105 "//components/view_manager/surfaces",
106 "//mojo/application/public/cpp",
107 "//mojo/common:common_base",
108 "//mojo/common:tracing_impl",
109 "//mojo/converters/geometry",
110 "//mojo/converters/ime",
111 "//mojo/converters/input_events",
112 "//mojo/converters/surfaces",
113 "//third_party/mojo/src/mojo/public/cpp/bindings:callback",
115 "//ui/events/platform",
119 "//ui/gl:test_support",
120 "//ui/mojo/events:interfaces",
121 "//ui/mojo/geometry:interfaces",
122 "//ui/platform_window:platform_impls",
123 "//ui/platform_window:platform_window",
127 source_set("test_support") {
131 "test_change_tracker.cc",
132 "test_change_tracker.h",
137 "//components/view_manager/public/cpp",
138 "//components/view_manager/public/cpp:common",
139 "//components/view_manager/public/interfaces",
141 "//third_party/mojo/src/mojo/public/cpp/bindings:bindings",
142 "//ui/mojo/geometry:interfaces",
150 ":view_manager_unittests",
151 "//components/view_manager/public/cpp/tests:mojo_view_manager_lib_unittests",
155 test("view_manager_unittests") {
157 "animation_runner_unittest.cc",
158 "focus_controller_unittest.cc",
159 "gesture_manager_unittest.cc",
160 "scheduled_animation_group_unittest.cc",
161 "server_view_drawn_tracker_unittest.cc",
162 "test_server_view_delegate.cc",
163 "test_server_view_delegate.h",
164 "view_coordinate_conversions_unittest.cc",
165 "view_tree_unittest.cc",
172 "//base/test:test_config",
173 "//components/view_manager/public/cpp:common",
174 "//components/view_manager/public/interfaces",
175 "//components/view_manager/surfaces",
176 "//mojo/application/public/interfaces",
177 "//mojo/converters/geometry",
178 "//mojo/converters/input_events",
179 "//mojo/converters/transform",
180 "//mojo/environment:chromium",
181 "//mojo/platform_handle",
182 "//third_party/mojo/src/mojo/edk/test:run_all_unittests",
183 "//third_party/mojo/src/mojo/public/cpp/bindings:bindings",
184 "//ui/mojo/geometry:interfaces",
185 "//ui/mojo/events:interfaces",
188 "//ui/gfx:test_support",
192 if (!is_android) { # TODO(GYP) Enable on Android when osmesa links.
193 deps += [ "//third_party/mesa:osmesa" ]
197 mojo_native_application("apptests") {
198 output_name = "view_manager_apptests"
202 "view_manager_client_apptest.cc",
203 "view_tree_apptest.cc",
209 "//base/test:test_config",
210 "//components/view_manager/public/cpp",
211 "//components/view_manager/public/cpp/tests:test_support",
212 "//components/view_manager/public/interfaces",
213 "//mojo/application/public/cpp:sources",
214 "//mojo/application/public/cpp:test_support",
215 "//ui/mojo/geometry:interfaces",
216 "//ui/mojo/geometry:util",
219 data_deps = [ ":view_manager" ]