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")
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("mus") {
36 "//mojo/application/public/cpp:sources",
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",
54 "display_manager_delegate.h",
55 "display_manager_factory.h",
56 "event_dispatcher.cc",
58 "focus_controller.cc",
60 "focus_controller_delegate.h",
63 "gesture_manager_delegate.h",
68 "server_view_delegate.h",
69 "server_view_drawn_tracker.cc",
70 "server_view_drawn_tracker.h",
71 "server_view_drawn_tracker_observer.h",
72 "server_view_observer.h",
73 "view_coordinate_conversions.cc",
74 "view_coordinate_conversions.h",
77 "view_tree_host_connection.cc",
78 "view_tree_host_connection.h",
79 "view_tree_host_delegate.h",
80 "view_tree_host_impl.cc",
81 "view_tree_host_impl.h",
84 "window_manager_access_policy.cc",
85 "window_manager_access_policy.h",
89 "//components/mus/public/cpp",
96 "//cc/surfaces:surface_id",
97 "//components/mus/gles2:gles2",
98 "//components/mus/public/cpp:common",
99 "//components/mus/public/interfaces",
100 "//components/mus/surfaces",
101 "//mojo/application/public/cpp",
102 "//mojo/common:common_base",
103 "//mojo/common:tracing_impl",
104 "//mojo/converters/geometry",
105 "//mojo/converters/ime",
106 "//mojo/converters/input_events",
107 "//mojo/converters/surfaces",
108 "//third_party/mojo/src/mojo/public/cpp/bindings:callback",
110 "//ui/events/platform",
114 "//ui/gl:test_support",
115 "//ui/mojo/events:interfaces",
116 "//ui/mojo/geometry:interfaces",
117 "//ui/platform_window:platform_impls",
118 "//ui/platform_window:platform_window",
122 source_set("test_support") {
126 "test_change_tracker.cc",
127 "test_change_tracker.h",
132 "//components/mus/public/cpp",
133 "//components/mus/public/cpp:common",
134 "//components/mus/public/interfaces",
136 "//third_party/mojo/src/mojo/public/cpp/bindings:bindings",
137 "//ui/mojo/geometry:interfaces",
145 ":view_manager_unittests",
146 "//components/mus/public/cpp/tests:mojo_view_manager_lib_unittests",
150 test("view_manager_unittests") {
152 "focus_controller_unittest.cc",
153 "gesture_manager_unittest.cc",
154 "server_view_drawn_tracker_unittest.cc",
155 "test_server_view_delegate.cc",
156 "test_server_view_delegate.h",
157 "view_coordinate_conversions_unittest.cc",
158 "view_tree_unittest.cc",
165 "//base/test:test_config",
166 "//components/mus/public/cpp:common",
167 "//components/mus/public/interfaces",
168 "//components/mus/surfaces",
169 "//mojo/application/public/interfaces",
170 "//mojo/converters/geometry",
171 "//mojo/converters/input_events",
172 "//mojo/converters/transform",
173 "//mojo/environment:chromium",
174 "//mojo/platform_handle",
175 "//third_party/mojo/src/mojo/edk/test:run_all_unittests",
176 "//third_party/mojo/src/mojo/public/cpp/bindings:bindings",
177 "//ui/mojo/geometry:interfaces",
178 "//ui/mojo/events:interfaces",
181 "//ui/gfx:test_support",
185 if (!is_android) { # TODO(GYP) Enable on Android when osmesa links.
186 deps += [ "//third_party/mesa:osmesa" ]
190 mojo_native_application("apptests") {
191 output_name = "mus_apptests"
195 "view_manager_client_apptest.cc",
196 "view_tree_apptest.cc",
202 "//base/test:test_config",
203 "//components/mus/public/cpp",
204 "//components/mus/public/cpp/tests:test_support",
205 "//components/mus/public/interfaces",
206 "//mojo/application/public/cpp:sources",
207 "//mojo/application/public/cpp:test_support",
208 "//ui/mojo/geometry:interfaces",
209 "//ui/mojo/geometry:util",
212 data_deps = [ ":mus" ]