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

Side by Side Diff: app/app.gyp

Issue 6070011: Refactor grit -D flags into a gyp variable so we don't (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: works Created 9 years, 11 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 | « no previous file | build/common.gypi » ('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 (c) 2010 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2010 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 { 5 {
6 'variables': { 6 'variables': {
7 # TODO: remove this helper when we have loops in GYP 7 # TODO: remove this helper when we have loops in GYP
8 'apply_locales_cmd': ['python', '<(DEPTH)/build/apply_locales.py',], 8 'apply_locales_cmd': ['python', '<(DEPTH)/build/apply_locales.py',],
9 'chromium_code': 1, 9 'chromium_code': 1,
10 'grit_info_cmd': ['python', '../tools/grit/grit_info.py',], 10 'grit_info_cmd': ['python', '../tools/grit/grit_info.py',],
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 'extension': 'grd', 102 'extension': 'grd',
103 'inputs': [ 103 'inputs': [
104 '<!@(<(grit_info_cmd) --inputs <(localizable_resources))', 104 '<!@(<(grit_info_cmd) --inputs <(localizable_resources))',
105 ], 105 ],
106 'outputs': [ 106 'outputs': [
107 '<(grit_out_dir)/<(RULE_INPUT_ROOT)/grit/<(RULE_INPUT_ROOT).h', 107 '<(grit_out_dir)/<(RULE_INPUT_ROOT)/grit/<(RULE_INPUT_ROOT).h',
108 # TODO: remove this helper when we have loops in GYP 108 # TODO: remove this helper when we have loops in GYP
109 '>!@(<(apply_locales_cmd) \'<(grit_out_dir)/<(RULE_INPUT_ROOT)/<(RUL E_INPUT_ROOT)_ZZLOCALE.pak\' <(locales))', 109 '>!@(<(apply_locales_cmd) \'<(grit_out_dir)/<(RULE_INPUT_ROOT)/<(RUL E_INPUT_ROOT)_ZZLOCALE.pak\' <(locales))',
110 ], 110 ],
111 'action': ['<@(grit_cmd)', '-i', '<(RULE_INPUT_PATH)', 111 'action': ['<@(grit_cmd)', '-i', '<(RULE_INPUT_PATH)',
112 'build', '-o', '<(grit_out_dir)/<(RULE_INPUT_ROOT)'], 112 'build', '-o', '<(grit_out_dir)/<(RULE_INPUT_ROOT)',
113 '<@(grit_defines)'],
113 'message': 'Generating resources from <(RULE_INPUT_PATH)', 114 'message': 'Generating resources from <(RULE_INPUT_PATH)',
114 'conditions': [
115 ['use_titlecase_in_grd_files==1', {
116 'action': ['-D', 'use_titlecase'],
117 }],
118 ['chromeos==1', {
119 'action': ['-D', 'chromeos'],
120 }],
121 ],
122 }, 115 },
123 ], 116 ],
124 'sources': [ 117 'sources': [
125 '<@(localizable_resources)', 118 '<@(localizable_resources)',
126 ], 119 ],
127 'direct_dependent_settings': { 120 'direct_dependent_settings': {
128 'include_dirs': [ 121 'include_dirs': [
129 '<(grit_out_dir)/app_locale_settings', 122 '<(grit_out_dir)/app_locale_settings',
130 '<(grit_out_dir)/app_strings', 123 '<(grit_out_dir)/app_strings',
131 ], 124 ],
(...skipping 15 matching lines...) Expand all
147 'input_path': 'resources/app_resources.grd', 140 'input_path': 'resources/app_resources.grd',
148 }, 141 },
149 'inputs': [ 142 'inputs': [
150 '<!@(<(grit_info_cmd) --inputs <(input_path))', 143 '<!@(<(grit_info_cmd) --inputs <(input_path))',
151 ], 144 ],
152 'outputs': [ 145 'outputs': [
153 '<!@(<(grit_info_cmd) --outputs \'<(grit_out_dir)/app_resources\' <( input_path))', 146 '<!@(<(grit_info_cmd) --outputs \'<(grit_out_dir)/app_resources\' <( input_path))',
154 ], 147 ],
155 'action': ['<@(grit_cmd)', 148 'action': ['<@(grit_cmd)',
156 '-i', '<(input_path)', 'build', 149 '-i', '<(input_path)', 'build',
157 '-o', '<(grit_out_dir)/app_resources'], 150 '-o', '<(grit_out_dir)/app_resources',
158 'conditions': [ 151 '<@(grit_defines)' ],
159 ['toolkit_views==1', {
160 'action': ['-D', 'toolkit_views'],
161 }],
162 ],
163 'message': 'Generating resources from <(input_path)', 152 'message': 'Generating resources from <(input_path)',
164 }, 153 },
165 ], 154 ],
166 'direct_dependent_settings': { 155 'direct_dependent_settings': {
167 'include_dirs': [ 156 'include_dirs': [
168 '<(grit_out_dir)/app_resources', 157 '<(grit_out_dir)/app_resources',
169 ], 158 ],
170 }, 159 },
171 'conditions': [ 160 'conditions': [
172 ['OS=="win"', { 161 ['OS=="win"', {
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 }], 203 }],
215 }], 204 }],
216 ], 205 ],
217 } 206 }
218 207
219 # Local Variables: 208 # Local Variables:
220 # tab-width:2 209 # tab-width:2
221 # indent-tabs-mode:nil 210 # indent-tabs-mode:nil
222 # End: 211 # End:
223 # vim: set expandtab tabstop=2 shiftwidth=2: 212 # vim: set expandtab tabstop=2 shiftwidth=2:
OLDNEW
« no previous file with comments | « no previous file | build/common.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698