Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(20)

Side by Side Diff: build/common.gypi

Issue 14321006: Adds TCMalloc support for Android. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Just my patch Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 925 matching lines...) Expand 10 before | Expand all | Expand 10 after
936 'linux_breakpad%': 1, 936 'linux_breakpad%': 1,
937 # And if we want to dump symbols for Breakpad-enabled builds. 937 # And if we want to dump symbols for Breakpad-enabled builds.
938 'linux_dump_symbols%': 0, 938 'linux_dump_symbols%': 0,
939 # And if we want to strip the binary after dumping symbols. 939 # And if we want to strip the binary after dumping symbols.
940 'linux_strip_binary%': 0, 940 'linux_strip_binary%': 0,
941 # Strip the test binaries needed for Linux reliability tests. 941 # Strip the test binaries needed for Linux reliability tests.
942 'linux_strip_reliability_tests%': 0, 942 'linux_strip_reliability_tests%': 0,
943 943
944 # Enable TCMalloc. 944 # Enable TCMalloc.
945 'linux_use_tcmalloc%': 1, 945 'linux_use_tcmalloc%': 1,
946 'android_use_tcmalloc%': 0,
946 947
947 # Disable TCMalloc's heapchecker. 948 # Disable TCMalloc's heapchecker.
948 'linux_use_heapchecker%': 0, 949 'linux_use_heapchecker%': 0,
949 950
950 # Disable shadow stack keeping used by heapcheck to unwind the stacks 951 # Disable shadow stack keeping used by heapcheck to unwind the stacks
951 # better. 952 # better.
952 'linux_keep_shadow_stacks%': 0, 953 'linux_keep_shadow_stacks%': 0,
953 954
954 # Set to 1 to link against libgnome-keyring instead of using dlopen(). 955 # Set to 1 to link against libgnome-keyring instead of using dlopen().
955 'linux_link_gnome_keyring%': 0, 956 'linux_link_gnome_keyring%': 0,
(...skipping 2268 matching lines...) Expand 10 before | Expand all | Expand 10 after
3224 ], 3225 ],
3225 }], 3226 }],
3226 ], 3227 ],
3227 }], 3228 }],
3228 ], 3229 ],
3229 }], 3230 }],
3230 ['linux_use_heapchecker==1', { 3231 ['linux_use_heapchecker==1', {
3231 'variables': {'linux_use_tcmalloc%': 1}, 3232 'variables': {'linux_use_tcmalloc%': 1},
3232 'defines': ['USE_HEAPCHECKER'], 3233 'defines': ['USE_HEAPCHECKER'],
3233 }], 3234 }],
3234 ['linux_use_tcmalloc==0', { 3235 ['linux_use_tcmalloc==0 and android_use_tcmalloc==0', {
3235 'defines': ['NO_TCMALLOC'], 3236 'defines': ['NO_TCMALLOC'],
3236 }], 3237 }],
3237 ['linux_keep_shadow_stacks==1', { 3238 ['linux_keep_shadow_stacks==1', {
3238 'defines': ['KEEP_SHADOW_STACKS'], 3239 'defines': ['KEEP_SHADOW_STACKS'],
3239 'cflags': [ 3240 'cflags': [
3240 '-finstrument-functions', 3241 '-finstrument-functions',
3241 # Allow mmx intrinsics to inline, so that the compiler can expand 3242 # Allow mmx intrinsics to inline, so that the compiler can expand
3242 # the intrinsics. 3243 # the intrinsics.
3243 '-finstrument-functions-exclude-file-list=mmintrin.h', 3244 '-finstrument-functions-exclude-file-list=mmintrin.h',
3244 ], 3245 ],
(...skipping 1174 matching lines...) Expand 10 before | Expand all | Expand 10 after
4419 # settings in target dicts. SYMROOT is a special case, because many other 4420 # settings in target dicts. SYMROOT is a special case, because many other
4420 # Xcode variables depend on it, including variables such as 4421 # Xcode variables depend on it, including variables such as
4421 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something 4422 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something
4422 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the 4423 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the
4423 # files to appear (when present) in the UI as actual files and not red 4424 # files to appear (when present) in the UI as actual files and not red
4424 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, 4425 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
4425 # and therefore SYMROOT, needs to be set at the project level. 4426 # and therefore SYMROOT, needs to be set at the project level.
4426 'SYMROOT': '<(DEPTH)/xcodebuild', 4427 'SYMROOT': '<(DEPTH)/xcodebuild',
4427 }, 4428 },
4428 } 4429 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698