summaryrefslogtreecommitdiffstats
path: root/third_party/google_input_tools
diff options
context:
space:
mode:
authorscottmg <scottmg@chromium.org>2014-12-02 23:28:00 -0800
committerCommit bot <commit-bot@chromium.org>2014-12-03 07:29:20 +0000
commit1c240d2719e764ed0108aa59ba35a6d99c00491a (patch)
treef33b022e82cbca0f69637da64415fe5259496c89 /third_party/google_input_tools
parentd83fc265629d2a24078132b260c76192f3cc68f1 (diff)
downloadchromium_src-1c240d2719e764ed0108aa59ba35a6d99c00491a.zip
chromium_src-1c240d2719e764ed0108aa59ba35a6d99c00491a.tar.gz
chromium_src-1c240d2719e764ed0108aa59ba35a6d99c00491a.tar.bz2
gn format //third_party
Uses gn binary at head. No intended functionality change. R=brettw@chromium.org TBR=scherkus@chromium.org BUG=348474 Review URL: https://codereview.chromium.org/779473002 Cr-Commit-Position: refs/heads/master@{#306567}
Diffstat (limited to 'third_party/google_input_tools')
-rw-r--r--third_party/google_input_tools/closure.gni33
-rw-r--r--third_party/google_input_tools/inputview.gni11
2 files changed, 26 insertions, 18 deletions
diff --git a/third_party/google_input_tools/closure.gni b/third_party/google_input_tools/closure.gni
index 526dbd0..0d1b0c1 100644
--- a/third_party/google_input_tools/closure.gni
+++ b/third_party/google_input_tools/closure.gni
@@ -9,28 +9,37 @@ template("build_closure") {
action(action_name) {
script = "//third_party/google_input_tools/builder.py"
sources = invoker.sources
- outputs = [invoker.target]
- args = ["--target",
- rebase_path(invoker.target, root_build_dir)]
- if(defined(invoker.json_file)) {
+ outputs = [ invoker.target ]
+ args = [
+ "--target",
+ rebase_path(invoker.target, root_build_dir),
+ ]
+ if (defined(invoker.json_file)) {
# Optionally parse list of sources from a json file. Useful when the list
# is sufficiently long to create problems with length restrictions on the
# command line.
assert(defined(invoker.json_sources))
- args += ["--json_file",
- rebase_path(invoker.json_file, root_build_dir),
- "--json_sources",
- invoker.json_sources]
+ args += [
+ "--json_file",
+ rebase_path(invoker.json_file, root_build_dir),
+ "--json_sources",
+ invoker.json_sources,
+ ]
} else {
# If the number of source files is short, they can be directly extracted
# from the command line.
- args += ["--sources"] + sources
+ args += [ "--sources" ] + sources
}
- if(defined(invoker.path)) {
- args += ["--path", invoker.path]
+ if (defined(invoker.path)) {
+ args += [
+ "--path",
+ invoker.path,
+ ]
}
}
group(target_name) {
- deps = [ ":$action_name" ]
+ deps = [
+ ":$action_name",
+ ]
}
}
diff --git a/third_party/google_input_tools/inputview.gni b/third_party/google_input_tools/inputview.gni
index 0c6cede..0c5d836 100644
--- a/third_party/google_input_tools/inputview.gni
+++ b/third_party/google_input_tools/inputview.gni
@@ -2,9 +2,8 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
-inputview_gypi_values = exec_script(
- "//build/gypi_to_gn.py",
- [ rebase_path("inputview.gypi") ],
- "scope",
- [ "inputview.gypi" ])
-inputview_sources = rebase_path(inputview_gypi_values.inputview_sources) \ No newline at end of file
+inputview_gypi_values = exec_script("//build/gypi_to_gn.py",
+ [ rebase_path("inputview.gypi") ],
+ "scope",
+ [ "inputview.gypi" ])
+inputview_sources = rebase_path(inputview_gypi_values.inputview_sources)