diff options
author | jamesr@chromium.org <jamesr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-04-28 02:56:38 +0000 |
---|---|---|
committer | jamesr@chromium.org <jamesr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-04-28 02:56:38 +0000 |
commit | 237a14858315c4ba7e9d72ad532df50a07e1a1d1 (patch) | |
tree | 1b8eedf2d3bed0d2a2cff474a344c819a8f4827c /base/allocator/allocator.gyp | |
parent | 6486d9c1aeba559fac1273c09e38585d2d555238 (diff) | |
download | chromium_src-237a14858315c4ba7e9d72ad532df50a07e1a1d1.zip chromium_src-237a14858315c4ba7e9d72ad532df50a07e1a1d1.tar.gz chromium_src-237a14858315c4ba7e9d72ad532df50a07e1a1d1.tar.bz2 |
Route calls to tcmalloc MallocExtension through allocator agnostic interface
Our various libraries should not be picking or depending on a particular
allocator choice - that should be an application level choice. This creates
a generic AllocatorExtension interface that can optionally be backed by
entry points to a particular allocator's MallocExtension interface if the
application chooses to.
BUG=125003
TEST=compiles, chrome://tcmalloc works
Review URL: http://codereview.chromium.org/10239012
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@134434 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/allocator/allocator.gyp')
-rw-r--r-- | base/allocator/allocator.gyp | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/base/allocator/allocator.gyp b/base/allocator/allocator.gyp index ee07ecc..7b1058c 100644 --- a/base/allocator/allocator.gyp +++ b/base/allocator/allocator.gyp @@ -427,7 +427,22 @@ }], ], }, + { + # This library is linked in to libbase and allocator_unittests. + # It can't depend on either and nothing else should depend on it - + # all other code should use the interfaced provided by libbase. + 'target_name': 'allocator_extension_thunks', + 'type': 'static_library', + 'sources': [ + 'allocator_extension_thunks.cc', + 'allocator_extension_thunks.h', ], + 'toolsets': ['host', 'target'], + 'include_dirs': [ + '../../' + ], + }, + ], 'conditions': [ ['OS=="win"', { 'targets': [ @@ -456,6 +471,7 @@ 'type': 'executable', 'dependencies': [ 'allocator', + 'allocator_extension_thunks', '../../testing/gtest.gyp:gtest', ], 'include_dirs': [ @@ -470,6 +486,23 @@ '../profiler/alternate_timer.h', ], }, + { + 'target_name': 'allocator_extension_thunks_win64', + 'type': 'static_library', + 'sources': [ + 'allocator_extension_thunks.cc', + 'allocator_extension_thunks.h', + ], + 'toolsets': ['host', 'target'], + 'include_dirs': [ + '../../' + ], + 'configurations': { + 'Common_Base': { + 'msvs_target_platform': 'x64', + }, + }, + }, ], }], ], |