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("//tools/grit/grit_rule.gni") | 5 import("//tools/grit/grit_rule.gni") |
6 | 6 |
7 component("keyboard") { | 7 component("keyboard") { |
8 sources = [ | 8 sources = [ |
9 "keyboard.cc", | 9 "keyboard.cc", |
10 "keyboard.h", | 10 "keyboard.h", |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 } | 45 } |
46 | 46 |
47 grit("resources_grit") { | 47 grit("resources_grit") { |
48 source = "keyboard_resources.grd" | 48 source = "keyboard_resources.grd" |
49 outputs = [ | 49 outputs = [ |
50 "grit/keyboard_resources.h", | 50 "grit/keyboard_resources.h", |
51 "grit/keyboard_resources_map.h", | 51 "grit/keyboard_resources_map.h", |
52 "keyboard_resources.pak", | 52 "keyboard_resources.pak", |
53 "keyboard_resources.rc", | 53 "keyboard_resources.rc", |
54 ] | 54 ] |
| 55 |
| 56 keyboard_mojom_gen_js = "$root_gen_dir/ui/keyboard/webui/keyboard.mojom.js" |
| 57 grit_flags = [ |
| 58 "-E", "keyboard_mojom_gen_js=" + |
| 59 rebase_path(keyboard_mojom_gen_js, root_build_dir), |
| 60 ] |
| 61 |
| 62 deps = [ |
| 63 "webui:mojo_bindings" |
| 64 ] |
55 } | 65 } |
56 | 66 |
57 copy("resources") { | 67 copy("resources") { |
58 sources = [ "$target_gen_dir/keyboard_resources.pak" ] | 68 sources = [ "$target_gen_dir/keyboard_resources.pak" ] |
59 outputs = [ "$root_out_dir/keyboard_resources.pak" ] | 69 outputs = [ "$root_out_dir/keyboard_resources.pak" ] |
60 deps = [ ":resources_grit" ] | 70 deps = [ ":resources_grit" ] |
61 forward_dependent_configs_from = deps | 71 forward_dependent_configs_from = deps |
62 } | 72 } |
63 | 73 |
64 # TODO(GYP) enable this when all dependencies are resolved. Some transitive | 74 # TODO(GYP) enable this when all dependencies are resolved. Some transitive |
(...skipping 21 matching lines...) Expand all Loading... |
86 "//ui/compositor:test_support", | 96 "//ui/compositor:test_support", |
87 "//ui/gfx", | 97 "//ui/gfx", |
88 "//ui/gfx/geometry", | 98 "//ui/gfx/geometry", |
89 "//ui/resources:ui_test_pak", | 99 "//ui/resources:ui_test_pak", |
90 "//ui/wm", | 100 "//ui/wm", |
91 "//url", | 101 "//url", |
92 ] | 102 ] |
93 } | 103 } |
94 | 104 |
95 } | 105 } |
OLD | NEW |