OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 import("//build/config/ui.gni") | 5 import("//build/config/ui.gni") |
6 import("//testing/test.gni") | 6 import("//testing/test.gni") |
7 import("//mojo/public/mojo_application.gni") | 7 import("//mojo/public/mojo_application.gni") |
8 | 8 |
9 if (is_android) { | 9 if (is_android) { |
10 import("//build/config/android/config.gni") | 10 import("//build/config/android/config.gni") |
11 import("//build/config/android/rules.gni") | 11 import("//build/config/android/rules.gni") |
12 | 12 |
13 source_set("view_manager") { | 13 source_set("mus") { |
14 sources = [ | 14 sources = [ |
15 "android_loader.cc", | 15 "android_loader.cc", |
16 "android_loader.h", | 16 "android_loader.h", |
17 ] | 17 ] |
18 | 18 |
19 deps = [ | 19 deps = [ |
20 ":lib", | 20 ":lib", |
21 "public/interfaces", | 21 "public/interfaces", |
22 "//mojo/application/public/cpp:sources", | 22 "//mojo/application/public/cpp:sources", |
23 "//mojo/services/tracing/public/interfaces", | 23 "//mojo/services/tracing/public/interfaces", |
24 "//mojo/shell", | 24 "//mojo/shell", |
25 "//third_party/mojo/src/mojo/public/cpp/bindings", | 25 "//third_party/mojo/src/mojo/public/cpp/bindings", |
26 ] | 26 ] |
27 } | 27 } |
28 } else { | 28 } else { |
29 mojo_native_application("view_manager") { | 29 mojo_native_application("mus") { |
30 sources = [ | 30 sources = [ |
31 "main.cc", | 31 "main.cc", |
32 ] | 32 ] |
33 | 33 |
34 deps = [ | 34 deps = [ |
35 ":lib", | 35 ":lib", |
36 "//mojo/application/public/cpp:sources", | 36 "//mojo/application/public/cpp:sources", |
37 ] | 37 ] |
38 } | 38 } |
39 } | 39 } |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 "view_tree_host_delegate.h", | 79 "view_tree_host_delegate.h", |
80 "view_tree_host_impl.cc", | 80 "view_tree_host_impl.cc", |
81 "view_tree_host_impl.h", | 81 "view_tree_host_impl.h", |
82 "view_tree_impl.cc", | 82 "view_tree_impl.cc", |
83 "view_tree_impl.h", | 83 "view_tree_impl.h", |
84 "window_manager_access_policy.cc", | 84 "window_manager_access_policy.cc", |
85 "window_manager_access_policy.h", | 85 "window_manager_access_policy.h", |
86 ] | 86 ] |
87 | 87 |
88 public_deps = [ | 88 public_deps = [ |
89 "//components/view_manager/public/cpp", | 89 "//components/mus/public/cpp", |
90 ] | 90 ] |
91 | 91 |
92 deps = [ | 92 deps = [ |
93 "//base", | 93 "//base", |
94 "//cc", | 94 "//cc", |
95 "//cc/surfaces", | 95 "//cc/surfaces", |
96 "//cc/surfaces:surface_id", | 96 "//cc/surfaces:surface_id", |
97 "//components/view_manager/gles2:gles2", | 97 "//components/mus/gles2:gles2", |
98 "//components/view_manager/public/cpp:common", | 98 "//components/mus/public/cpp:common", |
99 "//components/view_manager/public/interfaces", | 99 "//components/mus/public/interfaces", |
100 "//components/view_manager/surfaces", | 100 "//components/mus/surfaces", |
101 "//mojo/application/public/cpp", | 101 "//mojo/application/public/cpp", |
102 "//mojo/common:common_base", | 102 "//mojo/common:common_base", |
103 "//mojo/common:tracing_impl", | 103 "//mojo/common:tracing_impl", |
104 "//mojo/converters/geometry", | 104 "//mojo/converters/geometry", |
105 "//mojo/converters/ime", | 105 "//mojo/converters/ime", |
106 "//mojo/converters/input_events", | 106 "//mojo/converters/input_events", |
107 "//mojo/converters/surfaces", | 107 "//mojo/converters/surfaces", |
108 "//third_party/mojo/src/mojo/public/cpp/bindings:callback", | 108 "//third_party/mojo/src/mojo/public/cpp/bindings:callback", |
109 "//ui/events", | 109 "//ui/events", |
110 "//ui/events/platform", | 110 "//ui/events/platform", |
(...skipping 11 matching lines...) Expand all Loading... |
122 source_set("test_support") { | 122 source_set("test_support") { |
123 testonly = true | 123 testonly = true |
124 | 124 |
125 sources = [ | 125 sources = [ |
126 "test_change_tracker.cc", | 126 "test_change_tracker.cc", |
127 "test_change_tracker.h", | 127 "test_change_tracker.h", |
128 ] | 128 ] |
129 | 129 |
130 deps = [ | 130 deps = [ |
131 "//base", | 131 "//base", |
132 "//components/view_manager/public/cpp", | 132 "//components/mus/public/cpp", |
133 "//components/view_manager/public/cpp:common", | 133 "//components/mus/public/cpp:common", |
134 "//components/view_manager/public/interfaces", | 134 "//components/mus/public/interfaces", |
135 "//mojo/common", | 135 "//mojo/common", |
136 "//third_party/mojo/src/mojo/public/cpp/bindings:bindings", | 136 "//third_party/mojo/src/mojo/public/cpp/bindings:bindings", |
137 "//ui/mojo/geometry:interfaces", | 137 "//ui/mojo/geometry:interfaces", |
138 ] | 138 ] |
139 } | 139 } |
140 | 140 |
141 group("tests") { | 141 group("tests") { |
142 testonly = true | 142 testonly = true |
143 deps = [ | 143 deps = [ |
144 ":apptests", | 144 ":apptests", |
145 ":view_manager_unittests", | 145 ":view_manager_unittests", |
146 "//components/view_manager/public/cpp/tests:mojo_view_manager_lib_unittests"
, | 146 "//components/mus/public/cpp/tests:mojo_view_manager_lib_unittests", |
147 ] | 147 ] |
148 } | 148 } |
149 | 149 |
150 test("view_manager_unittests") { | 150 test("view_manager_unittests") { |
151 sources = [ | 151 sources = [ |
152 "focus_controller_unittest.cc", | 152 "focus_controller_unittest.cc", |
153 "gesture_manager_unittest.cc", | 153 "gesture_manager_unittest.cc", |
154 "server_view_drawn_tracker_unittest.cc", | 154 "server_view_drawn_tracker_unittest.cc", |
155 "test_server_view_delegate.cc", | 155 "test_server_view_delegate.cc", |
156 "test_server_view_delegate.h", | 156 "test_server_view_delegate.h", |
157 "view_coordinate_conversions_unittest.cc", | 157 "view_coordinate_conversions_unittest.cc", |
158 "view_tree_unittest.cc", | 158 "view_tree_unittest.cc", |
159 ] | 159 ] |
160 | 160 |
161 deps = [ | 161 deps = [ |
162 ":test_support", | 162 ":test_support", |
163 ":lib", | 163 ":lib", |
164 "//base", | 164 "//base", |
165 "//base/test:test_config", | 165 "//base/test:test_config", |
166 "//components/view_manager/public/cpp:common", | 166 "//components/mus/public/cpp:common", |
167 "//components/view_manager/public/interfaces", | 167 "//components/mus/public/interfaces", |
168 "//components/view_manager/surfaces", | 168 "//components/mus/surfaces", |
169 "//mojo/application/public/interfaces", | 169 "//mojo/application/public/interfaces", |
170 "//mojo/converters/geometry", | 170 "//mojo/converters/geometry", |
171 "//mojo/converters/input_events", | 171 "//mojo/converters/input_events", |
172 "//mojo/converters/transform", | 172 "//mojo/converters/transform", |
173 "//mojo/environment:chromium", | 173 "//mojo/environment:chromium", |
174 "//mojo/platform_handle", | 174 "//mojo/platform_handle", |
175 "//third_party/mojo/src/mojo/edk/test:run_all_unittests", | 175 "//third_party/mojo/src/mojo/edk/test:run_all_unittests", |
176 "//third_party/mojo/src/mojo/public/cpp/bindings:bindings", | 176 "//third_party/mojo/src/mojo/public/cpp/bindings:bindings", |
177 "//ui/mojo/geometry:interfaces", | 177 "//ui/mojo/geometry:interfaces", |
178 "//ui/mojo/events:interfaces", | 178 "//ui/mojo/events:interfaces", |
(...skipping 14 matching lines...) Expand all Loading... |
193 | 193 |
194 sources = [ | 194 sources = [ |
195 "view_manager_client_apptest.cc", | 195 "view_manager_client_apptest.cc", |
196 "view_tree_apptest.cc", | 196 "view_tree_apptest.cc", |
197 ] | 197 ] |
198 | 198 |
199 deps = [ | 199 deps = [ |
200 ":test_support", | 200 ":test_support", |
201 "//base", | 201 "//base", |
202 "//base/test:test_config", | 202 "//base/test:test_config", |
203 "//components/view_manager/public/cpp", | 203 "//components/mus/public/cpp", |
204 "//components/view_manager/public/cpp/tests:test_support", | 204 "//components/mus/public/cpp/tests:test_support", |
205 "//components/view_manager/public/interfaces", | 205 "//components/mus/public/interfaces", |
206 "//mojo/application/public/cpp:sources", | 206 "//mojo/application/public/cpp:sources", |
207 "//mojo/application/public/cpp:test_support", | 207 "//mojo/application/public/cpp:test_support", |
208 "//ui/mojo/geometry:interfaces", | 208 "//ui/mojo/geometry:interfaces", |
209 "//ui/mojo/geometry:util", | 209 "//ui/mojo/geometry:util", |
210 ] | 210 ] |
211 | 211 |
212 data_deps = [ ":view_manager" ] | 212 data_deps = [ ":mus" ] |
213 } | 213 } |
OLD | NEW |