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 import("//mojo/public/mojo_application.gni") |
7 import("//mojo/public/tools/bindings/mojom.gni") | 7 import("//mojo/public/tools/bindings/mojom.gni") |
8 | 8 |
9 assert(use_aura) | 9 assert(use_aura) |
10 | 10 |
11 group("wm_flow") { | 11 group("wm_flow") { |
12 deps = [ | 12 deps = [ |
13 ":app", | 13 ":app", |
14 ":embedded", | 14 ":embedded", |
15 ":wm", | 15 ":wm", |
16 ] | 16 ] |
17 } | 17 } |
18 | 18 |
19 mojo_native_application("wm") { | 19 mojo_native_application("wm") { |
20 output_name = "wm_flow_wm" | 20 output_name = "wm_flow_wm" |
21 | 21 |
22 sources = [ | 22 sources = [ |
23 "wm/wm.cc", | 23 "wm/wm.cc", |
24 "wm/frame_controller.cc", | 24 "wm/frame_controller.cc", |
25 "wm/frame_controller.h", | 25 "wm/frame_controller.h", |
26 ] | 26 ] |
27 | 27 |
28 deps = [ | 28 deps = [ |
| 29 ":wm_bindings", |
29 "//base", | 30 "//base", |
30 "//skia", | |
31 "//ui/aura", | |
32 "//ui/views", | |
33 "//ui/wm:wm", | |
34 "//mojo/application", | 31 "//mojo/application", |
| 32 "//mojo/converters/geometry", |
35 "//mojo/services/input_events/public/interfaces", | 33 "//mojo/services/input_events/public/interfaces", |
36 "//mojo/services/view_manager/public/cpp", | 34 "//mojo/services/view_manager/public/cpp", |
37 "//mojo/views:views", | |
38 "//services/window_manager:lib", | 35 "//services/window_manager:lib", |
| 36 "//skia", |
| 37 "//ui/gfx/geometry", |
| 38 "//url", |
39 ] | 39 ] |
40 } | 40 } |
41 | 41 |
42 mojo_native_application("app") { | 42 mojo_native_application("app") { |
43 output_name = "wm_flow_app" | 43 output_name = "wm_flow_app" |
44 | 44 |
45 sources = [ | 45 sources = [ |
46 "app/app.cc", | 46 "app/app.cc", |
47 ] | 47 ] |
48 | 48 |
49 deps = [ | 49 deps = [ |
50 ":embedder_bindings", | 50 ":embedder_bindings", |
51 ":embeddee_bindings", | 51 ":embeddee_bindings", |
52 "//base", | 52 "//base", |
53 "//examples/bitmap_uploader", | 53 "//examples/bitmap_uploader", |
54 "//mojo/application", | 54 "//mojo/application", |
55 "//mojo/public/interfaces/application:application", | 55 "//mojo/public/interfaces/application:application", |
56 "//mojo/services/view_manager/public/cpp", | 56 "//mojo/services/view_manager/public/cpp", |
| 57 "//services/window_manager:lib", |
57 "//skia", | 58 "//skia", |
58 "//services/window_manager:lib", | 59 "//url", |
59 ] | 60 ] |
60 } | 61 } |
61 | 62 |
62 mojo_native_application("embedded") { | 63 mojo_native_application("embedded") { |
63 output_name = "wm_flow_embedded" | 64 output_name = "wm_flow_embedded" |
64 | 65 |
65 sources = [ | 66 sources = [ |
66 "embedded/embedded.cc", | 67 "embedded/embedded.cc", |
67 ] | 68 ] |
68 | 69 |
69 deps = [ | 70 deps = [ |
70 ":embeddee_bindings", | 71 ":embeddee_bindings", |
71 ":embedder_bindings", | 72 ":embedder_bindings", |
72 "//base", | 73 "//base", |
73 "//examples/bitmap_uploader", | 74 "//examples/bitmap_uploader", |
74 "//mojo/application", | 75 "//mojo/application", |
75 "//mojo/services/view_manager/public/cpp", | 76 "//mojo/services/view_manager/public/cpp", |
76 "//services/window_manager:lib", | 77 "//services/window_manager:lib", |
77 "//skia", | 78 "//skia", |
| 79 "//url", |
78 ] | 80 ] |
79 } | 81 } |
80 | 82 |
| 83 mojom("wm_bindings") { |
| 84 sources = [ |
| 85 "wm/window_frame_host.mojom", |
| 86 ] |
| 87 } |
| 88 |
81 mojom("embedder_bindings") { | 89 mojom("embedder_bindings") { |
82 sources = [ | 90 sources = [ |
83 "app/embedder.mojom", | 91 "app/embedder.mojom", |
84 ] | 92 ] |
85 } | 93 } |
86 | 94 |
87 mojom("embeddee_bindings") { | 95 mojom("embeddee_bindings") { |
88 sources = [ | 96 sources = [ |
89 "embedded/embeddee.mojom", | 97 "embedded/embeddee.mojom", |
90 ] | 98 ] |
91 } | 99 } |
OLD | NEW |