OLD | NEW |
---|---|
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 'variables': { | 5 'variables': { |
6 'chromium_code': 1, | 6 'chromium_code': 1, |
7 | 7 |
8 'variables': { | 8 'variables': { |
9 'version_py_path': 'tools/build/version.py', | 9 'version_py_path': 'tools/build/version.py', |
10 'version_path': 'VERSION', | 10 'version_path': 'VERSION', |
(...skipping 24 matching lines...) Expand all Loading... | |
35 '../third_party/WebKit/Source/WebKit/chromium/WebKit.gyp:inspector_resourc es', | 35 '../third_party/WebKit/Source/WebKit/chromium/WebKit.gyp:inspector_resourc es', |
36 ], | 36 ], |
37 'nacl_win64_dependencies': [ | 37 'nacl_win64_dependencies': [ |
38 'common_nacl_win64', | 38 'common_nacl_win64', |
39 'common_constants_win64', | 39 'common_constants_win64', |
40 'installer_util_nacl_win64', | 40 'installer_util_nacl_win64', |
41 ], | 41 ], |
42 'allocator_target': '../base/allocator/allocator.gyp:allocator', | 42 'allocator_target': '../base/allocator/allocator.gyp:allocator', |
43 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/chrome', | 43 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/chrome', |
44 'protoc_out_dir': '<(SHARED_INTERMEDIATE_DIR)/protoc_out', | 44 'protoc_out_dir': '<(SHARED_INTERMEDIATE_DIR)/protoc_out', |
45 'chrome_strings_grds': [ | |
46 # Localizable resources. | |
47 'app/resources/locale_settings.grd', | |
48 'app/chromium_strings.grd', | |
49 'app/generated_resources.grd', | |
50 'app/google_chrome_strings.grd', | |
51 ], | |
52 'chrome_resources_grds': [ | |
53 # Data resources. | |
54 'browser/autofill/autofill_resources.grd', | |
55 'browser/browser_resources.grd', | |
56 'common/common_resources.grd', | |
57 'renderer/renderer_resources.grd', | |
58 ], | |
59 'chrome_extra_resources_grds': [ | |
60 # These resources end up in resources.pak because they are resources | |
61 # used by internal pages. Putting them in a spearate pak file makes | |
62 # it easier for us to reference them internally. | |
63 'browser/resources/component_extension_resources.grd', | |
64 'browser/resources/net_internals_resources.grd', | |
65 'browser/resources/shared_resources.grd', | |
66 'browser/resources/sync_internals_resources.grd', | |
67 ], | |
68 'grit_info_cmd': ['python', '../tools/grit/grit_info.py', | |
69 '<@(grit_defines)'], | |
70 'grit_cmd': ['python', '../tools/grit/grit.py'], | |
71 'repack_locales_cmd': ['python', 'tools/build/repack_locales.py'], | 45 'repack_locales_cmd': ['python', 'tools/build/repack_locales.py'], |
72 # TODO: remove this helper when we have loops in GYP | 46 # TODO: remove this helper when we have loops in GYP |
73 'apply_locales_cmd': ['python', '<(DEPTH)/build/apply_locales.py'], | 47 'apply_locales_cmd': ['python', '<(DEPTH)/build/apply_locales.py'], |
74 'conditions': [ | 48 'conditions': [ |
49 # .grd files in chrome/ need the build type. | |
50 ['branding=="Chrome"', { | |
51 # TODO(mmoss) The .grd files look for _google_chrome, but for | |
52 # consistency they should look for GOOGLE_CHROME_BUILD like C++. | |
53 # Clean this up when Windows moves to gyp. | |
tony
2011/03/25 18:07:04
I don't think this TODO applies to this code. It
TVL
2011/03/25 18:15:53
oops, right.
| |
54 'grit_defines': ['-E', 'CHROMIUM_BUILD=google_chrome'], | |
55 }, { # else: branding!="Chrome" | |
56 'grit_defines': ['-E', 'CHROMIUM_BUILD=chromium'], | |
tony
2011/03/25 18:07:04
I would just move this into build/common.gypi (nea
TVL
2011/03/25 18:15:53
ok
| |
57 }], | |
75 ['OS=="win"', { | 58 ['OS=="win"', { |
76 'nacl_defines': [ | 59 'nacl_defines': [ |
77 'NACL_WINDOWS=1', | 60 'NACL_WINDOWS=1', |
78 'NACL_LINUX=0', | 61 'NACL_LINUX=0', |
79 'NACL_OSX=0', | 62 'NACL_OSX=0', |
80 ], | 63 ], |
81 'platform_locale_settings_grd': | 64 'platform_locale_settings_grd': |
82 'app/resources/locale_settings_win.grd', | 65 'app/resources/locale_settings_win.grd', |
83 },], | 66 },], |
84 ['OS=="linux"', { | 67 ['OS=="linux"', { |
(...skipping 19 matching lines...) Expand all Loading... | |
104 'NACL_WINDOWS=0', | 87 'NACL_WINDOWS=0', |
105 'NACL_LINUX=0', | 88 'NACL_LINUX=0', |
106 'NACL_OSX=1', | 89 'NACL_OSX=1', |
107 ], | 90 ], |
108 'platform_locale_settings_grd': | 91 'platform_locale_settings_grd': |
109 'app/resources/locale_settings_mac.grd', | 92 'app/resources/locale_settings_mac.grd', |
110 'conditions': [ | 93 'conditions': [ |
111 ['branding=="Chrome"', { | 94 ['branding=="Chrome"', { |
112 'mac_bundle_id': 'com.google.Chrome', | 95 'mac_bundle_id': 'com.google.Chrome', |
113 'mac_creator': 'rimZ', | 96 'mac_creator': 'rimZ', |
97 # The policy .grd file also needs the bundle id. | |
98 'grit_defines': ['-D', 'mac_bundle_id=com.google.Chrome'], | |
114 }, { # else: branding!="Chrome" | 99 }, { # else: branding!="Chrome" |
115 'mac_bundle_id': 'org.chromium.Chromium', | 100 'mac_bundle_id': 'org.chromium.Chromium', |
116 'mac_creator': 'Cr24', | 101 'mac_creator': 'Cr24', |
102 # The policy .grd file also needs the bundle id. | |
103 'grit_defines': ['-D', 'mac_bundle_id=org.chromium.Chromium'], | |
117 }], # branding | 104 }], # branding |
118 ], # conditions | 105 ], # conditions |
119 }], # OS=="mac" | 106 }], # OS=="mac" |
120 ['target_arch=="ia32"', { | 107 ['target_arch=="ia32"', { |
121 'nacl_defines': [ | 108 'nacl_defines': [ |
122 # TODO(gregoryd): consider getting this from NaCl's common.gypi | 109 # TODO(gregoryd): consider getting this from NaCl's common.gypi |
123 'NACL_TARGET_SUBARCH=32', | 110 'NACL_TARGET_SUBARCH=32', |
124 'NACL_BUILD_SUBARCH=32', | 111 'NACL_BUILD_SUBARCH=32', |
125 ], | 112 ], |
126 }], | 113 }], |
(...skipping 26 matching lines...) Expand all Loading... | |
153 ], | 140 ], |
154 'targets': [ | 141 'targets': [ |
155 { | 142 { |
156 # TODO(mark): It would be better if each static library that needed | 143 # TODO(mark): It would be better if each static library that needed |
157 # to run grit would list its own .grd files, but unfortunately some | 144 # to run grit would list its own .grd files, but unfortunately some |
158 # of the static libraries currently have circular dependencies among | 145 # of the static libraries currently have circular dependencies among |
159 # generated headers. | 146 # generated headers. |
160 'target_name': 'chrome_resources', | 147 'target_name': 'chrome_resources', |
161 'type': 'none', | 148 'type': 'none', |
162 'msvs_guid': 'B95AB527-F7DB-41E9-AD91-EB51EE0F56BE', | 149 'msvs_guid': 'B95AB527-F7DB-41E9-AD91-EB51EE0F56BE', |
163 'variables': { | 150 'actions': [ |
164 'chrome_resources_inputs': [ | 151 # Data resources. |
165 '<!@(<(grit_info_cmd) --inputs <(chrome_resources_grds))', | |
166 ], | |
167 }, | |
168 'rules': [ | |
169 { | 152 { |
170 'rule_name': 'grit', | 153 'action_name': 'autofile_resources', |
tony
2011/03/25 18:07:04
Nit: autofile -> autofill
TVL
2011/03/25 18:15:53
oops
| |
171 'extension': 'grd', | |
172 'variables': { | 154 'variables': { |
173 'conditions': [ | 155 'grit_grd_file': 'browser/autofill/autofill_resources.grd', |
174 ['branding=="Chrome"', { | |
175 'branded_env': 'CHROMIUM_BUILD=google_chrome', | |
176 }, { # else: branding!="Chrome" | |
177 'branded_env': 'CHROMIUM_BUILD=chromium', | |
178 }], | |
179 ], | |
180 }, | 156 }, |
181 'inputs': [ | 157 # Grit action boiler plate. |
Mark Mentovai
2011/03/25 17:48:55
These comments all over the place are getting redu
TVL
2011/03/25 18:15:53
Yea, when you review it like this they are, but I
Mark Mentovai
2011/03/25 18:22:07
TVL wrote:
TVL
2011/03/25 18:33:30
ok, going away.
| |
182 '<@(chrome_resources_inputs)', | 158 'includes': [ '../build/grit_action.gypi' ], |
183 ], | 159 }, |
184 'outputs': [ | 160 { |
185 '<(grit_out_dir)/grit/<(RULE_INPUT_ROOT).h', | 161 'action_name': 'browser_resources', |
186 '<(grit_out_dir)/<(RULE_INPUT_ROOT).pak', | 162 'variables': { |
187 # TODO(bradnelson): move to something like this instead | 163 'grit_grd_file': 'browser/browser_resources.grd', |
188 #'<!@(<(grit_info_cmd) --outputs \'<(grit_out_dir)\' <(chrome_resour ces_grds))', | 164 }, |
189 # This currently cannot work because gyp only evaluates the | 165 # Grit action boiler plate. |
190 # outputs once (rather than per case where the rule applies). | 166 'includes': [ '../build/grit_action.gypi' ], |
191 # This means you end up with all the outputs from all the grd | 167 }, |
192 # files, which angers scons and confuses vstudio. | 168 { |
193 # One alternative would be to turn this into several actions, | 169 'action_name': 'common_resources', |
194 # but that would be rather verbose. | 170 'variables': { |
195 ], | 171 'grit_grd_file': 'common/common_resources.grd', |
196 'action': ['<@(grit_cmd)', '-i', | 172 }, |
197 '<(RULE_INPUT_PATH)', | 173 # Grit action boiler plate. |
198 'build', '-o', '<(grit_out_dir)', | 174 'includes': [ '../build/grit_action.gypi' ], |
199 '-E', '<(branded_env)', | 175 }, |
200 '<@(grit_defines)', | 176 { |
201 ], | 177 'action_name': 'renderer_resources', |
202 'message': 'Generating resources from <(RULE_INPUT_PATH)', | 178 'variables': { |
179 'grit_grd_file': 'renderer/renderer_resources.grd', | |
180 }, | |
181 # Grit action boiler plate. | |
182 'includes': [ '../build/grit_action.gypi' ], | |
203 }, | 183 }, |
204 ], | 184 ], |
205 'sources': [ | 185 # Grit target boiler plate. |
206 '<@(chrome_resources_grds)', | 186 'includes': [ '../build/grit_target.gypi' ], |
207 '<@(chrome_resources_inputs)', | |
208 ], | |
209 'direct_dependent_settings': { | |
210 'include_dirs': [ | |
211 '<(grit_out_dir)', | |
212 ], | |
213 }, | |
214 'conditions': [ | |
215 ['OS=="win"', { | |
216 'dependencies': ['../build/win/system.gyp:cygwin'], | |
217 }], | |
218 ], | |
219 }, | 187 }, |
220 { | 188 { |
221 # TODO(mark): It would be better if each static library that needed | 189 # TODO(mark): It would be better if each static library that needed |
222 # to run grit would list its own .grd files, but unfortunately some | 190 # to run grit would list its own .grd files, but unfortunately some |
223 # of the static libraries currently have circular dependencies among | 191 # of the static libraries currently have circular dependencies among |
224 # generated headers. | 192 # generated headers. |
225 'target_name': 'chrome_strings', | 193 'target_name': 'chrome_strings', |
226 'msvs_guid': 'D9DDAF60-663F-49CC-90DC-3D08CC3D1B28', | 194 'msvs_guid': 'D9DDAF60-663F-49CC-90DC-3D08CC3D1B28', |
227 'conditions': [ | 195 'conditions': [ |
228 ['OS=="win"', { | 196 ['OS=="win"', { |
229 # HACK(nsylvain): We want to enforce a fake dependency on | 197 # HACK(nsylvain): We want to enforce a fake dependency on |
230 # intaller_util_string. install_util depends on both | 198 # intaller_util_string. install_util depends on both |
231 # chrome_strings and installer_util_strings, but for some reasons | 199 # chrome_strings and installer_util_strings, but for some reasons |
232 # Incredibuild does not enforce it (most likely a bug). By changing | 200 # Incredibuild does not enforce it (most likely a bug). By changing |
233 # the type and making sure we depend on installer_util_strings, it | 201 # the type and making sure we depend on installer_util_strings, it |
234 # will always get built before installer_util. | 202 # will always get built before installer_util. |
235 'type': 'dummy_executable', | 203 'type': 'dummy_executable', |
236 'dependencies': ['../build/win/system.gyp:cygwin', | 204 'dependencies': ['installer_util_strings'], |
237 'installer_util_strings',], | |
238 }, { | 205 }, { |
239 'type': 'none', | 206 'type': 'none', |
240 }], | 207 }], |
241 ], | 208 ], |
242 'variables': { | 209 'actions': [ |
243 'chrome_strings_inputs': [ | 210 # Localizable resources. |
244 '<!@(<(grit_info_cmd) --inputs <(chrome_strings_grds))', | |
245 ], | |
246 }, | |
247 'rules': [ | |
248 { | 211 { |
249 'rule_name': 'grit', | 212 'action_name': 'locale_settings', |
250 'extension': 'grd', | 213 'variables': { |
251 'inputs': [ | 214 'grit_grd_file': 'app/resources/locale_settings.grd', |
252 '<@(chrome_strings_inputs)', | 215 }, |
253 ], | 216 # Grit action boiler plate. |
254 'outputs': [ | 217 'includes': [ '../build/grit_action.gypi' ], |
255 '<(grit_out_dir)/grit/<(RULE_INPUT_ROOT).h', | 218 }, |
256 # TODO: remove this helper when we have loops in GYP | 219 { |
257 '>!@(<(apply_locales_cmd) \'<(grit_out_dir)/<(RULE_INPUT_ROOT)_ZZLOC ALE.pak\' <(locales))', | 220 'action_name': 'chromium_strings.grd', |
258 # TODO(bradnelson): move to something like this | 221 'variables': { |
259 #'<!@(<(grit_info_cmd) --outputs \'<(grit_out_dir)\' <(chrome_string s_grds))', | 222 'grit_grd_file': 'app/chromium_strings.grd', |
260 # See comment in chrome_resources as to why. | 223 }, |
261 ], | 224 # Grit action boiler plate. |
262 'action': ['<@(grit_cmd)', '-i', | 225 'includes': [ '../build/grit_action.gypi' ], |
263 '<(RULE_INPUT_PATH)', | 226 }, |
264 'build', '-o', '<(grit_out_dir)', | 227 { |
265 '<@(grit_defines)' ], | 228 'action_name': 'generated_resources', |
266 'message': 'Generating resources from <(RULE_INPUT_PATH)', | 229 'variables': { |
230 'grit_grd_file': 'app/generated_resources.grd', | |
231 }, | |
232 # Grit action boiler plate. | |
233 'includes': [ '../build/grit_action.gypi' ], | |
234 }, | |
235 { | |
236 'action_name': 'google_chrome_strings', | |
237 'variables': { | |
238 'grit_grd_file': 'app/google_chrome_strings.grd', | |
239 }, | |
240 # Grit action boiler plate. | |
241 'includes': [ '../build/grit_action.gypi' ], | |
267 }, | 242 }, |
268 ], | 243 ], |
269 'sources': [ | 244 # Grit target boiler plate. |
270 '<@(chrome_strings_grds)', | 245 'includes': [ '../build/grit_target.gypi' ], |
271 '<@(chrome_strings_inputs)', | |
272 ], | |
273 'include_dirs': [ | |
274 '<(grit_out_dir)', | |
275 ], | |
276 'direct_dependent_settings': { | |
277 'include_dirs': [ | |
278 '<(grit_out_dir)', | |
279 ], | |
280 }, | |
281 }, | 246 }, |
282 { | 247 { |
283 # theme_resources also generates a .cc file, so it can't use the rules abo ve. | |
284 'target_name': 'theme_resources', | 248 'target_name': 'theme_resources', |
285 'type': 'none', | 249 'type': 'none', |
286 'msvs_guid' : 'A158FB0A-25E4-6523-6B5A-4BB294B73D31', | 250 'msvs_guid' : 'A158FB0A-25E4-6523-6B5A-4BB294B73D31', |
287 'actions': [ | 251 'actions': [ |
288 { | 252 { |
289 'action_name': 'theme_resources', | 253 'action_name': 'theme_resources', |
290 'variables': { | 254 'variables': { |
291 'input_path': 'app/theme/theme_resources.grd', | 255 'grit_grd_file': 'app/theme/theme_resources.grd', |
292 }, | 256 }, |
293 'inputs': [ | 257 # Grit action boiler plate. |
294 '<!@(<(grit_info_cmd) --inputs <(input_path))', | 258 'includes': [ '../build/grit_action.gypi' ], |
295 ], | |
296 'outputs': [ | |
297 '<!@(<(grit_info_cmd) --outputs \'<(grit_out_dir)\' <(input_path))', | |
298 ], | |
299 'action': [ | |
300 '<@(grit_cmd)', | |
301 '-i', '<(input_path)', 'build', | |
302 '-o', '<(grit_out_dir)', | |
303 '<@(grit_defines)', | |
304 ], | |
305 'message': 'Generating resources from <(input_path)', | |
306 }, | 259 }, |
307 ], | 260 ], |
308 'direct_dependent_settings': { | 261 # Grit target boiler plate. |
309 'include_dirs': [ | 262 'includes': [ '../build/grit_target.gypi' ], |
310 '<(grit_out_dir)', | |
311 ], | |
312 }, | |
313 'conditions': [ | |
314 ['OS=="win"', { | |
315 'dependencies': ['../build/win/system.gyp:cygwin'], | |
316 }], | |
317 ], | |
318 }, | 263 }, |
319 { | 264 { |
320 # locale_settings_<platform>.grd have slightly different outputs, so it | |
321 # can't use chrome_strings rules above. | |
322 'target_name': 'platform_locale_settings', | 265 'target_name': 'platform_locale_settings', |
323 'type': 'none', | 266 'type': 'none', |
324 'actions': [ | 267 'actions': [ |
325 { | 268 { |
326 'action_name': 'platform_locale_settings', | 269 'action_name': 'platform_locale_settings', |
327 'variables': { | 270 'variables': { |
328 'input_path': '<(platform_locale_settings_grd)', | 271 'grit_grd_file': '<(platform_locale_settings_grd)', |
329 }, | 272 }, |
330 'inputs': [ | 273 # Grit action boiler plate. |
331 '<!@(<(grit_info_cmd) --inputs <(input_path))', | 274 'includes': [ '../build/grit_action.gypi' ], |
332 ], | |
333 'outputs': [ | |
334 '<!@(<(grit_info_cmd) --outputs \'<(grit_out_dir)\' <(input_path))', | |
335 ], | |
336 'action': [ | |
337 '<@(grit_cmd)', | |
338 '-i', '<(input_path)', 'build', | |
339 '-o', '<(grit_out_dir)', | |
340 '<@(grit_defines)', | |
341 ], | |
342 'message': 'Generating resources from <(input_path)', | |
343 }, | 275 }, |
344 ], | 276 ], |
345 'direct_dependent_settings': { | 277 # Grit target boiler plate. |
346 'include_dirs': [ | 278 'includes': [ '../build/grit_target.gypi' ], |
347 '<(grit_out_dir)', | |
348 ], | |
349 }, | |
350 'conditions': [ | |
351 ['OS=="win"', { | |
352 'dependencies': ['../build/win/system.gyp:cygwin'], | |
353 }], | |
354 ], | |
355 }, | 279 }, |
356 { | 280 { |
357 'target_name': 'chrome_extra_resources', | 281 'target_name': 'chrome_extra_resources', |
358 'type': 'none', | 282 'type': 'none', |
359 'variables': { | |
360 'chrome_extra_resources_inputs': [ | |
361 '<!@(<(grit_info_cmd) --inputs <(chrome_extra_resources_grds))', | |
362 ], | |
363 }, | |
364 'rules': [ | |
365 { | |
366 'rule_name': 'grit', | |
367 'extension': 'grd', | |
368 'variables': { | |
369 'conditions': [ | |
370 ['branding=="Chrome"', { | |
371 'branded_env': 'CHROMIUM_BUILD=google_chrome', | |
372 }, { # else: branding!="Chrome" | |
373 'branded_env': 'CHROMIUM_BUILD=chromium', | |
374 }], | |
375 ], | |
376 }, | |
377 'inputs': [ | |
378 '<@(chrome_extra_resources_inputs)', | |
379 '<(SHARED_INTERMEDIATE_DIR)/devtools/devtools_resources.grd', | |
380 ], | |
381 'outputs': [ | |
382 '<(grit_out_dir)/grit/<(RULE_INPUT_ROOT).h', | |
383 '<(grit_out_dir)/<(RULE_INPUT_ROOT).pak', | |
384 '<(grit_out_dir)/grit/<(RULE_INPUT_ROOT)_map.cc', | |
385 '<(grit_out_dir)/grit/<(RULE_INPUT_ROOT)_map.h', | |
386 # TODO(bradnelson): move to something like this instead | |
387 #'<!@(<(grit_info_cmd) --outputs \'<(grit_out_dir)\' <(chrome_resour ces_grds))', | |
388 # This currently cannot work because gyp only evaluates the | |
389 # outputs once (rather than per case where the rule applies). | |
390 # This means you end up with all the outputs from all the grd | |
391 # files, which angers scons and confuses vstudio. | |
392 # One alternative would be to turn this into several actions, | |
393 # but that would be rather verbose. | |
394 ], | |
395 'action': ['<@(grit_cmd)', '-i', | |
396 '<(RULE_INPUT_PATH)', | |
397 'build', '-o', '<(grit_out_dir)', | |
398 '-D', 'SHARED_INTERMEDIATE_DIR=<(SHARED_INTERMEDIATE_DIR)', | |
399 '-E', '<(branded_env)', | |
400 '<@(grit_defines)', | |
401 ], | |
402 'message': 'Generating resources from <(RULE_INPUT_PATH)', | |
403 }, | |
404 ], | |
405 'sources': [ | |
406 '<@(chrome_extra_resources_grds)', | |
407 '<@(chrome_extra_resources_inputs)', | |
408 '<(SHARED_INTERMEDIATE_DIR)/devtools/devtools_resources.grd', | |
409 ], | |
410 'dependencies': [ | 283 'dependencies': [ |
411 '../third_party/WebKit/Source/WebKit/chromium/WebKit.gyp:generate_devtoo ls_grd', | 284 '../third_party/WebKit/Source/WebKit/chromium/WebKit.gyp:generate_devtoo ls_grd', |
412 ], | 285 ], |
413 'direct_dependent_settings': { | 286 # These resources end up in resources.pak because they are resources |
414 'include_dirs': [ | 287 # used by internal pages. Putting them in a spearate pak file makes |
415 '<(grit_out_dir)', | 288 # it easier for us to reference them internally. |
416 ], | 289 'actions': [ |
417 }, | 290 { |
418 'conditions': [ | 291 'action_name': 'component_extension_resources', |
419 ['OS=="win"', { | 292 'variables': { |
420 'dependencies': ['../build/win/system.gyp:cygwin'], | 293 'grit_grd_file': 'browser/resources/component_extension_resources.gr d', |
421 }], | 294 }, |
295 # Grit action boiler plate. | |
296 'includes': [ '../build/grit_action.gypi' ], | |
297 }, | |
298 { | |
299 'action_name': 'net_internals_resources', | |
300 'variables': { | |
301 'grit_grd_file': 'browser/resources/net_internals_resources.grd', | |
302 }, | |
303 # Grit action boiler plate. | |
304 'includes': [ '../build/grit_action.gypi' ], | |
305 }, | |
306 { | |
307 'action_name': 'shared_resources', | |
308 'variables': { | |
309 'grit_grd_file': 'browser/resources/shared_resources.grd', | |
310 }, | |
311 # Grit action boiler plate. | |
312 'includes': [ '../build/grit_action.gypi' ], | |
313 }, | |
314 { | |
315 'action_name': 'sync_internals_resources', | |
316 'variables': { | |
317 'grit_grd_file': 'browser/resources/sync_internals_resources.grd', | |
318 }, | |
319 # Grit action boiler plate. | |
320 'includes': [ '../build/grit_action.gypi' ], | |
321 }, | |
322 { | |
323 'action_name': 'devtools_resources', | |
324 # This can't use ../build/grit_action.gypi because the grd file | |
325 # is generated a build time, so the trick of using grit_info to get | |
326 # the real inputs/outputs at GYP time isn't possible. | |
tony
2011/03/25 18:07:04
Good job figuring this out :)
Sorry this target is
TVL
2011/03/25 18:15:53
Actions can't depend on anything, but the target d
tony
2011/03/25 18:45:34
Ah, I see. I guess that means any changes to gene
TVL
2011/03/25 18:48:43
Not completely, the actions only run according to
| |
327 'variables': { | |
328 'grit_cmd': ['python', '../tools/grit/grit.py'], | |
329 'grit_grd_file': '<(SHARED_INTERMEDIATE_DIR)/devtools/devtools_resou rces.grd', | |
330 }, | |
331 'inputs': [ | |
332 '<(grit_grd_file)', | |
333 ], | |
334 'outputs': [ | |
335 '<(grit_out_dir)/grit/devtools_resources.h', | |
336 '<(grit_out_dir)/devtools_resources.pak', | |
337 '<(grit_out_dir)/grit/devtools_resources_map.cc', | |
338 '<(grit_out_dir)/grit/devtools_resources_map.h', | |
339 ], | |
340 'action': ['<@(grit_cmd)', | |
341 '-i', '<(grit_grd_file)', 'build', | |
342 '-o', '<(grit_out_dir)', | |
343 '-D', 'SHARED_INTERMEDIATE_DIR=<(SHARED_INTERMEDIATE_DIR)', | |
344 '<@(grit_defines)' ], | |
345 'message': 'Generating resources from <(grit_grd_file)', | |
346 }, | |
422 ], | 347 ], |
348 # Grit target boiler plate. | |
349 'includes': [ '../build/grit_target.gypi' ], | |
423 }, | 350 }, |
424 { | 351 { |
425 'target_name': 'default_extensions', | 352 'target_name': 'default_extensions', |
426 'type': 'none', | 353 'type': 'none', |
427 'msvs_guid': 'DA9BAB64-91DC-419B-AFDE-6FF8C569E83A', | 354 'msvs_guid': 'DA9BAB64-91DC-419B-AFDE-6FF8C569E83A', |
428 'conditions': [ | 355 'conditions': [ |
429 ['OS=="win"', { | 356 ['OS=="win"', { |
430 'copies': [ | 357 'copies': [ |
431 { | 358 { |
432 'destination': '<(PRODUCT_DIR)/extensions', | 359 'destination': '<(PRODUCT_DIR)/extensions', |
(...skipping 512 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
945 '../testing/gtest.gyp:gtest', | 872 '../testing/gtest.gyp:gtest', |
946 '../third_party/libxslt/libxslt.gyp:libxslt', | 873 '../third_party/libxslt/libxslt.gyp:libxslt', |
947 '../third_party/npapi/npapi.gyp:npapi', | 874 '../third_party/npapi/npapi.gyp:npapi', |
948 ], | 875 ], |
949 'include_dirs': [ | 876 'include_dirs': [ |
950 '..', | 877 '..', |
951 ], | 878 ], |
952 'sources': [ | 879 'sources': [ |
953 'tools/ipclist/all_messages.h', | 880 'tools/ipclist/all_messages.h', |
954 'tools/ipclist/ipclist.cc', | 881 'tools/ipclist/ipclist.cc', |
955 ], | 882 ], |
956 }, | 883 }, |
957 ], | 884 ], |
958 'conditions': [ | 885 'conditions': [ |
959 ['OS=="mac"', | 886 ['OS=="mac"', |
960 { 'targets': [ | 887 { 'targets': [ |
961 { | 888 { |
962 'target_name': 'helper_app', | 889 'target_name': 'helper_app', |
963 'type': 'executable', | 890 'type': 'executable', |
964 'product_name': '<(mac_product_name) Helper', | 891 'product_name': '<(mac_product_name) Helper', |
965 'mac_bundle': 1, | 892 'mac_bundle': 1, |
(...skipping 710 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1676 }], # targets | 1603 }], # targets |
1677 }], # OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" | 1604 }], # OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" |
1678 ], # 'conditions' | 1605 ], # 'conditions' |
1679 } | 1606 } |
1680 | 1607 |
1681 # Local Variables: | 1608 # Local Variables: |
1682 # tab-width:2 | 1609 # tab-width:2 |
1683 # indent-tabs-mode:nil | 1610 # indent-tabs-mode:nil |
1684 # End: | 1611 # End: |
1685 # vim: set expandtab tabstop=2 shiftwidth=2: | 1612 # vim: set expandtab tabstop=2 shiftwidth=2: |
OLD | NEW |