Chromium Code Reviews

Side by Side Diff: app/app.gyp

Issue 219007: Rolling back 26904, didn't take chrome branding into account.... (Closed) Base URL: svn://chrome-svn.corp.google.com/chrome/trunk/src/
Patch Set: Created 11 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
« no previous file with comments | « no previous file | chrome/app/locales/locales.gyp » ('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) 2009 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2009 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', '../chrome/tools/build/apply_locales.py',], 8 'apply_locales_cmd': ['python', '../chrome/tools/build/apply_locales.py',],
9 'chromium_code': 1, 9 'chromium_code': 1,
10 'grit_info_cmd': ['python', '../tools/grit/grit_info.py',],
11 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/app',
12 'grit_cmd': ['python', '../tools/grit/grit.py'],
13 'localizable_resources': [
14 'resources/app_locale_settings.grd',
15 'resources/app_strings.grd',
16 ],
17 }, 10 },
18 'target_defaults': { 11 'target_defaults': {
19 'sources/': [ 12 'sources/': [
20 ['exclude', '/(cocoa|gtk|win)/'], 13 ['exclude', '/(cocoa|gtk|win)/'],
21 ['exclude', '_(cocoa|gtk|linux|mac|posix|skia|win|x)\\.(cc|mm?)$'], 14 ['exclude', '_(cocoa|gtk|linux|mac|posix|skia|win|x)\\.(cc|mm?)$'],
22 ['exclude', '/(gtk|win|x11)_[^/]*\\.cc$'], 15 ['exclude', '/(gtk|win|x11)_[^/]*\\.cc$'],
23 ], 16 ],
24 'conditions': [ 17 'conditions': [
25 ['OS=="linux"', {'sources/': [ 18 ['OS=="linux"', {'sources/': [
26 ['include', '/gtk/'], 19 ['include', '/gtk/'],
(...skipping 214 matching lines...)
241 }, 234 },
242 { 235 {
243 'target_name': 'app_strings', 236 'target_name': 'app_strings',
244 'msvs_guid': 'AE9BF4A2-19C5-49D8-BB1A-F28496DD7051', 237 'msvs_guid': 'AE9BF4A2-19C5-49D8-BB1A-F28496DD7051',
245 'type': 'none', 238 'type': 'none',
246 'rules': [ 239 'rules': [
247 { 240 {
248 'rule_name': 'grit', 241 'rule_name': 'grit',
249 'extension': 'grd', 242 'extension': 'grd',
250 'inputs': [ 243 'inputs': [
251 '<!@(<(grit_info_cmd) --inputs <(localizable_resources))', 244 '../tools/grit/grit.py',
252 ], 245 ],
246 'variables': {
247 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/app',
248 },
253 'outputs': [ 249 'outputs': [
254 '<(grit_out_dir)/<(RULE_INPUT_ROOT)/grit/<(RULE_INPUT_ROOT).h', 250 '<(SHARED_INTERMEDIATE_DIR)/app/grit/<(RULE_INPUT_ROOT).h',
255 # TODO: remove this helper when we have loops in GYP 251 # TODO: remove this helper when we have loops in GYP
256 '>!@(<(apply_locales_cmd) \'<(grit_out_dir)/<(RULE_INPUT_ROOT)/<(RUL E_INPUT_ROOT)_ZZLOCALE.pak\' <(locales))', 252 '>!@(<(apply_locales_cmd) \'<(SHARED_INTERMEDIATE_DIR)/app/<(RULE_IN PUT_ROOT)_ZZLOCALE.pak\' <(locales))',
257 ], 253 ],
258 'action': ['<@(grit_cmd)', '-i', '<(RULE_INPUT_PATH)', 254 'action': ['python', '<@(_inputs)', '-i', '<(RULE_INPUT_PATH)',
259 'build', '-o', '<(grit_out_dir)/<(RULE_INPUT_ROOT)'], 255 'build', '-o', '<(grit_out_dir)'],
260 'message': 'Generating resources from <(RULE_INPUT_PATH)', 256 'message': 'Generating resources from <(RULE_INPUT_PATH)',
261 'conditions': [ 257 'conditions': [
262 ['use_titlecase_in_grd_files==1', { 258 ['use_titlecase_in_grd_files==1', {
263 'action': ['-D', 'use_titlecase'], 259 'action': ['-D', 'use_titlecase'],
264 }], 260 }],
265 ], 261 ],
266 }, 262 },
267 ], 263 ],
268 'sources': [ 264 'sources': [
269 '<@(localizable_resources)', 265 # Localizable resources.
266 'resources/app_locale_settings.grd',
267 'resources/app_strings.grd',
270 ], 268 ],
271 'direct_dependent_settings': { 269 'direct_dependent_settings': {
272 'include_dirs': [ 270 'include_dirs': [
273 '<(grit_out_dir)/app_locale_settings', 271 '<(SHARED_INTERMEDIATE_DIR)/app',
274 '<(grit_out_dir)/app_strings',
275 ], 272 ],
276 }, 273 },
277 'conditions': [ 274 'conditions': [
278 ['OS=="win"', { 275 ['OS=="win"', {
279 'dependencies': ['../build/win/system.gyp:cygwin'], 276 'dependencies': ['../build/win/system.gyp:cygwin'],
280 }], 277 }],
281 ], 278 ],
282 }, 279 },
283 { 280 {
284 'target_name': 'app_resources', 281 'target_name': 'app_resources',
285 'type': 'none', 282 'type': 'none',
286 'msvs_guid': '3FBC4235-3FBD-46DF-AEDC-BADBBA13A095', 283 'msvs_guid': '3FBC4235-3FBD-46DF-AEDC-BADBBA13A095',
284 'variables': {
285 'grit_path': '../tools/grit/grit.py',
286 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/app',
287 },
287 'actions': [ 288 'actions': [
288 { 289 {
289 'action_name': 'app_resources', 290 'action_name': 'app_resources',
290 'variables': { 291 'variables': {
291 'input_path': 'resources/app_resources.grd', 292 'input_path': 'resources/app_resources.grd',
292 }, 293 },
293 'inputs': [ 294 'inputs': [
294 '<!@(<(grit_info_cmd) --inputs <(input_path))', 295 '<(input_path)',
295 ], 296 ],
296 'outputs': [ 297 'outputs': [
297 '<!@(<(grit_info_cmd) --outputs \'<(grit_out_dir)/app_resources\' <( input_path))', 298 '<(grit_out_dir)/grit/app_resources.h',
299 '<(grit_out_dir)/app_resources.pak',
300 '<(grit_out_dir)/app_resources.rc',
298 ], 301 ],
299 'action': ['<@(grit_cmd)', 302 'action': ['python', '<(grit_path)', '-i', '<(input_path)', 'build', ' -o', '<(grit_out_dir)'],
300 '-i', '<(input_path)', 'build',
301 '-o', '<(grit_out_dir)/app_resources'],
302 'message': 'Generating resources from <(input_path)', 303 'message': 'Generating resources from <(input_path)',
303 }, 304 },
304 ], 305 ],
305 'direct_dependent_settings': { 306 'direct_dependent_settings': {
306 'include_dirs': [ 307 'include_dirs': [
307 '<(grit_out_dir)/app_resources', 308 '<(SHARED_INTERMEDIATE_DIR)/app',
308 ], 309 ],
309 }, 310 },
310 'conditions': [ 311 'conditions': [
311 ['OS=="win"', { 312 ['OS=="win"', {
312 'dependencies': ['../build/win/system.gyp:cygwin'], 313 'dependencies': ['../build/win/system.gyp:cygwin'],
313 }], 314 }],
314 ], 315 ],
315 }, 316 },
316 { 317 {
317 'target_name': 'app_id', 318 'target_name': 'app_id',
318 'type': 'none', 319 'type': 'none',
319 'msvs_guid': '83100055-172B-49EA-B422-B1A92B627D37', 320 'msvs_guid': '83100055-172B-49EA-B422-B1A92B627D37',
320 'conditions': [ 321 'conditions': [
321 ['OS=="win"', 322 ['OS=="win"',
322 { 323 {
323 'actions': [ 324 'actions': [
324 { 325 {
325 'action_name': 'appid', 326 'action_name': 'appid',
326 'variables': { 327 'variables': {
327 'appid_py': '../chrome/tools/build/appid.py', 328 'appid_py': '../chrome/tools/build/appid.py',
328 }, 329 },
329 'conditions': [ 330 'conditions': [
330 [ 'branding=="Chrome"', { 331 [ 'branding=="Chrome"', {
331 'variables': { 332 'variables': {
332 'appid_value': '<(google_update_appid)', 333 'appid_value': '<(google_update_appid)',
333 }, 334 },
334 }, { # else 335 }, { # else
335 'variables': { 336 'variables': {
336 'appid_value': '', 337 'appid_value': '',
337 }, 338 },
338 }], 339 }],
339 ], 340 ],
340 'inputs': [ 341 'inputs': [
341 '<(appid_py)', 342 '<(appid_py)',
342 ], 343 ],
343 'outputs': [ 344 'outputs': [
344 '<(SHARED_INTERMEDIATE_DIR)/chrome/appid.h', 345 '<(SHARED_INTERMEDIATE_DIR)/chrome/appid.h',
345 'tools/build/_always_run_appid_py.marker', 346 'tools/build/_always_run_appid_py.marker',
346 ], 347 ],
347 'action': [ 348 'action': [
348 'python', 349 'python',
349 '<(appid_py)', 350 '<(appid_py)',
350 '-a', '<(appid_value)', 351 '-a', '<(appid_value)',
351 '-o', '<(SHARED_INTERMEDIATE_DIR)/chrome/appid.h', 352 '-o', '<(SHARED_INTERMEDIATE_DIR)/chrome/appid.h',
352 ], 353 ],
353 'process_outputs_as_sources': 1, 354 'process_outputs_as_sources': 1,
354 'message': 'Generating appid information in <(SHARED_INTERMEDIAT E_DIR)/chrome/appid.h' 355 'message': 'Generating appid information in <(SHARED_INTERMEDIAT E_DIR)/chrome/appid.h'
355 }, 356 },
356 ], 357 ],
357 }, 358 },
358 ], 359 ],
359 ], 360 ],
360 }, 361 },
361 ], 362 ],
362 } 363 }
OLDNEW
« no previous file with comments | « no previous file | chrome/app/locales/locales.gyp » ('j') | no next file with comments »

Powered by Google App Engine