Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1352)

Unified Diff: ui/keyboard/BUILD.gn

Issue 369603004: Work on GN build, mostly in //ui (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: android Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/base/BUILD.gn ('k') | ui/keyboard/keyboard.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/keyboard/BUILD.gn
diff --git a/ui/keyboard/BUILD.gn b/ui/keyboard/BUILD.gn
new file mode 100644
index 0000000000000000000000000000000000000000..1b3c87bf8e936646c6912d6c0821a2470f40ca03
--- /dev/null
+++ b/ui/keyboard/BUILD.gn
@@ -0,0 +1,89 @@
+# Copyright 2014 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+import("//tools/grit/grit_rule.gni")
+
+component("keyboard") {
+ sources = [
+ "keyboard.cc",
+ "keyboard.h",
+ "keyboard_constants.cc",
+ "keyboard_constants.h",
+ "keyboard_controller.cc",
+ "keyboard_controller.h",
+ "keyboard_controller_observer.h",
+ "keyboard_controller_proxy.cc",
+ "keyboard_controller_proxy.h",
+ "keyboard_layout_manager.h",
+ "keyboard_layout_manager.cc",
+ "keyboard_export.h",
+ "keyboard_switches.cc",
+ "keyboard_switches.h",
+ "keyboard_util.cc",
+ "keyboard_util.h",
+ ]
+
+ defines = [ "KEYBOARD_IMPLEMENTATION" ]
+
+ deps = [
+ ":resources",
+ "//base",
+ "//base/third_party/dynamic_annotations",
+ "//content/public/browser",
+ "//ipc",
+ "//skia",
+ "//url",
+ "//ui/aura",
+ "//ui/base",
+ "//ui/compositor",
+ "//ui/events",
+ "//ui/gfx",
+ "//ui/gfx/geometry",
+ "//ui/wm",
+ ]
+}
+
+grit("resources_grit") {
+ source = "keyboard_resources.grd"
+}
+
+copy("resources") {
+ sources = [ "$target_gen_dir/keyboard_resources.pak" ]
+ outputs = [ "$root_out_dir/keyboard_resources.pak" ]
+ deps = [ ":resources_grit" ]
+ forward_dependent_configs_from = deps
+}
+
+# TODO(GYP) enable this when all dependencies are resolved. Some transitive
+# deps aren't done yet.
+if (false) {
+
+test("keyboard_unittests") {
+ sources = [
+ "test/run_all_unittests.cc",
+ "keyboard_controller_unittest.cc",
+ ]
+
+ deps = [
+ ":keyboard",
+ "//base",
+ "//base/allocator",
+ "//base/test:test_support",
+ "//content",
+ "//skia",
+ "//testing/gtest",
+ "//ui/aura",
+ "//ui/aura:test_support",
+ "//ui/base",
+ "//ui/compositor",
+ "//ui/compositor:test_support",
+ "//ui/gfx",
+ "//ui/gfx/geometry",
+ "//ui/resources:ui_test_pak",
+ "//ui/wm",
+ "//url",
+ ]
+}
+
+}
« no previous file with comments | « ui/base/BUILD.gn ('k') | ui/keyboard/keyboard.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698