OLD | NEW |
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 1639 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1650 # See http://gcc.gnu.org/onlinedocs/gcc-4.4.2/gcc/Optimize-Options.htm
l | 1650 # See http://gcc.gnu.org/onlinedocs/gcc-4.4.2/gcc/Optimize-Options.htm
l |
1651 'mac_release_optimization%': '3', # Use -O3 unless overridden | 1651 'mac_release_optimization%': '3', # Use -O3 unless overridden |
1652 'mac_debug_optimization%': '0', # Use -O0 unless overridden | 1652 'mac_debug_optimization%': '0', # Use -O0 unless overridden |
1653 }], | 1653 }], |
1654 ], | 1654 ], |
1655 }, | 1655 }, |
1656 # TODO(teravest): Remove this define once uses of USE_SKIA are cleaned up | 1656 # TODO(teravest): Remove this define once uses of USE_SKIA are cleaned up |
1657 # throughout the codebase. | 1657 # throughout the codebase. |
1658 'defines' : ['USE_SKIA'], | 1658 'defines' : ['USE_SKIA'], |
1659 'conditions': [ | 1659 'conditions': [ |
| 1660 ['asan==1', { |
| 1661 'dependencies': [ |
| 1662 '<(DEPTH)/build/mac/asan.gyp:asan_dynamic_runtime', |
| 1663 ], |
| 1664 }], |
1660 ['OS=="linux" and linux_use_tcmalloc==1 and clang_type_profiler==1', { | 1665 ['OS=="linux" and linux_use_tcmalloc==1 and clang_type_profiler==1', { |
1661 'cflags_cc!': ['-fno-rtti'], | 1666 'cflags_cc!': ['-fno-rtti'], |
1662 'cflags_cc+': [ | 1667 'cflags_cc+': [ |
1663 '-frtti', | 1668 '-frtti', |
1664 '-gline-tables-only', | 1669 '-gline-tables-only', |
1665 '-fintercept-allocation-functions', | 1670 '-fintercept-allocation-functions', |
1666 ], | 1671 ], |
1667 'defines': ['TYPE_PROFILING'], | 1672 'defines': ['TYPE_PROFILING'], |
1668 'dependencies': [ | 1673 'dependencies': [ |
1669 '<(DEPTH)/base/allocator/allocator.gyp:type_profiler', | 1674 '<(DEPTH)/base/allocator/allocator.gyp:type_profiler', |
(...skipping 1849 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3519 'xcode_settings': { | 3524 'xcode_settings': { |
3520 'OTHER_LDFLAGS': [ | 3525 'OTHER_LDFLAGS': [ |
3521 '-fsanitize=address', | 3526 '-fsanitize=address', |
3522 ], | 3527 ], |
3523 }, | 3528 }, |
3524 }], | 3529 }], |
3525 ], | 3530 ], |
3526 }], | 3531 }], |
3527 ['_mac_bundle', { | 3532 ['_mac_bundle', { |
3528 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-ObjC']}, | 3533 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-ObjC']}, |
| 3534 'target_conditions': [ |
| 3535 ['_type=="executable"', { |
| 3536 'conditions': [ |
| 3537 ['asan==1', { |
| 3538 'postbuilds': [ |
| 3539 { |
| 3540 'variables': { |
| 3541 # Define copy_asan_dylib_path in a variable ending in |
| 3542 # _path so that gyp understands it's a path and |
| 3543 # performs proper relativization during dict merging. |
| 3544 'copy_asan_dylib_path': |
| 3545 'mac/copy_asan_runtime_dylib.sh', |
| 3546 }, |
| 3547 'postbuild_name': 'Copy ASan runtime dylib', |
| 3548 'action': [ |
| 3549 '<(copy_asan_dylib_path)', |
| 3550 ], |
| 3551 }, |
| 3552 ], |
| 3553 }], |
| 3554 ], |
| 3555 }], |
| 3556 ], |
3529 }], | 3557 }], |
3530 ], # target_conditions | 3558 ], # target_conditions |
3531 }, # target_defaults | 3559 }, # target_defaults |
3532 }], # OS=="mac" or OS=="ios" | 3560 }], # OS=="mac" or OS=="ios" |
3533 ['OS=="mac"', { | 3561 ['OS=="mac"', { |
3534 'target_defaults': { | 3562 'target_defaults': { |
3535 'variables': { | 3563 'variables': { |
3536 # These should end with %, but there seems to be a bug with % in | 3564 # These should end with %, but there seems to be a bug with % in |
3537 # variables that are intended to be set to different values in | 3565 # variables that are intended to be set to different values in |
3538 # different targets, like these. | 3566 # different targets, like these. |
(...skipping 574 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4113 # settings in target dicts. SYMROOT is a special case, because many other | 4141 # settings in target dicts. SYMROOT is a special case, because many other |
4114 # Xcode variables depend on it, including variables such as | 4142 # Xcode variables depend on it, including variables such as |
4115 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 4143 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
4116 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 4144 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
4117 # files to appear (when present) in the UI as actual files and not red | 4145 # files to appear (when present) in the UI as actual files and not red |
4118 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 4146 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
4119 # and therefore SYMROOT, needs to be set at the project level. | 4147 # and therefore SYMROOT, needs to be set at the project level. |
4120 'SYMROOT': '<(DEPTH)/xcodebuild', | 4148 'SYMROOT': '<(DEPTH)/xcodebuild', |
4121 }, | 4149 }, |
4122 } | 4150 } |
OLD | NEW |