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

Side by Side Diff: ui/keyboard/BUILD.gn

Issue 676423003: Add build target for inputview. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 1 month 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 unified diff | Download patch
« no previous file with comments | « third_party/google_input_tools/update.py ('k') | ui/keyboard/keyboard.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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("//mojo/public/tools/bindings/mojom.gni") 5 import("//mojo/public/tools/bindings/mojom.gni")
6 import("//third_party/google_input_tools/closure.gni")
7 import("//third_party/google_input_tools/inputview.gni")
6 import("//tools/grit/grit_rule.gni") 8 import("//tools/grit/grit_rule.gni")
7 9
8 component("keyboard") { 10 component("keyboard") {
9 sources = [ 11 sources = [
10 "keyboard.cc", 12 "keyboard.cc",
11 "keyboard.h", 13 "keyboard.h",
12 "keyboard_constants.cc", 14 "keyboard_constants.cc",
13 "keyboard_constants.h", 15 "keyboard_constants.h",
14 "keyboard_controller.cc", 16 "keyboard_controller.cc",
15 "keyboard_controller.h", 17 "keyboard_controller.h",
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 ] 73 ]
72 74
73 keyboard_mojom_gen_js = "$root_gen_dir/ui/keyboard/webui/keyboard.mojom.js" 75 keyboard_mojom_gen_js = "$root_gen_dir/ui/keyboard/webui/keyboard.mojom.js"
74 grit_flags = [ 76 grit_flags = [
75 "-E", "keyboard_mojom_gen_js=" + 77 "-E", "keyboard_mojom_gen_js=" +
76 rebase_path(keyboard_mojom_gen_js, root_build_dir), 78 rebase_path(keyboard_mojom_gen_js, root_build_dir),
77 ] 79 ]
78 80
79 deps = [ 81 deps = [
80 ":keyboard_mojom_bindings", 82 ":keyboard_mojom_bindings",
83 ":inputview"
81 ] 84 ]
82 } 85 }
83 86
84 copy("resources") { 87 copy("resources") {
85 sources = [ "$target_gen_dir/keyboard_resources.pak" ] 88 sources = [ "$target_gen_dir/keyboard_resources.pak" ]
86 outputs = [ "$root_out_dir/keyboard_resources.pak" ] 89 outputs = [ "$root_out_dir/keyboard_resources.pak" ]
87 public_deps = [ ":resources_grit" ] 90 public_deps = [ ":resources_grit" ]
88 } 91 }
89 92
93 build_closure("inputview") {
94 sources = inputview_sources
95 target = "$target_gen_dir/resources/inputview.js"
96 json_file = "//third_party/google_input_tools/inputview.gypi"
97 json_sources = "variables.inputview_sources"
98 path = rebase_path("//third_party/google_input_tools")
99 }
100
90 test("keyboard_unittests") { 101 test("keyboard_unittests") {
91 sources = [ 102 sources = [
92 "test/run_all_unittests.cc", 103 "test/run_all_unittests.cc",
93 "keyboard_controller_unittest.cc", 104 "keyboard_controller_unittest.cc",
94 ] 105 ]
95 106
96 deps = [ 107 deps = [
97 ":keyboard", 108 ":keyboard",
98 "//base", 109 "//base",
99 "//base/allocator", 110 "//base/allocator",
100 "//base/test:test_support", 111 "//base/test:test_support",
101 "//content", 112 "//content",
102 "//skia", 113 "//skia",
103 "//testing/gtest", 114 "//testing/gtest",
104 "//ui/aura:test_support", 115 "//ui/aura:test_support",
105 "//ui/base:test_support", 116 "//ui/base:test_support",
106 "//ui/compositor:test_support", 117 "//ui/compositor:test_support",
107 "//ui/events:test_support", 118 "//ui/events:test_support",
108 "//ui/gfx", 119 "//ui/gfx",
109 "//ui/gfx/geometry", 120 "//ui/gfx/geometry",
110 "//ui/gl", 121 "//ui/gl",
111 "//ui/resources:ui_test_pak", 122 "//ui/resources:ui_test_pak",
112 "//ui/wm", 123 "//ui/wm",
113 "//url", 124 "//url",
114 ] 125 ]
115 } 126 }
OLDNEW
« no previous file with comments | « third_party/google_input_tools/update.py ('k') | ui/keyboard/keyboard.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698