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 3470 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3481 ['_toolset=="target"', { | 3481 ['_toolset=="target"', { |
3482 'ldflags': [ | 3482 'ldflags': [ |
3483 # Workaround for linker OOM. | 3483 # Workaround for linker OOM. |
3484 '-Wl,--no-keep-memory', | 3484 '-Wl,--no-keep-memory', |
3485 ], | 3485 ], |
3486 }], | 3486 }], |
3487 ], | 3487 ], |
3488 }], | 3488 }], |
3489 ], | 3489 ], |
3490 }], | 3490 }], |
3491 ['component=="shared_library"', { | |
3492 # See crbug.com/112389. Also required for BACKTRACE() to work. | |
3493 # TODO(glider): replace with --dynamic-list or something | |
3494 'ldflags': ['-rdynamic'], | |
3495 }], | |
3496 ['linux_use_heapchecker==1', { | 3491 ['linux_use_heapchecker==1', { |
3497 'variables': {'linux_use_tcmalloc%': 1}, | 3492 'variables': {'linux_use_tcmalloc%': 1}, |
3498 'defines': [ | 3493 'defines': [ |
3499 'USE_HEAPCHECKER', | 3494 'USE_HEAPCHECKER', |
3500 'MEMORY_TOOL_REPLACES_ALLOCATOR', | 3495 'MEMORY_TOOL_REPLACES_ALLOCATOR', |
3501 ], | 3496 ], |
| 3497 'conditions': [ |
| 3498 ['component=="shared_library"', { |
| 3499 # See crbug.com/112389 |
| 3500 # TODO(glider): replace with --dynamic-list or something |
| 3501 'ldflags': ['-rdynamic'], |
| 3502 }], |
| 3503 ], |
3502 }], | 3504 }], |
3503 ['linux_use_tcmalloc==0 and android_use_tcmalloc==0', { | 3505 ['linux_use_tcmalloc==0 and android_use_tcmalloc==0', { |
3504 'defines': ['NO_TCMALLOC'], | 3506 'defines': ['NO_TCMALLOC'], |
3505 }], | 3507 }], |
3506 ['linux_keep_shadow_stacks==1', { | 3508 ['linux_keep_shadow_stacks==1', { |
3507 'defines': ['KEEP_SHADOW_STACKS'], | 3509 'defines': ['KEEP_SHADOW_STACKS'], |
3508 'cflags': [ | 3510 'cflags': [ |
3509 '-finstrument-functions', | 3511 '-finstrument-functions', |
3510 # Allow mmx intrinsics to inline, so that the compiler can expand | 3512 # Allow mmx intrinsics to inline, so that the compiler can expand |
3511 # the intrinsics. | 3513 # the intrinsics. |
(...skipping 1231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4743 # settings in target dicts. SYMROOT is a special case, because many other | 4745 # settings in target dicts. SYMROOT is a special case, because many other |
4744 # Xcode variables depend on it, including variables such as | 4746 # Xcode variables depend on it, including variables such as |
4745 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 4747 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
4746 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 4748 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
4747 # files to appear (when present) in the UI as actual files and not red | 4749 # files to appear (when present) in the UI as actual files and not red |
4748 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 4750 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
4749 # and therefore SYMROOT, needs to be set at the project level. | 4751 # and therefore SYMROOT, needs to be set at the project level. |
4750 'SYMROOT': '<(DEPTH)/xcodebuild', | 4752 'SYMROOT': '<(DEPTH)/xcodebuild', |
4751 }, | 4753 }, |
4752 } | 4754 } |
OLD | NEW |