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

Side by Side Diff: third_party/google_input_tools/closure.gni

Issue 774353003: gn format // (the rest) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase net Created 6 years 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/cython/rules.gni ('k') | third_party/opus/BUILD.gn » ('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 template("build_closure") { 5 template("build_closure") {
6 assert(defined(invoker.sources)) 6 assert(defined(invoker.sources))
7 assert(defined(invoker.target)) 7 assert(defined(invoker.target))
8 action_name = target_name + "_js_gen" 8 action_name = target_name + "_js_gen"
9 action(action_name) { 9 action(action_name) {
10 script = "//third_party/google_input_tools/builder.py" 10 script = "//third_party/google_input_tools/builder.py"
11 sources = invoker.sources 11 sources = invoker.sources
12 outputs = [ invoker.target ] 12 outputs = [
13 invoker.target,
14 ]
13 args = [ 15 args = [
14 "--target", 16 "--target",
15 rebase_path(invoker.target, root_build_dir), 17 rebase_path(invoker.target, root_build_dir),
16 ] 18 ]
17 if (defined(invoker.json_file)) { 19 if (defined(invoker.json_file)) {
18 # Optionally parse list of sources from a json file. Useful when the list 20 # Optionally parse list of sources from a json file. Useful when the list
19 # is sufficiently long to create problems with length restrictions on the 21 # is sufficiently long to create problems with length restrictions on the
20 # command line. 22 # command line.
21 assert(defined(invoker.json_sources)) 23 assert(defined(invoker.json_sources))
22 args += [ 24 args += [
(...skipping 13 matching lines...) Expand all
36 invoker.path, 38 invoker.path,
37 ] 39 ]
38 } 40 }
39 } 41 }
40 group(target_name) { 42 group(target_name) {
41 deps = [ 43 deps = [
42 ":$action_name", 44 ":$action_name",
43 ] 45 ]
44 } 46 }
45 } 47 }
OLDNEW
« no previous file with comments | « third_party/cython/rules.gni ('k') | third_party/opus/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698