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

Side by Side Diff: build/secondary/tools/grit/repack.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
« no previous file with comments | « build/secondary/tools/grit/grit_rule.gni ('k') | build/util/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 # This file defines a template to invoke grit repack in a consistent manner. 5 # This file defines a template to invoke grit repack in a consistent manner.
6 # 6 #
7 # Parameters: 7 # Parameters:
8 # sources [required] 8 # sources [required]
9 # List of pak files that need to be combined. 9 # List of pak files that need to be combined.
10 # 10 #
(...skipping 10 matching lines...) Expand all
21 action(target_name) { 21 action(target_name) {
22 assert(defined(invoker.sources), "Need sources for $target_name") 22 assert(defined(invoker.sources), "Need sources for $target_name")
23 assert(defined(invoker.output), "Need output for $target_name") 23 assert(defined(invoker.output), "Need output for $target_name")
24 24
25 if (defined(invoker.visibility)) { 25 if (defined(invoker.visibility)) {
26 visibility = invoker.visibility 26 visibility = invoker.visibility
27 } 27 }
28 28
29 script = "//tools/grit/grit/format/repack.py" 29 script = "//tools/grit/grit/format/repack.py"
30 30
31 source_prereqs = invoker.sources 31 inputs = invoker.sources
32 outputs = [ invoker.output ] 32 outputs = [ invoker.output ]
33 33
34 args = [] 34 args = []
35 if (defined(invoker.repack_options)) { 35 if (defined(invoker.repack_options)) {
36 args += invoker.repack_options 36 args += invoker.repack_options
37 } 37 }
38 args += [ rebase_path(invoker.output, root_build_dir) ] 38 args += [ rebase_path(invoker.output, root_build_dir) ]
39 args += rebase_path(invoker.sources, root_build_dir) 39 args += rebase_path(invoker.sources, root_build_dir)
40 40
41 if (defined(invoker.deps)) { 41 if (defined(invoker.deps)) {
42 deps = invoker.deps 42 deps = invoker.deps
43 } 43 }
44 } 44 }
45 } 45 }
OLDNEW
« no previous file with comments | « build/secondary/tools/grit/grit_rule.gni ('k') | build/util/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698