Adding a step to the check-in process that ensures the correct account information...
[chromium-blink-merge.git] / ui / keyboard / BUILD.gn
blob1b3c87bf8e936646c6912d6c0821a2470f40ca03
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("//tools/grit/grit_rule.gni")
7 component("keyboard") {
8   sources = [
9     "keyboard.cc",
10     "keyboard.h",
11     "keyboard_constants.cc",
12     "keyboard_constants.h",
13     "keyboard_controller.cc",
14     "keyboard_controller.h",
15     "keyboard_controller_observer.h",
16     "keyboard_controller_proxy.cc",
17     "keyboard_controller_proxy.h",
18     "keyboard_layout_manager.h",
19     "keyboard_layout_manager.cc",
20     "keyboard_export.h",
21     "keyboard_switches.cc",
22     "keyboard_switches.h",
23     "keyboard_util.cc",
24     "keyboard_util.h",
25   ]
27   defines = [ "KEYBOARD_IMPLEMENTATION" ]
29   deps = [
30     ":resources",
31     "//base",
32     "//base/third_party/dynamic_annotations",
33     "//content/public/browser",
34     "//ipc",
35     "//skia",
36     "//url",
37     "//ui/aura",
38     "//ui/base",
39     "//ui/compositor",
40     "//ui/events",
41     "//ui/gfx",
42     "//ui/gfx/geometry",
43     "//ui/wm",
44   ]
47 grit("resources_grit") {
48   source = "keyboard_resources.grd"
51 copy("resources") {
52   sources = [ "$target_gen_dir/keyboard_resources.pak" ]
53   outputs = [ "$root_out_dir/keyboard_resources.pak" ]
54   deps = [ ":resources_grit" ]
55   forward_dependent_configs_from = deps
58 # TODO(GYP) enable this when all dependencies are resolved. Some transitive
59 # deps aren't done yet.
60 if (false) {
62 test("keyboard_unittests") {
63   sources = [
64     "test/run_all_unittests.cc",
65     "keyboard_controller_unittest.cc",
66   ]
68   deps = [
69     ":keyboard",
70     "//base",
71     "//base/allocator",
72     "//base/test:test_support",
73     "//content",
74     "//skia",
75     "//testing/gtest",
76     "//ui/aura",
77     "//ui/aura:test_support",
78     "//ui/base",
79     "//ui/compositor",
80     "//ui/compositor:test_support",
81     "//ui/gfx",
82     "//ui/gfx/geometry",
83     "//ui/resources:ui_test_pak",
84     "//ui/wm",
85     "//url",
86   ]