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("//third_party/mojo/src/mojo/public/mojo_application.gni")
7 import("//testing/test.gni")
9 mojo_native_application("view_manager") {
12 "view_manager_app.cc",
20 "//mojo/common:tracing_impl",
21 "//mojo/environment:chromium",
22 "//mojo/converters/geometry",
23 "//third_party/mojo/src/mojo/public/cpp/bindings:bindings",
24 "//third_party/mojo_services/src/view_manager/public/interfaces",
25 "//third_party/mojo_services/src/window_manager/public/interfaces",
29 source_set("view_manager_lib") {
32 "access_policy_delegate.h",
33 "animation_runner.cc",
35 "animation_runner_observer.h",
36 "client_connection.cc",
37 "client_connection.h",
38 "connection_manager.cc",
39 "connection_manager.h",
40 "connection_manager_delegate.h",
41 "default_access_policy.cc",
42 "default_access_policy.h",
45 "scheduled_animation_group.cc",
46 "scheduled_animation_group.h",
49 "server_view_delegate.h",
50 "view_coordinate_conversions.cc",
51 "view_coordinate_conversions.h",
52 "view_manager_service_impl.cc",
53 "view_manager_service_impl.h",
54 "window_manager_access_policy.cc",
55 "window_manager_access_policy.h",
59 "//third_party/mojo_services/src/view_manager/public/cpp",
65 "//cc/surfaces:surface_id",
68 "//mojo/converters/geometry",
69 "//mojo/converters/input_events",
70 "//mojo/converters/surfaces",
71 "//third_party/mojo/src/mojo/public/cpp/bindings:bindings",
72 "//third_party/mojo/src/mojo/public/cpp/bindings:callback",
73 "//third_party/mojo/src/mojo/public/interfaces/application",
74 "//third_party/mojo_services/src/geometry/public/interfaces",
75 "//third_party/mojo_services/src/input_events/public/interfaces",
76 "//third_party/mojo_services/src/native_viewport/public/interfaces",
77 "//third_party/mojo_services/src/surfaces/public/cpp",
78 "//third_party/mojo_services/src/surfaces/public/interfaces",
79 "//third_party/mojo_services/src/view_manager/public/interfaces",
80 "//third_party/mojo_services/src/view_manager/public/cpp:common",
81 "//third_party/mojo_services/src/window_manager/public/interfaces",
87 source_set("test_support") {
91 "test_change_tracker.cc",
92 "test_change_tracker.h",
98 "//third_party/mojo/src/mojo/public/cpp/bindings:bindings",
99 "//third_party/mojo_services/src/geometry/public/interfaces",
100 "//third_party/mojo_services/src/view_manager/public/cpp",
101 "//third_party/mojo_services/src/view_manager/public/cpp:common",
102 "//third_party/mojo_services/src/view_manager/public/interfaces",
106 test("view_manager_service_unittests") {
108 "animation_runner_unittest.cc",
109 "scheduled_animation_group_unittest.cc",
110 "test_server_view_delegate.cc",
111 "test_server_view_delegate.h",
112 "view_coordinate_conversions_unittest.cc",
113 "view_manager_service_unittest.cc",
120 "//base/test:test_config",
121 "//mojo/converters/geometry",
122 "//mojo/converters/input_events",
123 "//third_party/mojo/src/mojo/edk/test:run_all_unittests",
124 "//mojo/environment:chromium",
125 "//third_party/mojo/src/mojo/public/cpp/bindings:bindings",
126 "//third_party/mojo/src/mojo/public/interfaces/application",
127 "//third_party/mojo_services/src/geometry/public/interfaces",
128 "//third_party/mojo_services/src/native_viewport/public/cpp:args",
129 "//third_party/mojo_services/src/view_manager/public/cpp",
130 "//third_party/mojo_services/src/view_manager/public/interfaces",
131 "//third_party/mojo_services/src/window_manager/public/interfaces",
134 "//ui/gfx:test_support",
138 if (!is_android) { # TODO(GYP) Enable on Android when osmesa links.
139 deps += [ "//third_party/mesa:osmesa" ]
143 mojo_native_application("mojo_view_manager_client_apptests") {
147 "view_manager_client_apptest.cc",
152 "//base/test:test_config",
153 "//mojo/application",
154 "//mojo/application:test_support",
155 "//third_party/mojo_services/src/geometry/public/cpp:cpp",
156 "//third_party/mojo_services/src/view_manager/public/cpp",
160 mojo_native_application("view_manager_service_apptests") {
164 "view_manager_service_apptest.cc",
170 "//mojo/application",
171 "//mojo/application:test_support",
173 "//third_party/mojo/src/mojo/public/cpp/bindings:bindings",
174 "//third_party/mojo_services/src/geometry/public/interfaces",
175 "//third_party/mojo_services/src/view_manager/public/cpp",
176 "//third_party/mojo_services/src/view_manager/public/interfaces",
177 "//third_party/mojo_services/src/window_manager/public/interfaces",