OLD | NEW |
---|---|
1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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("//mojo/public/mojo_application.gni") | 5 import("//mojo/public/mojo_application.gni") |
6 import("//testing/test.gni") | 6 import("//testing/test.gni") |
7 | 7 |
8 mojo_native_application("view_manager") { | 8 source_set("common") { |
9 output_name = "view_manager_service" | |
10 | |
11 sources = [ | 9 sources = [ |
12 "main.cc", | |
13 "view_associate_table.cc", | 10 "view_associate_table.cc", |
14 "view_associate_table.h", | 11 "view_associate_table.h", |
15 "view_container_state.cc", | 12 "view_container_state.cc", |
16 "view_container_state.h", | 13 "view_container_state.h", |
17 "view_impl.cc", | 14 "view_impl.cc", |
18 "view_impl.h", | 15 "view_impl.h", |
19 "view_manager_app.cc", | 16 "view_manager_app.cc", |
20 "view_manager_app.h", | 17 "view_manager_app.h", |
21 "view_manager_impl.cc", | 18 "view_manager_impl.cc", |
22 "view_manager_impl.h", | 19 "view_manager_impl.h", |
23 "view_registry.cc", | 20 "view_registry.cc", |
24 "view_registry.h", | 21 "view_registry.h", |
25 "view_state.cc", | 22 "view_state.cc", |
26 "view_state.h", | 23 "view_state.h", |
27 "view_stub.cc", | 24 "view_stub.cc", |
28 "view_stub.h", | 25 "view_stub.h", |
29 "view_tree_impl.cc", | 26 "view_tree_impl.cc", |
30 "view_tree_impl.h", | 27 "view_tree_impl.h", |
31 "view_tree_state.cc", | 28 "view_tree_state.cc", |
32 "view_tree_state.h", | 29 "view_tree_state.h", |
33 ] | 30 ] |
34 | 31 |
35 deps = [ | 32 public_deps = [ |
36 "//base", | 33 "//base", |
37 "//mojo/application", | 34 "//mojo/application", |
38 "//mojo/common", | 35 "//mojo/common", |
39 "//mojo/common:tracing_impl", | 36 "//mojo/common:tracing_impl", |
40 "//mojo/converters/geometry", | 37 "//mojo/converters/geometry", |
41 "//mojo/environment:chromium", | |
42 "//mojo/public/cpp/bindings:bindings", | 38 "//mojo/public/cpp/bindings:bindings", |
43 "//mojo/services/geometry/cpp", | 39 "//mojo/services/geometry/cpp", |
44 "//mojo/services/gfx/composition/cpp", | 40 "//mojo/services/gfx/composition/cpp", |
45 "//mojo/services/gfx/composition/interfaces", | 41 "//mojo/services/gfx/composition/interfaces", |
46 "//mojo/services/ui/views/cpp", | 42 "//mojo/services/ui/views/cpp", |
47 "//mojo/services/ui/views/interfaces", | 43 "//mojo/services/ui/views/interfaces", |
48 ] | 44 ] |
49 } | 45 } |
46 | |
47 mojo_native_application("view_manager") { | |
48 output_name = "view_manager_service" | |
49 | |
50 sources = [ | |
51 "main.cc", | |
52 ] | |
53 | |
54 deps = [ | |
55 ":common", | |
56 "//mojo/environment:chromium", | |
57 ] | |
58 } | |
59 | |
60 mojo_native_application("view_manager_apptests") { | |
61 output_name = "view_manager_apptests" | |
62 | |
63 testonly = true | |
64 | |
65 sources = [ | |
66 "tests/mock_view_associate.cc", | |
67 "tests/mock_view_associate.h", | |
68 "tests/view_associate_table_test.cc", | |
69 "tests/view_manager_test.cc", | |
70 "tests/view_manager_test_base.cc", | |
71 "tests/view_manager_test_base.h", | |
72 ] | |
73 | |
74 deps = [ | |
75 ":common", | |
76 "//base", | |
77 "//mojo/application:test_support", | |
78 "//mojo/public/cpp/bindings", | |
79 "//mojo/public/cpp/bindings:bindings", | |
80 "//mojo/ui/associates:mocks", | |
jeffbrown
2016/05/11 23:44:16
I don't think this target exits, or isn't in this
mikejurka
2016/05/16 23:35:18
i'm re-using a pre-existing mock, it was in the tr
| |
81 "//services/ui/view_manager", | |
jeffbrown
2016/05/11 23:44:16
Do you need this dependency given that you have :c
mikejurka
2016/05/16 23:35:18
Done.
| |
82 ] | |
83 } | |
OLD | NEW |