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

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.
tony 2011/03/25 18:07:04 Should these files be in tools/grit/ near grit_inf
TVL 2011/03/25 18:15:53 That was my first thought also, but they actually
Mark Mentovai 2011/03/25 18:22:07 TVL wrote:
tony 2011/03/25 18:45:34 My main concern was src/build/ getting too crowded
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 #
Mark Mentovai 2011/03/25 18:22:07 Remove this line.
TVL 2011/03/25 18:33:30 Done.
11
12 # It would be really nice to do this with a rule instead of actions, but
13 # the need to come up with inputs/outputs (via grit_info) on a per file
14 # basis causes the problem. GYP Rules could be extended to do this, but
Mark Mentovai 2011/03/25 18:22:07 “causes the problem”—which problem, you haven’t in
Mark Mentovai 2011/03/25 18:22:07 Rules use a lowercase R.
TVL 2011/03/25 18:33:30 Done.
15 # then every generator would have to be able to do it, because that is when
Mark Mentovai 2011/03/25 18:22:07 but then every generator would need to be updated
TVL 2011/03/25 18:33:30 Done.
16 # the rules are expanded/applied.
17
18 {
19 'variables': {
20 'grit_info_cmd': ['python', '<(DEPTH)/tools/grit/grit_info.py',
21 '<@(grit_defines)'],
22 'grit_cmd': ['python', '<(DEPTH)/tools/grit/grit.py'],
23 },
24 'inputs': [
25 '<!@(<(grit_info_cmd) --inputs <(grit_grd_file))',
Mark Mentovai 2011/03/25 17:48:55 Does this list grit.py itself (and any in-tree Pyt
tony 2011/03/25 18:07:04 Yes, it should.
26 ],
27 'outputs': [
28 '<!@(<(grit_info_cmd) --outputs \'<(grit_out_dir)\' <(grit_grd_file))',
29 ],
30 'action': ['<@(grit_cmd)',
31 '-i', '<(grit_grd_file)', 'build',
32 '-o', '<(grit_out_dir)',
33 '<@(grit_defines)' ],
34 'message': 'Generating resources from <(grit_grd_file)',
35 }
36
37 # Local Variables:
38 # tab-width:2
39 # indent-tabs-mode:nil
40 # End:
41 # vim: set expandtab tabstop=2 shiftwidth=2:
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698