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("//mojo/public/mojo_application.gni") |
6 | 7 |
7 if (use_aura) { | 8 if (use_aura) { |
8 | 9 |
9 # GYP version: mojo/mojo_services.gypi:mojo_core_window_manager | 10 mojo_binary_application("window_manager") { |
10 shared_library("window_manager") { | |
11 sources = [ "main.cc" ] | 11 sources = [ "main.cc" ] |
12 | 12 |
13 public_deps = [ | 13 public_deps = [ |
14 ":lib", | 14 ":lib", |
15 ] | 15 ] |
16 | 16 |
17 deps = [ | 17 deps = [ |
18 "//base", | 18 "//base", |
19 "//mojo/application", | 19 "//mojo/application", |
20 "//mojo/public/c/system:for_shared_library", | 20 "//mojo/public/c/system:for_shared_library", |
21 "//mojo/services/public/cpp/view_manager", | 21 "//mojo/services/public/cpp/view_manager", |
22 ] | 22 ] |
23 } | 23 } |
24 | 24 |
25 # GYP version: mojo/mojo_services.gypi:mojo_core_window_manager_lib | |
26 source_set("lib") { | 25 source_set("lib") { |
27 sources = [ | 26 sources = [ |
28 "native_viewport_event_dispatcher_impl.cc", | 27 "native_viewport_event_dispatcher_impl.cc", |
29 "native_viewport_event_dispatcher_impl.h", | 28 "native_viewport_event_dispatcher_impl.h", |
30 "window_manager_app.cc", | 29 "window_manager_app.cc", |
31 "window_manager_app.h", | 30 "window_manager_app.h", |
32 "window_manager_delegate.h", | 31 "window_manager_delegate.h", |
33 "window_manager_impl.cc", | 32 "window_manager_impl.cc", |
34 "window_manager_impl.h", | 33 "window_manager_impl.h", |
35 ] | 34 ] |
(...skipping 12 matching lines...) Expand all Loading... |
48 "//mojo/application", | 47 "//mojo/application", |
49 "//mojo/common", | 48 "//mojo/common", |
50 "//mojo/converters/input_events", | 49 "//mojo/converters/input_events", |
51 "//mojo/services/public/cpp/view_manager", | 50 "//mojo/services/public/cpp/view_manager", |
52 "//mojo/public/interfaces/application:application", | 51 "//mojo/public/interfaces/application:application", |
53 "//mojo/services/public/interfaces/native_viewport", | 52 "//mojo/services/public/interfaces/native_viewport", |
54 "//mojo/services/public/interfaces/window_manager", | 53 "//mojo/services/public/interfaces/window_manager", |
55 ] | 54 ] |
56 } | 55 } |
57 | 56 |
58 # GYP version: mojo/mojo_services.gypi:mojo_core_window_manager_unittests | |
59 test("window_manager_unittests") { | 57 test("window_manager_unittests") { |
60 sources = [ | 58 sources = [ |
61 "window_manager_api_unittest.cc", | 59 "window_manager_api_unittest.cc", |
62 "window_manager_unittests.cc", | 60 "window_manager_unittests.cc", |
63 ] | 61 ] |
64 | 62 |
65 deps = [ | 63 deps = [ |
66 "//base/test:test_support", | 64 "//base/test:test_support", |
67 "//mojo/application_manager", | 65 "//mojo/application_manager", |
68 "//mojo/edk/system", | 66 "//mojo/edk/system", |
69 "//mojo/environment:chromium", | 67 "//mojo/environment:chromium", |
70 "//mojo/services/public/cpp/view_manager", | 68 "//mojo/services/public/cpp/view_manager", |
71 "//mojo/services/public/interfaces/view_manager", | 69 "//mojo/services/public/interfaces/view_manager", |
72 "//mojo/services/public/interfaces/window_manager", | 70 "//mojo/services/public/interfaces/window_manager", |
73 "//mojo/shell:test_support", | 71 "//mojo/shell:test_support", |
74 "//testing/gtest", | 72 "//testing/gtest", |
75 "//ui/gl", | 73 "//ui/gl", |
76 ] | 74 ] |
77 | 75 |
78 if (use_x11) { | 76 if (use_x11) { |
79 deps += [ "//ui/gfx/x" ] | 77 deps += [ "//ui/gfx/x" ] |
80 } | 78 } |
81 } | 79 } |
82 | 80 |
83 } # use_aura | 81 } # use_aura |
OLD | NEW |