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

Side by Side Diff: build/common.gypi

Issue 11642018: Add a postbuild action for executables built with ASan on Mac OS. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 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
« no previous file with comments | « build/all.gyp ('k') | build/mac/asan.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) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 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 # IMPORTANT: 5 # IMPORTANT:
6 # Please don't directly include this file if you are building via gyp_chromium, 6 # Please don't directly include this file if you are building via gyp_chromium,
7 # since gyp_chromium is automatically forcing its inclusion. 7 # since gyp_chromium is automatically forcing its inclusion.
8 { 8 {
9 # Variables expected to be overriden on the GYP command line (-D) or by 9 # Variables expected to be overriden on the GYP command line (-D) or by
10 # ~/.gyp/include.gypi. 10 # ~/.gyp/include.gypi.
(...skipping 1640 matching lines...) Expand 10 before | Expand all | Expand 10 after
1651 # See http://gcc.gnu.org/onlinedocs/gcc-4.4.2/gcc/Optimize-Options.htm l 1651 # See http://gcc.gnu.org/onlinedocs/gcc-4.4.2/gcc/Optimize-Options.htm l
1652 'mac_release_optimization%': '3', # Use -O3 unless overridden 1652 'mac_release_optimization%': '3', # Use -O3 unless overridden
1653 'mac_debug_optimization%': '0', # Use -O0 unless overridden 1653 'mac_debug_optimization%': '0', # Use -O0 unless overridden
1654 }], 1654 }],
1655 ], 1655 ],
1656 }, 1656 },
1657 # TODO(teravest): Remove this define once uses of USE_SKIA are cleaned up 1657 # TODO(teravest): Remove this define once uses of USE_SKIA are cleaned up
1658 # throughout the codebase. 1658 # throughout the codebase.
1659 'defines' : ['USE_SKIA'], 1659 'defines' : ['USE_SKIA'],
1660 'conditions': [ 1660 'conditions': [
1661 ['asan==1', {
1662 'dependencies': [
1663 '<(DEPTH)/build/mac/asan.gyp:asan_dynamic_runtime',
1664 ],
1665 }],
1661 ['OS=="linux" and linux_use_tcmalloc==1 and clang_type_profiler==1', { 1666 ['OS=="linux" and linux_use_tcmalloc==1 and clang_type_profiler==1', {
1662 'cflags_cc!': ['-fno-rtti'], 1667 'cflags_cc!': ['-fno-rtti'],
1663 'cflags_cc+': [ 1668 'cflags_cc+': [
1664 '-frtti', 1669 '-frtti',
1665 '-gline-tables-only', 1670 '-gline-tables-only',
1666 '-fintercept-allocation-functions', 1671 '-fintercept-allocation-functions',
1667 ], 1672 ],
1668 'defines': ['TYPE_PROFILING'], 1673 'defines': ['TYPE_PROFILING'],
1669 'dependencies': [ 1674 'dependencies': [
1670 '<(DEPTH)/base/allocator/allocator.gyp:type_profiler', 1675 '<(DEPTH)/base/allocator/allocator.gyp:type_profiler',
(...skipping 1852 matching lines...) Expand 10 before | Expand all | Expand 10 after
3523 'xcode_settings': { 3528 'xcode_settings': {
3524 'OTHER_LDFLAGS': [ 3529 'OTHER_LDFLAGS': [
3525 '-fsanitize=address', 3530 '-fsanitize=address',
3526 ], 3531 ],
3527 }, 3532 },
3528 }], 3533 }],
3529 ], 3534 ],
3530 }], 3535 }],
3531 ['_mac_bundle', { 3536 ['_mac_bundle', {
3532 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-ObjC']}, 3537 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-ObjC']},
3538 'target_conditions': [
3539 ['_type=="executable"', {
3540 'conditions': [
3541 ['asan==1', {
3542 'postbuilds': [
3543 {
3544 'variables': {
3545 # Define copy_asan_dylib_path in a variable ending in
3546 # _path so that gyp understands it's a path and
3547 # performs proper relativization during dict merging.
3548 'copy_asan_dylib_path':
3549 'mac/copy_asan_runtime_dylib.sh',
3550 },
3551 'postbuild_name': 'Copy ASan runtime dylib',
3552 'action': [
3553 '<(copy_asan_dylib_path)',
3554 ],
3555 },
3556 ],
3557 }],
3558 ],
3559 }],
3560 ],
3533 }], 3561 }],
3534 ], # target_conditions 3562 ], # target_conditions
3535 }, # target_defaults 3563 }, # target_defaults
3536 }], # OS=="mac" or OS=="ios" 3564 }], # OS=="mac" or OS=="ios"
3537 ['OS=="mac"', { 3565 ['OS=="mac"', {
3538 'target_defaults': { 3566 'target_defaults': {
3539 'variables': { 3567 'variables': {
3540 # These should end with %, but there seems to be a bug with % in 3568 # These should end with %, but there seems to be a bug with % in
3541 # variables that are intended to be set to different values in 3569 # variables that are intended to be set to different values in
3542 # different targets, like these. 3570 # different targets, like these.
(...skipping 574 matching lines...) Expand 10 before | Expand all | Expand 10 after
4117 # settings in target dicts. SYMROOT is a special case, because many other 4145 # settings in target dicts. SYMROOT is a special case, because many other
4118 # Xcode variables depend on it, including variables such as 4146 # Xcode variables depend on it, including variables such as
4119 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something 4147 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something
4120 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the 4148 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the
4121 # files to appear (when present) in the UI as actual files and not red 4149 # files to appear (when present) in the UI as actual files and not red
4122 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, 4150 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
4123 # and therefore SYMROOT, needs to be set at the project level. 4151 # and therefore SYMROOT, needs to be set at the project level.
4124 'SYMROOT': '<(DEPTH)/xcodebuild', 4152 'SYMROOT': '<(DEPTH)/xcodebuild',
4125 }, 4153 },
4126 } 4154 }
OLDNEW
« no previous file with comments | « build/all.gyp ('k') | build/mac/asan.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698