| OLD | NEW |
| 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(target_name) { |
| 9 action(action_name) { | |
| 10 script = "//third_party/google_input_tools/builder.py" | 9 script = "//third_party/google_input_tools/builder.py" |
| 11 sources = invoker.sources | 10 sources = invoker.sources |
| 12 outputs = [ | 11 outputs = [ |
| 13 invoker.target, | 12 invoker.target, |
| 14 ] | 13 ] |
| 15 args = [ | 14 args = [ |
| 16 "--target", | 15 "--target", |
| 17 rebase_path(invoker.target, root_build_dir), | 16 rebase_path(invoker.target, root_build_dir), |
| 18 ] | 17 ] |
| 19 if (defined(invoker.json_file)) { | 18 if (defined(invoker.json_file)) { |
| (...skipping 12 matching lines...) Expand all Loading... |
| 32 # from the command line. | 31 # from the command line. |
| 33 args += [ "--sources" ] + sources | 32 args += [ "--sources" ] + sources |
| 34 } | 33 } |
| 35 if (defined(invoker.path)) { | 34 if (defined(invoker.path)) { |
| 36 args += [ | 35 args += [ |
| 37 "--path", | 36 "--path", |
| 38 invoker.path, | 37 invoker.path, |
| 39 ] | 38 ] |
| 40 } | 39 } |
| 41 } | 40 } |
| 42 group(target_name) { | |
| 43 deps = [ | |
| 44 ":$action_name", | |
| 45 ] | |
| 46 } | |
| 47 } | 41 } |
| OLD | NEW |