Commit c195a244 authored by sky's avatar sky Committed by Commit bot

Folds ui/keyboard/webui/BUILD.gn into ui/keyboard/BUILD.gn

The two directories depend on each other, so there isn't much point in
having separate BUILD.gn files.

BUG=408651
TEST=none
R=brettw@chromium.org

Review URL: https://codereview.chromium.org/577383002

Cr-Commit-Position: refs/heads/master@{#295607}
parent c168caec
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
# Use of this source code is governed by a BSD-style license that can be # Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file. # found in the LICENSE file.
import("//mojo/public/tools/bindings/mojom.gni")
import("//tools/grit/grit_rule.gni") import("//tools/grit/grit_rule.gni")
component("keyboard") { component("keyboard") {
...@@ -22,15 +23,25 @@ component("keyboard") { ...@@ -22,15 +23,25 @@ component("keyboard") {
"keyboard_switches.h", "keyboard_switches.h",
"keyboard_util.cc", "keyboard_util.cc",
"keyboard_util.h", "keyboard_util.h",
"webui/vk_mojo_handler.cc",
"webui/vk_mojo_handler.h",
"webui/vk_webui_controller.cc",
"webui/vk_webui_controller.h",
] ]
defines = [ "KEYBOARD_IMPLEMENTATION" ] defines = [ "KEYBOARD_IMPLEMENTATION" ]
deps = [ deps = [
":keyboard_mojom_bindings",
":resources", ":resources",
"//base", "//base",
"//base/third_party/dynamic_annotations", "//base/third_party/dynamic_annotations",
"//content/public/browser", "//content/public/browser",
"//content/public/common",
"//mojo/public/cpp/bindings",
"//mojo/environment:chromium",
"//mojo/bindings/js",
"//mojo/system",
"//url", "//url",
"//ui/aura", "//ui/aura",
"//ui/base", "//ui/base",
...@@ -38,13 +49,15 @@ component("keyboard") { ...@@ -38,13 +49,15 @@ component("keyboard") {
"//ui/events", "//ui/events",
"//ui/gfx", "//ui/gfx",
"//ui/gfx/geometry", "//ui/gfx/geometry",
"//ui/keyboard/webui",
"//ui/wm", "//ui/wm",
] ]
}
# http://crbug.com/408651 Include cycle between this target and the "webui" # GYP version: ui/keyboard/keyboard.gyp:keyboard_mojom_bindings
# sub-target. mojom("keyboard_mojom_bindings") {
allow_circular_includes_from = [ "//ui/keyboard/webui" ] sources = [
"webui/keyboard.mojom",
]
} }
grit("resources_grit") { grit("resources_grit") {
...@@ -63,7 +76,7 @@ grit("resources_grit") { ...@@ -63,7 +76,7 @@ grit("resources_grit") {
] ]
deps = [ deps = [
"webui:mojo_bindings" ":keyboard_mojom_bindings",
] ]
} }
......
# 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("//mojo/public/tools/bindings/mojom.gni")
# GYP version: ui/keyboard/keyboard.gyp:keyboard_mojom_bindings
mojom("mojo_bindings") {
sources = [
"keyboard.mojom",
]
}
# GYP version: part of ui/keyboard/keyboard.gyp:keyboard
source_set("webui") {
visibility = [ "//ui/keyboard" ]
sources = [
"../keyboard_export.h",
"vk_mojo_handler.cc",
"vk_mojo_handler.h",
"vk_webui_controller.cc",
"vk_webui_controller.h",
]
deps = [
":mojo_bindings",
"//base",
"//content/public/browser",
"//content/public/common",
"//ui/aura",
"//ui/base",
"//ui/keyboard:resources",
"//mojo/public/cpp/bindings",
"//mojo/environment:chromium",
"//mojo/bindings/js",
"//mojo/system",
]
defines = [ "KEYBOARD_IMPLEMENTATION" ]
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment