kevers | 10278398 | 2014-10-31 15:55:21 | [diff] [blame] | 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 | ||||
3 | # found in the LICENSE file. | ||||
4 | |||||
5 | template("build_closure") { | ||||
6 | assert(defined(invoker.sources)) | ||||
7 | assert(defined(invoker.target)) | ||||
brettw | bd8c219 | 2016-10-01 01:56:13 | [diff] [blame] | 8 | action(target_name) { |
kevers | 10278398 | 2014-10-31 15:55:21 | [diff] [blame] | 9 | script = "//third_party/google_input_tools/builder.py" |
10 | sources = invoker.sources | ||||
scottmg | 34fb7e5 | 2014-12-03 23:27:24 | [diff] [blame] | 11 | outputs = [ |
12 | invoker.target, | ||||
13 | ] | ||||
Shu Chen | b85f543 | 2018-10-12 13:25:50 | [diff] [blame] | 14 | response_file_contents = sources |
scottmg | 1c240d27 | 2014-12-03 07:28:00 | [diff] [blame] | 15 | args = [ |
16 | "--target", | ||||
17 | rebase_path(invoker.target, root_build_dir), | ||||
Shu Chen | b85f543 | 2018-10-12 13:25:50 | [diff] [blame] | 18 | "--sources-list", |
19 | "{{response_file_name}}", | ||||
scottmg | 1c240d27 | 2014-12-03 07:28:00 | [diff] [blame] | 20 | ] |
scottmg | 1c240d27 | 2014-12-03 07:28:00 | [diff] [blame] | 21 | if (defined(invoker.path)) { |
22 | args += [ | ||||
23 | "--path", | ||||
wychen | 6bf8ffa | 2017-06-07 08:51:52 | [diff] [blame] | 24 | rebase_path(invoker.path, root_build_dir), |
scottmg | 1c240d27 | 2014-12-03 07:28:00 | [diff] [blame] | 25 | ] |
kevers | 10278398 | 2014-10-31 15:55:21 | [diff] [blame] | 26 | } |
27 | } | ||||
kevers | 10278398 | 2014-10-31 15:55:21 | [diff] [blame] | 28 | } |