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