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") |
| 6 |
5 # GYP version: mojo/mojo_services.gypi:mojo_view_manager | 7 # GYP version: mojo/mojo_services.gypi:mojo_view_manager |
6 component("view_manager") { | 8 shared_library("view_manager") { |
7 public_deps = [ | 9 output_name = "mojo_view_manager" |
8 "//mojo/services/public/cpp/view_manager:common", | 10 |
9 ] | |
10 deps = [ | 11 deps = [ |
11 "//base", | 12 "//base", |
12 "//cc/surfaces", | 13 "//cc/surfaces", |
13 "//mojo/application", | 14 "//mojo/application", |
14 "//mojo/common", | 15 "//mojo/common", |
15 "//mojo/environment:chromium", | 16 "//mojo/environment:chromium", |
16 "//mojo/public/c/system:for_component", | 17 "//mojo/public/c/system:for_shared_library", |
17 "//mojo/public/cpp/bindings", | 18 "//mojo/public/cpp/bindings", |
18 "//mojo/public/interfaces/application", | 19 "//mojo/public/interfaces/application", |
19 "//mojo/services/public/cpp/geometry", | 20 "//mojo/services/public/cpp/geometry", |
20 "//mojo/services/public/cpp/input_events", | 21 "//mojo/services/public/cpp/input_events", |
21 "//mojo/services/public/cpp/surfaces", | 22 "//mojo/services/public/cpp/surfaces", |
22 "//mojo/services/public/interfaces/geometry", | 23 "//mojo/services/public/interfaces/geometry", |
23 "//mojo/services/public/interfaces/input_events", | 24 "//mojo/services/public/interfaces/input_events", |
24 "//mojo/services/public/interfaces/native_viewport", | 25 "//mojo/services/public/interfaces/native_viewport", |
25 "//mojo/services/public/interfaces/surfaces", | 26 "//mojo/services/public/interfaces/surfaces", |
26 "//mojo/services/public/interfaces/view_manager", | 27 "//mojo/services/public/interfaces/view_manager", |
(...skipping 10 matching lines...) Expand all Loading... |
37 | 38 |
38 sources = [ | 39 sources = [ |
39 "access_policy.h", | 40 "access_policy.h", |
40 "access_policy_delegate.h", | 41 "access_policy_delegate.h", |
41 "connection_manager.cc", | 42 "connection_manager.cc", |
42 "connection_manager.h", | 43 "connection_manager.h", |
43 "default_access_policy.cc", | 44 "default_access_policy.cc", |
44 "default_access_policy.h", | 45 "default_access_policy.h", |
45 "display_manager.cc", | 46 "display_manager.cc", |
46 "display_manager.h", | 47 "display_manager.h", |
47 "ids.h", | |
48 "main.cc", | 48 "main.cc", |
49 "server_view.cc", | 49 "server_view.cc", |
50 "server_view.h", | 50 "server_view.h", |
51 "server_view_delegate.h", | 51 "server_view_delegate.h", |
52 "view_manager_export.h", | 52 "view_manager_export.h", |
53 "view_manager_init_service_context.cc", | 53 "view_manager_init_service_context.cc", |
54 "view_manager_init_service_context.h", | 54 "view_manager_init_service_context.h", |
55 "view_manager_init_service_impl.cc", | 55 "view_manager_init_service_impl.cc", |
56 "view_manager_init_service_impl.h", | 56 "view_manager_init_service_impl.h", |
57 "view_manager_service_impl.cc", | 57 "view_manager_service_impl.cc", |
58 "view_manager_service_impl.h", | 58 "view_manager_service_impl.h", |
59 "window_manager_access_policy.cc", | 59 "window_manager_access_policy.cc", |
60 "window_manager_access_policy.h", | 60 "window_manager_access_policy.h", |
61 ] | 61 ] |
62 } | 62 } |
63 | 63 |
64 # GYP version: mojo/mojo_services.gypi:mojo_view_manager_unittests | 64 # GYP version: mojo/mojo_services.gypi:mojo_view_manager_unittests |
65 test("mojo_view_manager_unittests") { | 65 test("mojo_view_manager_unittests") { |
66 deps = [ | 66 deps = [ |
67 ":view_manager", | |
68 "//base", | 67 "//base", |
69 "//base/test:test_support", | 68 "//base/test:test_support", |
70 "//mojo/application", | 69 "//mojo/application", |
71 "//mojo/application_manager", | 70 "//mojo/application_manager", |
72 "//mojo/environment:chromium", | 71 "//mojo/environment:chromium", |
73 "//mojo/public/cpp/bindings", | 72 "//mojo/public/cpp/bindings", |
74 "//mojo/services/public/cpp/input_events", | 73 "//mojo/services/public/cpp/input_events", |
75 "//mojo/services/public/cpp/geometry", | 74 "//mojo/services/public/cpp/geometry", |
76 "//mojo/services/public/cpp/view_manager", | 75 "//mojo/services/public/cpp/view_manager", |
77 "//mojo/services/public/cpp/view_manager/lib:run_unittests", | 76 "//mojo/services/public/cpp/view_manager/lib:run_unittests", |
78 "//mojo/services/public/cpp/view_manager:common", | |
79 "//mojo/services/public/interfaces/input_events", | |
80 "//mojo/services/public/interfaces/geometry", | |
81 "//mojo/services/public/interfaces/view_manager", | |
82 "//mojo/shell:test_support", | 77 "//mojo/shell:test_support", |
83 "//mojo/system", | 78 "//mojo/system", |
84 "//testing/gtest", | 79 "//testing/gtest", |
85 "//ui/gfx/geometry", | 80 "//ui/gfx/geometry", |
86 ] | 81 ] |
87 | 82 |
| 83 if (use_x11) { |
| 84 deps += ["//ui/gfx/x"] |
| 85 } |
| 86 |
| 87 if (is_component_build) { |
| 88 deps += ["//ui/gl"] |
| 89 } |
| 90 |
88 sources = [ | 91 sources = [ |
89 "test_change_tracker.cc", | 92 "test_change_tracker.cc", |
90 "test_change_tracker.h", | 93 "test_change_tracker.h", |
91 "view_manager_unittest.cc", | 94 "view_manager_unittest.cc", |
92 ] | 95 ] |
93 } | 96 } |
OLD | NEW |