Remove unused parameter.
[chromium-blink-merge.git] / ui / keyboard / BUILD.gn
blob66a98a490bb290ee64fdf53341e2ce4a5713d722
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
3 # found in the LICENSE file.
5 import("//testing/test.gni")
6 import("//third_party/google_input_tools/closure.gni")
7 import("//third_party/google_input_tools/inputview.gni")
8 import("//tools/grit/grit_rule.gni")
10 component("keyboard") {
11   sources = [
12     "keyboard.cc",
13     "keyboard.h",
14     "keyboard_constants.cc",
15     "keyboard_constants.h",
16     "keyboard_controller.cc",
17     "keyboard_controller.h",
18     "keyboard_controller_observer.h",
19     "keyboard_controller_proxy.cc",
20     "keyboard_controller_proxy.h",
21     "keyboard_export.h",
22     "keyboard_layout_manager.cc",
23     "keyboard_layout_manager.h",
24     "keyboard_switches.cc",
25     "keyboard_switches.h",
26     "keyboard_util.cc",
27     "keyboard_util.h",
28   ]
30   defines = [ "KEYBOARD_IMPLEMENTATION" ]
32   deps = [
33     ":resources",
34     "//base",
35     "//base/third_party/dynamic_annotations",
36     "//content/public/browser",
37     "//content/public/common",
38     "//skia",
39     "//ui/aura",
40     "//ui/base",
41     "//ui/base/ime",
42     "//ui/compositor",
43     "//ui/events",
44     "//ui/events:dom4_keycode_converter",
45     "//ui/gfx",
46     "//ui/gfx/geometry",
47     "//ui/wm",
48     "//url",
49   ]
52 grit("resources_grit") {
53   source = "keyboard_resources.grd"
54   outputs = [
55     "grit/keyboard_resources.h",
56     "grit/keyboard_resources_map.h",
57     "keyboard_resources.pak",
58     "keyboard_resources.rc",
59   ]
61   input_tools_root_dir = "//third_party/google_input_tools/src/chrome/os"
62   inputview_gen_js = "$root_gen_dir/ui/keyboard/resources/inputview.js"
63   grit_flags = [
64     "-E",
65     "input_tools_root_dir=" + rebase_path(input_tools_root_dir, "."),
66     "-E",
67     "inputview_gen_js=" + rebase_path(inputview_gen_js, root_build_dir),
68   ]
70   deps = [
71     ":inputview",
72   ]
75 copy("resources") {
76   sources = [
77     "$target_gen_dir/keyboard_resources.pak",
78   ]
79   outputs = [
80     "$root_out_dir/keyboard_resources.pak",
81   ]
82   public_deps = [
83     ":resources_grit",
84   ]
87 build_closure("inputview") {
88   sources = inputview_sources
89   target = "$target_gen_dir/resources/inputview.js"
90   json_file = "//third_party/google_input_tools/inputview.gypi"
91   sources += [ json_file ]
92   json_sources = "variables.inputview_sources"
93   path = rebase_path("//third_party/google_input_tools")
96 test("keyboard_unittests") {
97   sources = [
98     "keyboard_controller_unittest.cc",
99     "test/run_all_unittests.cc",
100   ]
102   deps = [
103     ":keyboard",
104     "//base",
105     "//base/allocator",
106     "//base/test:test_support",
107     "//content",
108     "//skia",
109     "//testing/gtest",
110     "//ui/aura:test_support",
111     "//ui/base",
112     "//ui/base/ime",
113     "//ui/base:test_support",
114     "//ui/compositor:test_support",
115     "//ui/events:test_support",
116     "//ui/gfx",
117     "//ui/gfx/geometry",
118     "//ui/gl",
119     "//ui/resources:ui_test_pak",
120     "//ui/wm",
121     "//url",
122   ]