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("//mojo/public/tools/bindings/mojom.gni") |
5 import("//tools/grit/grit_rule.gni") | 6 import("//tools/grit/grit_rule.gni") |
6 | 7 |
7 component("keyboard") { | 8 component("keyboard") { |
8 sources = [ | 9 sources = [ |
9 "keyboard.cc", | 10 "keyboard.cc", |
10 "keyboard.h", | 11 "keyboard.h", |
11 "keyboard_constants.cc", | 12 "keyboard_constants.cc", |
12 "keyboard_constants.h", | 13 "keyboard_constants.h", |
13 "keyboard_controller.cc", | 14 "keyboard_controller.cc", |
14 "keyboard_controller.h", | 15 "keyboard_controller.h", |
15 "keyboard_controller_observer.h", | 16 "keyboard_controller_observer.h", |
16 "keyboard_controller_proxy.cc", | 17 "keyboard_controller_proxy.cc", |
17 "keyboard_controller_proxy.h", | 18 "keyboard_controller_proxy.h", |
18 "keyboard_layout_manager.h", | 19 "keyboard_layout_manager.h", |
19 "keyboard_layout_manager.cc", | 20 "keyboard_layout_manager.cc", |
20 "keyboard_export.h", | 21 "keyboard_export.h", |
21 "keyboard_switches.cc", | 22 "keyboard_switches.cc", |
22 "keyboard_switches.h", | 23 "keyboard_switches.h", |
23 "keyboard_util.cc", | 24 "keyboard_util.cc", |
24 "keyboard_util.h", | 25 "keyboard_util.h", |
| 26 "webui/vk_mojo_handler.cc", |
| 27 "webui/vk_mojo_handler.h", |
| 28 "webui/vk_webui_controller.cc", |
| 29 "webui/vk_webui_controller.h", |
25 ] | 30 ] |
26 | 31 |
27 defines = [ "KEYBOARD_IMPLEMENTATION" ] | 32 defines = [ "KEYBOARD_IMPLEMENTATION" ] |
28 | 33 |
29 deps = [ | 34 deps = [ |
| 35 ":keyboard_mojom_bindings", |
30 ":resources", | 36 ":resources", |
31 "//base", | 37 "//base", |
32 "//base/third_party/dynamic_annotations", | 38 "//base/third_party/dynamic_annotations", |
33 "//content/public/browser", | 39 "//content/public/browser", |
| 40 "//content/public/common", |
| 41 "//mojo/public/cpp/bindings", |
| 42 "//mojo/environment:chromium", |
| 43 "//mojo/bindings/js", |
| 44 "//mojo/system", |
34 "//url", | 45 "//url", |
35 "//ui/aura", | 46 "//ui/aura", |
36 "//ui/base", | 47 "//ui/base", |
37 "//ui/compositor", | 48 "//ui/compositor", |
38 "//ui/events", | 49 "//ui/events", |
39 "//ui/gfx", | 50 "//ui/gfx", |
40 "//ui/gfx/geometry", | 51 "//ui/gfx/geometry", |
41 "//ui/keyboard/webui", | |
42 "//ui/wm", | 52 "//ui/wm", |
43 ] | 53 ] |
| 54 } |
44 | 55 |
45 # http://crbug.com/408651 Include cycle between this target and the "webui" | 56 # GYP version: ui/keyboard/keyboard.gyp:keyboard_mojom_bindings |
46 # sub-target. | 57 mojom("keyboard_mojom_bindings") { |
47 allow_circular_includes_from = [ "//ui/keyboard/webui" ] | 58 sources = [ |
| 59 "webui/keyboard.mojom", |
| 60 ] |
48 } | 61 } |
49 | 62 |
50 grit("resources_grit") { | 63 grit("resources_grit") { |
51 source = "keyboard_resources.grd" | 64 source = "keyboard_resources.grd" |
52 outputs = [ | 65 outputs = [ |
53 "grit/keyboard_resources.h", | 66 "grit/keyboard_resources.h", |
54 "grit/keyboard_resources_map.h", | 67 "grit/keyboard_resources_map.h", |
55 "keyboard_resources.pak", | 68 "keyboard_resources.pak", |
56 "keyboard_resources.rc", | 69 "keyboard_resources.rc", |
57 ] | 70 ] |
58 | 71 |
59 keyboard_mojom_gen_js = "$root_gen_dir/ui/keyboard/webui/keyboard.mojom.js" | 72 keyboard_mojom_gen_js = "$root_gen_dir/ui/keyboard/webui/keyboard.mojom.js" |
60 grit_flags = [ | 73 grit_flags = [ |
61 "-E", "keyboard_mojom_gen_js=" + | 74 "-E", "keyboard_mojom_gen_js=" + |
62 rebase_path(keyboard_mojom_gen_js, root_build_dir), | 75 rebase_path(keyboard_mojom_gen_js, root_build_dir), |
63 ] | 76 ] |
64 | 77 |
65 deps = [ | 78 deps = [ |
66 "webui:mojo_bindings" | 79 ":keyboard_mojom_bindings", |
67 ] | 80 ] |
68 } | 81 } |
69 | 82 |
70 copy("resources") { | 83 copy("resources") { |
71 sources = [ "$target_gen_dir/keyboard_resources.pak" ] | 84 sources = [ "$target_gen_dir/keyboard_resources.pak" ] |
72 outputs = [ "$root_out_dir/keyboard_resources.pak" ] | 85 outputs = [ "$root_out_dir/keyboard_resources.pak" ] |
73 deps = [ ":resources_grit" ] | 86 deps = [ ":resources_grit" ] |
74 forward_dependent_configs_from = deps | 87 forward_dependent_configs_from = deps |
75 } | 88 } |
76 | 89 |
(...skipping 17 matching lines...) Expand all Loading... |
94 "//ui/compositor", | 107 "//ui/compositor", |
95 "//ui/compositor:test_support", | 108 "//ui/compositor:test_support", |
96 "//ui/gfx", | 109 "//ui/gfx", |
97 "//ui/gfx/geometry", | 110 "//ui/gfx/geometry", |
98 "//ui/gl", | 111 "//ui/gl", |
99 "//ui/resources:ui_test_pak", | 112 "//ui/resources:ui_test_pak", |
100 "//ui/wm", | 113 "//ui/wm", |
101 "//url", | 114 "//url", |
102 ] | 115 ] |
103 } | 116 } |
OLD | NEW |