| 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 1095 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1106 'linux_dump_symbols%': 0, | 1106 'linux_dump_symbols%': 0, |
| 1107 # And if we want to strip the binary after dumping symbols. | 1107 # And if we want to strip the binary after dumping symbols. |
| 1108 'linux_strip_binary%': 0, | 1108 'linux_strip_binary%': 0, |
| 1109 # Strip the test binaries needed for Linux reliability tests. | 1109 # Strip the test binaries needed for Linux reliability tests. |
| 1110 'linux_strip_reliability_tests%': 0, | 1110 'linux_strip_reliability_tests%': 0, |
| 1111 | 1111 |
| 1112 # Enable TCMalloc. | 1112 # Enable TCMalloc. |
| 1113 'linux_use_tcmalloc%': 1, | 1113 'linux_use_tcmalloc%': 1, |
| 1114 'android_use_tcmalloc%': 0, | 1114 'android_use_tcmalloc%': 0, |
| 1115 | 1115 |
| 1116 # Disable TCMalloc's heapchecker. | |
| 1117 'linux_use_heapchecker%': 0, | |
| 1118 | |
| 1119 # Disable shadow stack keeping used by heapcheck to unwind the stacks | |
| 1120 # better. | |
| 1121 'linux_keep_shadow_stacks%': 0, | |
| 1122 | |
| 1123 # Set to 1 to link against libgnome-keyring instead of using dlopen(). | 1116 # Set to 1 to link against libgnome-keyring instead of using dlopen(). |
| 1124 'linux_link_gnome_keyring%': 0, | 1117 'linux_link_gnome_keyring%': 0, |
| 1125 # Set to 1 to link against gsettings APIs instead of using dlopen(). | 1118 # Set to 1 to link against gsettings APIs instead of using dlopen(). |
| 1126 'linux_link_gsettings%': 0, | 1119 'linux_link_gsettings%': 0, |
| 1127 | 1120 |
| 1128 # Default arch variant for MIPS. | 1121 # Default arch variant for MIPS. |
| 1129 'mips_arch_variant%': 'mips32r2', | 1122 'mips_arch_variant%': 'mips32r2', |
| 1130 | 1123 |
| 1131 # Enable use of OpenMAX DL FFT routines. | 1124 # Enable use of OpenMAX DL FFT routines. |
| 1132 'use_openmax_dl_fft%': '<(use_openmax_dl_fft)', | 1125 'use_openmax_dl_fft%': '<(use_openmax_dl_fft)', |
| (...skipping 2415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3548 ['_toolset=="target"', { | 3541 ['_toolset=="target"', { |
| 3549 'ldflags': [ | 3542 'ldflags': [ |
| 3550 # Workaround for linker OOM. | 3543 # Workaround for linker OOM. |
| 3551 '-Wl,--no-keep-memory', | 3544 '-Wl,--no-keep-memory', |
| 3552 ], | 3545 ], |
| 3553 }], | 3546 }], |
| 3554 ], | 3547 ], |
| 3555 }], | 3548 }], |
| 3556 ], | 3549 ], |
| 3557 }], | 3550 }], |
| 3558 ['linux_use_heapchecker==1', { | |
| 3559 'variables': {'linux_use_tcmalloc%': 1}, | |
| 3560 'defines': [ | |
| 3561 'USE_HEAPCHECKER', | |
| 3562 'MEMORY_TOOL_REPLACES_ALLOCATOR', | |
| 3563 ], | |
| 3564 'conditions': [ | |
| 3565 ['component=="shared_library"', { | |
| 3566 # See crbug.com/112389 | |
| 3567 # TODO(glider): replace with --dynamic-list or something | |
| 3568 'ldflags': ['-rdynamic'], | |
| 3569 }], | |
| 3570 ], | |
| 3571 }], | |
| 3572 ['linux_use_tcmalloc==0 and android_use_tcmalloc==0', { | 3551 ['linux_use_tcmalloc==0 and android_use_tcmalloc==0', { |
| 3573 'defines': ['NO_TCMALLOC'], | 3552 'defines': ['NO_TCMALLOC'], |
| 3574 }], | 3553 }], |
| 3575 ['linux_keep_shadow_stacks==1', { | |
| 3576 'defines': ['KEEP_SHADOW_STACKS'], | |
| 3577 'cflags': [ | |
| 3578 '-finstrument-functions', | |
| 3579 # Allow mmx intrinsics to inline, so that the compiler can expand | |
| 3580 # the intrinsics. | |
| 3581 '-finstrument-functions-exclude-file-list=mmintrin.h', | |
| 3582 ], | |
| 3583 }], | |
| 3584 ['linux_use_gold_flags==1', { | 3554 ['linux_use_gold_flags==1', { |
| 3585 'target_conditions': [ | 3555 'target_conditions': [ |
| 3586 ['_toolset=="target"', { | 3556 ['_toolset=="target"', { |
| 3587 'ldflags': [ | 3557 'ldflags': [ |
| 3588 # Experimentation found that using four linking threads | 3558 # Experimentation found that using four linking threads |
| 3589 # saved ~20% of link time. | 3559 # saved ~20% of link time. |
| 3590 # https://groups.google.com/a/chromium.org/group/chromium-dev/
browse_thread/thread/281527606915bb36 | 3560 # https://groups.google.com/a/chromium.org/group/chromium-dev/
browse_thread/thread/281527606915bb36 |
| 3591 # Only apply this to the target linker, since the host | 3561 # Only apply this to the target linker, since the host |
| 3592 # linker might not be gold, but isn't used much anyway. | 3562 # linker might not be gold, but isn't used much anyway. |
| 3593 '-Wl,--threads', | 3563 '-Wl,--threads', |
| (...skipping 1216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4810 # settings in target dicts. SYMROOT is a special case, because many other | 4780 # settings in target dicts. SYMROOT is a special case, because many other |
| 4811 # Xcode variables depend on it, including variables such as | 4781 # Xcode variables depend on it, including variables such as |
| 4812 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 4782 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
| 4813 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 4783 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
| 4814 # files to appear (when present) in the UI as actual files and not red | 4784 # files to appear (when present) in the UI as actual files and not red |
| 4815 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 4785 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
| 4816 # and therefore SYMROOT, needs to be set at the project level. | 4786 # and therefore SYMROOT, needs to be set at the project level. |
| 4817 'SYMROOT': '<(DEPTH)/xcodebuild', | 4787 'SYMROOT': '<(DEPTH)/xcodebuild', |
| 4818 }, | 4788 }, |
| 4819 } | 4789 } |
| OLD | NEW |