| 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("//testing/test.gni") | 5 import("//testing/test.gni") |
| 6 import("//third_party/mojo/src/mojo/public/tools/bindings/mojom.gni") | |
| 7 import("//third_party/google_input_tools/closure.gni") | 6 import("//third_party/google_input_tools/closure.gni") |
| 8 import("//third_party/google_input_tools/inputview.gni") | 7 import("//third_party/google_input_tools/inputview.gni") |
| 9 import("//tools/grit/grit_rule.gni") | 8 import("//tools/grit/grit_rule.gni") |
| 10 | 9 |
| 11 component("keyboard") { | 10 component("keyboard") { |
| 12 sources = [ | 11 sources = [ |
| 13 "keyboard.cc", | 12 "keyboard.cc", |
| 14 "keyboard.h", | 13 "keyboard.h", |
| 15 "keyboard_constants.cc", | 14 "keyboard_constants.cc", |
| 16 "keyboard_constants.h", | 15 "keyboard_constants.h", |
| 17 "keyboard_controller.cc", | 16 "keyboard_controller.cc", |
| 18 "keyboard_controller.h", | 17 "keyboard_controller.h", |
| 19 "keyboard_controller_observer.h", | 18 "keyboard_controller_observer.h", |
| 20 "keyboard_controller_proxy.cc", | 19 "keyboard_controller_proxy.cc", |
| 21 "keyboard_controller_proxy.h", | 20 "keyboard_controller_proxy.h", |
| 22 "keyboard_export.h", | 21 "keyboard_export.h", |
| 23 "keyboard_layout_manager.cc", | 22 "keyboard_layout_manager.cc", |
| 24 "keyboard_layout_manager.h", | 23 "keyboard_layout_manager.h", |
| 25 "keyboard_switches.cc", | 24 "keyboard_switches.cc", |
| 26 "keyboard_switches.h", | 25 "keyboard_switches.h", |
| 27 "keyboard_util.cc", | 26 "keyboard_util.cc", |
| 28 "keyboard_util.h", | 27 "keyboard_util.h", |
| 29 "webui/vk_mojo_handler.cc", | |
| 30 "webui/vk_mojo_handler.h", | |
| 31 "webui/vk_webui_controller.cc", | |
| 32 "webui/vk_webui_controller.h", | |
| 33 ] | 28 ] |
| 34 | 29 |
| 35 defines = [ "KEYBOARD_IMPLEMENTATION" ] | 30 defines = [ "KEYBOARD_IMPLEMENTATION" ] |
| 36 | 31 |
| 37 deps = [ | 32 deps = [ |
| 38 ":keyboard_mojom_bindings", | |
| 39 ":resources", | 33 ":resources", |
| 40 "//base", | 34 "//base", |
| 41 "//base/third_party/dynamic_annotations", | 35 "//base/third_party/dynamic_annotations", |
| 42 "//content/public/browser", | 36 "//content/public/browser", |
| 43 "//content/public/common", | 37 "//content/public/common", |
| 44 "//mojo/environment:chromium", | |
| 45 "//skia", | 38 "//skia", |
| 46 "//third_party/mojo/src/mojo/edk/js", | |
| 47 "//third_party/mojo/src/mojo/edk/system", | |
| 48 "//third_party/mojo/src/mojo/public/cpp/bindings", | |
| 49 "//third_party/mojo/src/mojo/public/cpp/system", | |
| 50 "//ui/aura", | 39 "//ui/aura", |
| 51 "//ui/base", | 40 "//ui/base", |
| 52 "//ui/base/ime", | 41 "//ui/base/ime", |
| 53 "//ui/compositor", | 42 "//ui/compositor", |
| 54 "//ui/events", | 43 "//ui/events", |
| 55 "//ui/events:dom4_keycode_converter", | 44 "//ui/events:dom4_keycode_converter", |
| 56 "//ui/gfx", | 45 "//ui/gfx", |
| 57 "//ui/gfx/geometry", | 46 "//ui/gfx/geometry", |
| 58 "//ui/wm", | 47 "//ui/wm", |
| 59 "//url", | 48 "//url", |
| 60 ] | 49 ] |
| 61 } | 50 } |
| 62 | 51 |
| 63 # GYP version: ui/keyboard/keyboard.gyp:keyboard_mojom_bindings | |
| 64 mojom("keyboard_mojom_bindings") { | |
| 65 sources = [ | |
| 66 "webui/keyboard.mojom", | |
| 67 ] | |
| 68 } | |
| 69 | |
| 70 grit("resources_grit") { | 52 grit("resources_grit") { |
| 71 source = "keyboard_resources.grd" | 53 source = "keyboard_resources.grd" |
| 72 outputs = [ | 54 outputs = [ |
| 73 "grit/keyboard_resources.h", | 55 "grit/keyboard_resources.h", |
| 74 "grit/keyboard_resources_map.h", | 56 "grit/keyboard_resources_map.h", |
| 75 "keyboard_resources.pak", | 57 "keyboard_resources.pak", |
| 76 "keyboard_resources.rc", | 58 "keyboard_resources.rc", |
| 77 ] | 59 ] |
| 78 | 60 |
| 79 input_tools_root_dir = "//third_party/google_input_tools/src/chrome/os" | 61 input_tools_root_dir = "//third_party/google_input_tools/src/chrome/os" |
| 80 inputview_gen_js = "$root_gen_dir/ui/keyboard/resources/inputview.js" | 62 inputview_gen_js = "$root_gen_dir/ui/keyboard/resources/inputview.js" |
| 81 keyboard_mojom_gen_js = "$root_gen_dir/ui/keyboard/webui/keyboard.mojom.js" | |
| 82 grit_flags = [ | 63 grit_flags = [ |
| 83 "-E", | 64 "-E", |
| 84 "input_tools_root_dir=" + rebase_path(input_tools_root_dir, "."), | 65 "input_tools_root_dir=" + rebase_path(input_tools_root_dir, "."), |
| 85 "-E", | 66 "-E", |
| 86 "inputview_gen_js=" + rebase_path(inputview_gen_js, root_build_dir), | 67 "inputview_gen_js=" + rebase_path(inputview_gen_js, root_build_dir), |
| 87 "-E", | |
| 88 "keyboard_mojom_gen_js=" + | |
| 89 rebase_path(keyboard_mojom_gen_js, root_build_dir), | |
| 90 ] | 68 ] |
| 91 | 69 |
| 92 deps = [ | 70 deps = [ |
| 93 ":inputview", | 71 ":inputview", |
| 94 ":keyboard_mojom_bindings", | |
| 95 ] | 72 ] |
| 96 } | 73 } |
| 97 | 74 |
| 98 copy("resources") { | 75 copy("resources") { |
| 99 sources = [ | 76 sources = [ |
| 100 "$target_gen_dir/keyboard_resources.pak", | 77 "$target_gen_dir/keyboard_resources.pak", |
| 101 ] | 78 ] |
| 102 outputs = [ | 79 outputs = [ |
| 103 "$root_out_dir/keyboard_resources.pak", | 80 "$root_out_dir/keyboard_resources.pak", |
| 104 ] | 81 ] |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 "//ui/events:test_support", | 116 "//ui/events:test_support", |
| 140 "//ui/gfx", | 117 "//ui/gfx", |
| 141 "//ui/gfx/geometry", | 118 "//ui/gfx/geometry", |
| 142 "//ui/gl", | 119 "//ui/gl", |
| 143 "//ui/resources:ui_test_pak", | 120 "//ui/resources:ui_test_pak", |
| 144 "//ui/wm", | 121 "//ui/wm", |
| 145 "//url", | 122 "//url", |
| 146 ] | 123 ] |
| 147 } | 124 } |
| 148 } | 125 } |
| OLD | NEW |