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 import("//build/toolchain/toolchain.gni") | 5 import("//build/toolchain/toolchain.gni") |
6 import("//third_party/WebKit/Source/config.gni") | 6 import("//third_party/WebKit/Source/config.gni") |
7 | 7 |
8 # All paths in this file should be absolute so targets in any directory can use | 8 # All paths in this file should be absolute so targets in any directory can use |
9 # them without worrying about the current directory. | 9 # them without worrying about the current directory. |
10 _scripts_dir = "//third_party/WebKit/Source/build/scripts" | 10 _scripts_dir = "//third_party/WebKit/Source/build/scripts" |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 } | 130 } |
131 } | 131 } |
132 | 132 |
133 # Template for scripts using css_properties.py. This is a special case of | 133 # Template for scripts using css_properties.py. This is a special case of |
134 # process_in_files. | 134 # process_in_files. |
135 # outputs: expected results | 135 # outputs: expected results |
136 template("css_properties") { | 136 template("css_properties") { |
137 process_in_files(target_name) { | 137 process_in_files(target_name) { |
138 script = invoker.script | 138 script = invoker.script |
139 in_files = [ "css/CSSProperties.json5" ] | 139 in_files = [ "css/CSSProperties.json5" ] |
| 140 if (defined(invoker.in_files)) { |
| 141 in_files += invoker.in_files |
| 142 } |
140 other_inputs = css_properties_files | 143 other_inputs = css_properties_files |
141 if (defined(invoker.other_inputs)) { | 144 if (defined(invoker.other_inputs)) { |
142 other_inputs += invoker.other_inputs | 145 other_inputs += invoker.other_inputs |
143 } | 146 } |
144 other_args = [ | 147 other_args = [ |
145 "--gperf", | 148 "--gperf", |
146 gperf_exe, | 149 gperf_exe, |
147 ] | 150 ] |
148 outputs = invoker.outputs | 151 outputs = invoker.outputs |
149 } | 152 } |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
195 other_inputs = make_event_factory_files | 198 other_inputs = make_event_factory_files |
196 forward_variables_from(invoker, | 199 forward_variables_from(invoker, |
197 [ | 200 [ |
198 "deps", | 201 "deps", |
199 "in_files", | 202 "in_files", |
200 "outputs", | 203 "outputs", |
201 "visibility", | 204 "visibility", |
202 ]) | 205 ]) |
203 } | 206 } |
204 } | 207 } |
OLD | NEW |