[Sync] Fix invalidations on Android.
[chromium-blink-merge.git] / mojo / services / view_manager / BUILD.gn
bloba96bcc68ae2640132938e800b603bc0dc1f98780
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") {
10   sources = [
11     "main.cc",
12     "view_manager_app.cc",
13     "view_manager_app.h",
14   ]
16   deps = [
17     ":view_manager_lib",
18     "//base",
19     "//mojo/application",
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",
26   ]
29 source_set("view_manager_lib") {
30   sources = [
31     "access_policy.h",
32     "access_policy_delegate.h",
33     "animation_runner.cc",
34     "animation_runner.h",
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",
43     "display_manager.cc",
44     "display_manager.h",
45     "scheduled_animation_group.cc",
46     "scheduled_animation_group.h",
47     "server_view.cc",
48     "server_view.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",
56   ]
58   public_deps = [
59     "//third_party/mojo_services/src/view_manager/public/cpp",
60   ]
62   deps = [
63     "//base",
64     "//cc/surfaces",
65     "//cc/surfaces:surface_id",
66     "//mojo/application",
67     "//mojo/common",
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",
82     "//ui/gfx",
83     "//ui/gfx/geometry",
84   ]
87 source_set("test_support") {
88   testonly = true
90   sources = [
91     "test_change_tracker.cc",
92     "test_change_tracker.h",
93   ]
95   deps = [
96     "//base",
97     "//mojo/common",
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",
103   ]
106 test("view_manager_service_unittests") {
107   sources = [
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",
114   ]
116   deps = [
117     ":test_support",
118     ":view_manager_lib",
119     "//base",
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",
132     "//testing/gtest",
133     "//ui/gfx",
134     "//ui/gfx:test_support",
135     "//ui/gfx/geometry",
136   ]
138   if (!is_android) {  # TODO(GYP) Enable on Android when osmesa links.
139     deps += [ "//third_party/mesa:osmesa" ]
140   }
143 mojo_native_application("mojo_view_manager_client_apptests") {
144   testonly = true
146   sources = [
147     "view_manager_client_apptest.cc",
148   ]
150   deps = [
151     "//base",
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",
157   ]
160 mojo_native_application("view_manager_service_apptests") {
161   testonly = true
163   sources = [
164     "view_manager_service_apptest.cc",
165   ]
167   deps = [
168     ":test_support",
169     "//base",
170     "//mojo/application",
171     "//mojo/application:test_support",
172     "//mojo/common",
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",
178   ]