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

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: Dai's comments 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 923 matching lines...) Expand 10 before | Expand all | Expand 10 after
934 'linux_breakpad%': 1, 934 'linux_breakpad%': 1,
935 # And if we want to dump symbols for Breakpad-enabled builds. 935 # And if we want to dump symbols for Breakpad-enabled builds.
936 'linux_dump_symbols%': 0, 936 'linux_dump_symbols%': 0,
937 # And if we want to strip the binary after dumping symbols. 937 # And if we want to strip the binary after dumping symbols.
938 'linux_strip_binary%': 0, 938 'linux_strip_binary%': 0,
939 # Strip the test binaries needed for Linux reliability tests. 939 # Strip the test binaries needed for Linux reliability tests.
940 'linux_strip_reliability_tests%': 0, 940 'linux_strip_reliability_tests%': 0,
941 941
942 # Enable TCMalloc. 942 # Enable TCMalloc.
943 'linux_use_tcmalloc%': 1, 943 'linux_use_tcmalloc%': 1,
944 'android_use_tcmalloc%': 0,
944 945
945 # Disable TCMalloc's heapchecker. 946 # Disable TCMalloc's heapchecker.
946 'linux_use_heapchecker%': 0, 947 'linux_use_heapchecker%': 0,
947 948
948 # Disable shadow stack keeping used by heapcheck to unwind the stacks 949 # Disable shadow stack keeping used by heapcheck to unwind the stacks
949 # better. 950 # better.
950 'linux_keep_shadow_stacks%': 0, 951 'linux_keep_shadow_stacks%': 0,
951 952
952 # Set to 1 to link against libgnome-keyring instead of using dlopen(). 953 # Set to 1 to link against libgnome-keyring instead of using dlopen().
953 'linux_link_gnome_keyring%': 0, 954 'linux_link_gnome_keyring%': 0,
(...skipping 2271 matching lines...) Expand 10 before | Expand all | Expand 10 after
3225 ], 3226 ],
3226 }], 3227 }],
3227 ], 3228 ],
3228 }], 3229 }],
3229 ], 3230 ],
3230 }], 3231 }],
3231 ['linux_use_heapchecker==1', { 3232 ['linux_use_heapchecker==1', {
3232 'variables': {'linux_use_tcmalloc%': 1}, 3233 'variables': {'linux_use_tcmalloc%': 1},
3233 'defines': ['USE_HEAPCHECKER'], 3234 'defines': ['USE_HEAPCHECKER'],
3234 }], 3235 }],
3235 ['linux_use_tcmalloc==0', { 3236 ['linux_use_tcmalloc==0 and android_use_tcmalloc==0', {
3236 'defines': ['NO_TCMALLOC'], 3237 'defines': ['NO_TCMALLOC'],
3237 }], 3238 }],
3238 ['linux_keep_shadow_stacks==1', { 3239 ['linux_keep_shadow_stacks==1', {
3239 'defines': ['KEEP_SHADOW_STACKS'], 3240 'defines': ['KEEP_SHADOW_STACKS'],
3240 'cflags': [ 3241 'cflags': [
3241 '-finstrument-functions', 3242 '-finstrument-functions',
3242 # Allow mmx intrinsics to inline, so that the compiler can expand 3243 # Allow mmx intrinsics to inline, so that the compiler can expand
3243 # the intrinsics. 3244 # the intrinsics.
3244 '-finstrument-functions-exclude-file-list=mmintrin.h', 3245 '-finstrument-functions-exclude-file-list=mmintrin.h',
3245 ], 3246 ],
(...skipping 1193 matching lines...) Expand 10 before | Expand all | Expand 10 after
4439 # settings in target dicts. SYMROOT is a special case, because many other 4440 # settings in target dicts. SYMROOT is a special case, because many other
4440 # Xcode variables depend on it, including variables such as 4441 # Xcode variables depend on it, including variables such as
4441 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something 4442 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something
4442 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the 4443 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the
4443 # files to appear (when present) in the UI as actual files and not red 4444 # files to appear (when present) in the UI as actual files and not red
4444 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, 4445 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
4445 # and therefore SYMROOT, needs to be set at the project level. 4446 # and therefore SYMROOT, needs to be set at the project level.
4446 'SYMROOT': '<(DEPTH)/xcodebuild', 4447 'SYMROOT': '<(DEPTH)/xcodebuild',
4447 }, 4448 },
4448 } 4449 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698