| 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(target_name) { | 8 action(target_name) { |
| 9 script = "//third_party/google_input_tools/builder.py" | 9 script = "//third_party/google_input_tools/builder.py" |
| 10 sources = invoker.sources | 10 sources = invoker.sources |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 invoker.json_sources, | 27 invoker.json_sources, |
| 28 ] | 28 ] |
| 29 } else { | 29 } else { |
| 30 # If the number of source files is short, they can be directly extracted | 30 # If the number of source files is short, they can be directly extracted |
| 31 # from the command line. | 31 # from the command line. |
| 32 args += [ "--sources" ] + sources | 32 args += [ "--sources" ] + sources |
| 33 } | 33 } |
| 34 if (defined(invoker.path)) { | 34 if (defined(invoker.path)) { |
| 35 args += [ | 35 args += [ |
| 36 "--path", | 36 "--path", |
| 37 invoker.path, | 37 rebase_path(invoker.path, root_build_dir), |
| 38 ] | 38 ] |
| 39 } | 39 } |
| 40 } | 40 } |
| 41 } | 41 } |
| OLD | NEW |