Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(612)

Side by Side Diff: build/secondary/tools/grit/grit_rule.gni

Issue 375873006: Rename source_prereqs to inputs in the GN build. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 # Instantiate grit. This will produce a script target to run grit, and a 5 # Instantiate grit. This will produce a script target to run grit, and a
6 # static library that compiles the .cc files. 6 # static library that compiles the .cc files.
7 # 7 #
8 # Parameters 8 # Parameters
9 # 9 #
10 # source 10 # source
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 # (like "mycomponent/foo.h"). This config sets up the include path. 202 # (like "mycomponent/foo.h"). This config sets up the include path.
203 grit_config = target_name + "_grit_config" 203 grit_config = target_name + "_grit_config"
204 config(grit_config) { 204 config(grit_config) {
205 include_dirs = [ target_gen_dir ] 205 include_dirs = [ target_gen_dir ]
206 visibility = target_visibility 206 visibility = target_visibility
207 } 207 }
208 208
209 grit_custom_target = target_name + "_grit" 209 grit_custom_target = target_name + "_grit"
210 action(grit_custom_target) { 210 action(grit_custom_target) {
211 script = "//tools/grit/grit.py" 211 script = "//tools/grit/grit.py"
212 source_prereqs = grit_inputs 212 inputs = grit_inputs
213 outputs = grit_outputs 213 outputs = grit_outputs
214 214
215 args = [ 215 args = [
216 "-i", source_path, "build", 216 "-i", source_path, "build",
217 "-f", resource_ids, 217 "-f", resource_ids,
218 "-o", output_dir, 218 "-o", output_dir,
219 ] + grit_defines + grit_flags 219 ] + grit_defines + grit_flags
220 220
221 visibility = target_visibility 221 visibility = target_visibility
222 222
(...skipping 15 matching lines...) Expand all
238 direct_dependent_configs = [ ":$grit_config" ] 238 direct_dependent_configs = [ ":$grit_config" ]
239 239
240 if (defined(invoker.visibility)) { 240 if (defined(invoker.visibility)) {
241 visibility = invoker.visibility 241 visibility = invoker.visibility
242 } 242 }
243 if (defined(invoker.output_name)) { 243 if (defined(invoker.output_name)) {
244 output_name = invoker.output_name 244 output_name = invoker.output_name
245 } 245 }
246 } 246 }
247 } 247 }
OLDNEW
« no previous file with comments | « build/secondary/third_party/trace-viewer/BUILD.gn ('k') | build/secondary/tools/grit/repack.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698