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

Side by Side Diff: build/grit_action.gypi

Issue 6705030: Standardize grit invokes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 9 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
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 # Copyright (c) 2011 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 # This file is meant to be included into an action to invoke grit in a
6 # consistent manner. To use this the following variables need to be
7 # defined:
8 # grit_grd_file: string: grd file path
9 # grit_out_dir: string: the output directory path
10
11 # It would be really nice to do this with a rule instead of actions, but
12 # the need to come up with inputs/outputs (via grit_info) on a per file
13 # basis which can't currently be done. GYP rules could be extended to do
Mark Mentovai 2011/03/25 20:16:53 I think you meant “but it would need to determine
14 # this, but then every generator would need to be updated to handle this,
15 # because that is when the rules are expanded/applied.
16
17 {
18 'variables': {
19 'grit_info_cmd': ['python', '<(DEPTH)/tools/grit/grit_info.py',
20 '<@(grit_defines)'],
21 'grit_cmd': ['python', '<(DEPTH)/tools/grit/grit.py'],
22 },
23 'inputs': [
24 '<!@(<(grit_info_cmd) --inputs <(grit_grd_file))',
25 ],
26 'outputs': [
27 '<!@(<(grit_info_cmd) --outputs \'<(grit_out_dir)\' <(grit_grd_file))',
28 ],
29 'action': ['<@(grit_cmd)',
30 '-i', '<(grit_grd_file)', 'build',
31 '-o', '<(grit_out_dir)',
32 '<@(grit_defines)' ],
33 'message': 'Generating resources from <(grit_grd_file)',
34 }
35
36 # Local Variables:
37 # tab-width:2
38 # indent-tabs-mode:nil
39 # End:
40 # vim: set expandtab tabstop=2 shiftwidth=2:
OLDNEW
« build/common.gypi ('K') | « build/common.gypi ('k') | build/grit_target.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698