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