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

Side by Side Diff: build/common.gypi

Issue 113999: Run real dsymutil to get a real .dSYM for Breakpad dump_syms (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 6 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 | « breakpad/breakpad.gyp ('k') | chrome/chrome.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 # .gyp files should set chromium_code to 1 if they build Chromium-specific 7 # .gyp files should set chromium_code to 1 if they build Chromium-specific
8 # code, as opposed to external code. This variable is used to control 8 # code, as opposed to external code. This variable is used to control
9 # such things as the set of warnings to enable, and whether warnings are 9 # such things as the set of warnings to enable, and whether warnings are
10 # treated as errors. 10 # treated as errors.
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after
338 ], 338 ],
339 'ldflags': [ 339 'ldflags': [
340 '-m32', 340 '-m32',
341 ], 341 ],
342 }], 342 }],
343 ], 343 ],
344 }, 344 },
345 }], 345 }],
346 ['OS=="mac"', { 346 ['OS=="mac"', {
347 'target_defaults': { 347 'target_defaults': {
348 'variables': {
349 # This should be 'mac_real_dsym%', but there seems to be a bug
350 # with % in variables that are intended to be set to different
351 # values in different targets, like this one.
352 'mac_real_dsym': 0, # Fake .dSYMs are fine in most cases.
353 },
348 'mac_bundle': 0, 354 'mac_bundle': 0,
349 'xcode_settings': { 355 'xcode_settings': {
350 'ALWAYS_SEARCH_USER_PATHS': 'NO', 356 'ALWAYS_SEARCH_USER_PATHS': 'NO',
351 'GCC_C_LANGUAGE_STANDARD': 'c99', 357 'GCC_C_LANGUAGE_STANDARD': 'c99',
352 'GCC_CW_ASM_SYNTAX': 'NO', 358 'GCC_CW_ASM_SYNTAX': 'NO',
353 'GCC_ENABLE_PASCAL_STRINGS': 'NO', 359 'GCC_ENABLE_PASCAL_STRINGS': 'NO',
354 'GCC_INLINES_ARE_PRIVATE_EXTERN': 'YES', 360 'GCC_INLINES_ARE_PRIVATE_EXTERN': 'YES',
355 'GCC_OBJC_CALL_CXX_CDTORS': 'YES', 361 'GCC_OBJC_CALL_CXX_CDTORS': 'YES',
356 'GCC_SYMBOLS_PRIVATE_EXTERN': 'YES', 362 'GCC_SYMBOLS_PRIVATE_EXTERN': 'YES',
357 'GCC_TREAT_WARNINGS_AS_ERRORS': 'YES', 363 'GCC_TREAT_WARNINGS_AS_ERRORS': 'YES',
(...skipping 10 matching lines...) Expand all
368 ], 374 ],
369 }, 375 },
370 'target_conditions': [ 376 'target_conditions': [
371 ['_type!="static_library"', { 377 ['_type!="static_library"', {
372 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']}, 378 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']},
373 }], 379 }],
374 ['_mac_bundle', { 380 ['_mac_bundle', {
375 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-ObjC']}, 381 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-ObjC']},
376 }], 382 }],
377 ['_type=="executable"', { 383 ['_type=="executable"', {
378 'postbuilds': [ 384 'target_conditions': [
379 { 385 ['mac_real_dsym == 1', {
380 'variables': { 386 # To get a real .dSYM bundle produced by dsymutil, set the
381 # Define strip_from_xcode in a variable ending in _path so 387 # debug information format to dwarf-with-dsym. Since
382 # that gyp understands it's a path and performs proper 388 # strip_from_xcode will not be used, set Xcode to do the
383 # relativization during dict merging. 389 # stripping as well.
384 'strip_from_xcode_path': 'mac/strip_from_xcode', 390 'configurations': {
391 'Release': {
392 'xcode_settings': {
393 'DEBUG_INFORMATION_FORMAT': 'dwarf-with-dsym',
394 'DEPLOYMENT_POSTPROCESSING': 'YES',
395 'STRIP_INSTALLED_PRODUCT': 'YES',
396 },
397 },
385 }, 398 },
386 'postbuild_name': 'Strip If Needed', 399 }, { # mac_real_dsym != 1
387 'action': ['<(strip_from_xcode_path)'], 400 # To get a fast fake .dSYM bundle, use a post-build step to
388 }, 401 # produce the .dSYM and strip the executable. strip_from_xcode
402 # only operates in the Release configuration.
403 'postbuilds': [
404 {
405 'variables': {
406 # Define strip_from_xcode in a variable ending in _path
407 # so that gyp understands it's a path and performs proper
408 # relativization during dict merging.
409 'strip_from_xcode_path': 'mac/strip_from_xcode',
410 },
411 'postbuild_name': 'Strip If Needed',
412 'action': ['<(strip_from_xcode_path)'],
413 },
414 ],
415 }],
389 ], 416 ],
390 }], 417 }],
391 ], 418 ],
392 }, 419 },
393 }], 420 }],
394 ['OS=="win"', { 421 ['OS=="win"', {
395 'target_defaults': { 422 'target_defaults': {
396 'defines': [ 423 'defines': [
397 '_WIN32_WINNT=0x0600', 424 '_WIN32_WINNT=0x0600',
398 'WINVER=0x0600', 425 'WINVER=0x0600',
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
491 # settings in target dicts. SYMROOT is a special case, because many other 518 # settings in target dicts. SYMROOT is a special case, because many other
492 # Xcode variables depend on it, including variables such as 519 # Xcode variables depend on it, including variables such as
493 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something 520 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something
494 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the 521 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the
495 # files to appear (when present) in the UI as actual files and not red 522 # files to appear (when present) in the UI as actual files and not red
496 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, 523 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
497 # and therefore SYMROOT, needs to be set at the project level. 524 # and therefore SYMROOT, needs to be set at the project level.
498 'SYMROOT': '<(DEPTH)/xcodebuild', 525 'SYMROOT': '<(DEPTH)/xcodebuild',
499 }, 526 },
500 } 527 }
OLDNEW
« no previous file with comments | « breakpad/breakpad.gyp ('k') | chrome/chrome.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698