| 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 1640 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 }], | |
| 1666 ['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', { |
| 1667 'cflags_cc!': ['-fno-rtti'], | 1662 'cflags_cc!': ['-fno-rtti'], |
| 1668 'cflags_cc+': [ | 1663 'cflags_cc+': [ |
| 1669 '-frtti', | 1664 '-frtti', |
| 1670 '-gline-tables-only', | 1665 '-gline-tables-only', |
| 1671 '-fintercept-allocation-functions', | 1666 '-fintercept-allocation-functions', |
| 1672 ], | 1667 ], |
| 1673 'defines': ['TYPE_PROFILING'], | 1668 'defines': ['TYPE_PROFILING'], |
| 1674 'dependencies': [ | 1669 'dependencies': [ |
| 1675 '<(DEPTH)/base/allocator/allocator.gyp:type_profiler', | 1670 '<(DEPTH)/base/allocator/allocator.gyp:type_profiler', |
| (...skipping 1852 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3528 'xcode_settings': { | 3523 'xcode_settings': { |
| 3529 'OTHER_LDFLAGS': [ | 3524 'OTHER_LDFLAGS': [ |
| 3530 '-fsanitize=address', | 3525 '-fsanitize=address', |
| 3531 ], | 3526 ], |
| 3532 }, | 3527 }, |
| 3533 }], | 3528 }], |
| 3534 ], | 3529 ], |
| 3535 }], | 3530 }], |
| 3536 ['_mac_bundle', { | 3531 ['_mac_bundle', { |
| 3537 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-ObjC']}, | 3532 '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 ], | |
| 3561 }], | 3533 }], |
| 3562 ], # target_conditions | 3534 ], # target_conditions |
| 3563 }, # target_defaults | 3535 }, # target_defaults |
| 3564 }], # OS=="mac" or OS=="ios" | 3536 }], # OS=="mac" or OS=="ios" |
| 3565 ['OS=="mac"', { | 3537 ['OS=="mac"', { |
| 3566 'target_defaults': { | 3538 'target_defaults': { |
| 3567 'variables': { | 3539 'variables': { |
| 3568 # These should end with %, but there seems to be a bug with % in | 3540 # These should end with %, but there seems to be a bug with % in |
| 3569 # variables that are intended to be set to different values in | 3541 # variables that are intended to be set to different values in |
| 3570 # different targets, like these. | 3542 # different targets, like these. |
| (...skipping 574 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4145 # settings in target dicts. SYMROOT is a special case, because many other | 4117 # settings in target dicts. SYMROOT is a special case, because many other |
| 4146 # Xcode variables depend on it, including variables such as | 4118 # Xcode variables depend on it, including variables such as |
| 4147 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 4119 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
| 4148 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 4120 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
| 4149 # files to appear (when present) in the UI as actual files and not red | 4121 # files to appear (when present) in the UI as actual files and not red |
| 4150 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 4122 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
| 4151 # and therefore SYMROOT, needs to be set at the project level. | 4123 # and therefore SYMROOT, needs to be set at the project level. |
| 4152 'SYMROOT': '<(DEPTH)/xcodebuild', | 4124 'SYMROOT': '<(DEPTH)/xcodebuild', |
| 4153 }, | 4125 }, |
| 4154 } | 4126 } |
| OLD | NEW |