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("//mojo/system.gni") | 6 import("//mojo/system.gni") |
6 | 7 |
7 # GYP version: mojo/mojo_services.gypi:mojo_view_manager | 8 # GYP version: mojo/mojo_services.gypi:mojo_view_manager |
8 component("view_manager") { | 9 component("view_manager") { |
9 deps = [ | 10 deps = [ |
10 "//base", | 11 "//base", |
11 "//cc/surfaces", | 12 "//cc/surfaces", |
12 "//mojo/application", | 13 "//mojo/application", |
13 "//mojo/common", | 14 "//mojo/common", |
14 "//mojo/environment:chromium", | 15 "//mojo/environment:chromium", |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 } | 60 } |
60 | 61 |
61 # GYP version: mojo/mojo_services.gypi:mojo_view_manager_unittests | 62 # GYP version: mojo/mojo_services.gypi:mojo_view_manager_unittests |
62 test("mojo_view_manager_unittests") { | 63 test("mojo_view_manager_unittests") { |
63 deps = [ | 64 deps = [ |
64 "//base", | 65 "//base", |
65 "//base/test:test_support", | 66 "//base/test:test_support", |
66 "//mojo/application", | 67 "//mojo/application", |
67 "//mojo/application_manager", | 68 "//mojo/application_manager", |
68 "//mojo/environment:chromium", | 69 "//mojo/environment:chromium", |
69 "//mojo/services/public/cpp/input_events", | |
70 "//mojo/services/public/cpp/geometry", | 70 "//mojo/services/public/cpp/geometry", |
71 "//mojo/services/public/cpp/view_manager", | 71 "//mojo/services/public/cpp/view_manager", |
72 "//mojo/services/public/cpp/view_manager/lib:run_unittests", | 72 "//mojo/services/public/cpp/view_manager/lib:run_unittests", |
73 "//mojo/services/public/cpp/view_manager:common", | 73 "//mojo/services/public/cpp/view_manager:common", |
74 "//mojo/services/public/interfaces/input_events", | |
75 "//mojo/services/public/interfaces/geometry", | |
76 "//mojo/services/public/interfaces/view_manager", | |
77 "//mojo/shell:test_support", | 74 "//mojo/shell:test_support", |
78 "//mojo/system", | 75 "//mojo/system", |
79 "//testing/gtest", | 76 "//testing/gtest", |
| 77 "//ui/gfx/geometry", |
80 ] | 78 ] |
81 | 79 |
| 80 if (use_x11) { |
| 81 deps += ["//ui/gfx/x"] |
| 82 } |
| 83 |
| 84 if (is_component_build) { |
| 85 deps += ["//ui/gl"] |
| 86 } |
| 87 |
82 sources = [ | 88 sources = [ |
83 "test_change_tracker.cc", | 89 "test_change_tracker.cc", |
84 "test_change_tracker.h", | 90 "test_change_tracker.h", |
85 "view_manager_unittest.cc", | 91 "view_manager_unittest.cc", |
86 ] | 92 ] |
87 } | 93 } |
OLD | NEW |