blob: e4279f51ad77ad59adb9c0ac1acf4809c87c269d [file] [log] [blame]
kevers102783982014-10-31 15:55:211# 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
5template("build_closure") {
6 assert(defined(invoker.sources))
7 assert(defined(invoker.target))
brettwbd8c2192016-10-01 01:56:138 action(target_name) {
kevers102783982014-10-31 15:55:219 script = "//third_party/google_input_tools/builder.py"
10 sources = invoker.sources
scottmg34fb7e52014-12-03 23:27:2411 outputs = [
12 invoker.target,
13 ]
Shu Chenb85f5432018-10-12 13:25:5014 response_file_contents = sources
scottmg1c240d272014-12-03 07:28:0015 args = [
16 "--target",
17 rebase_path(invoker.target, root_build_dir),
Shu Chenb85f5432018-10-12 13:25:5018 "--sources-list",
19 "{{response_file_name}}",
scottmg1c240d272014-12-03 07:28:0020 ]
scottmg1c240d272014-12-03 07:28:0021 if (defined(invoker.path)) {
22 args += [
23 "--path",
wychen6bf8ffa2017-06-07 08:51:5224 rebase_path(invoker.path, root_build_dir),
scottmg1c240d272014-12-03 07:28:0025 ]
kevers102783982014-10-31 15:55:2126 }
27 }
kevers102783982014-10-31 15:55:2128}