diff options
Diffstat (limited to 'third_party/tcmalloc/tcmalloc.gyp')
-rw-r--r-- | third_party/tcmalloc/tcmalloc.gyp | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/third_party/tcmalloc/tcmalloc.gyp b/third_party/tcmalloc/tcmalloc.gyp index 43fc60d..99bc266 100644 --- a/third_party/tcmalloc/tcmalloc.gyp +++ b/third_party/tcmalloc/tcmalloc.gyp @@ -19,6 +19,7 @@ 'tcmalloc/src/windows', 'tcmalloc/src/base', 'tcmalloc/src', + '../..', ], 'direct_dependent_settings': { 'msvs_settings': { @@ -31,23 +32,43 @@ }, }, 'sources': [ + 'config.h', + 'config_linux.h', + 'config_win.h', 'tcmalloc/src/base/dynamic_annotations.cc', + 'tcmalloc/src/base/dynamic_annotations.h', 'tcmalloc/src/base/logging.cc', + 'tcmalloc/src/base/logging.h', 'tcmalloc/src/base/low_level_alloc.cc', + 'tcmalloc/src/base/low_level_alloc.h', 'tcmalloc/src/base/spinlock.cc', + 'tcmalloc/src/base/spinlock.h', 'tcmalloc/src/base/sysinfo.cc', + 'tcmalloc/src/base/sysinfo.h', + 'tcmalloc/src/base/vdso_support.cc', + 'tcmalloc/src/base/vdso_support.h', 'tcmalloc/src/central_freelist.cc', + 'tcmalloc/src/central_freelist.h', 'tcmalloc/src/common.cc', + 'tcmalloc/src/common.h', 'tcmalloc/src/heap-profile-table.cc', + 'tcmalloc/src/heap-profile-table.h', 'tcmalloc/src/internal_logging.cc', + 'tcmalloc/src/internal_logging.h', 'tcmalloc/src/malloc_extension.cc', 'tcmalloc/src/malloc_hook.cc', + 'tcmalloc/src/maybe_threads.cc', + 'tcmalloc/src/maybe_threads.h', 'tcmalloc/src/page_heap.cc', 'tcmalloc/src/sampler.cc', 'tcmalloc/src/span.cc', 'tcmalloc/src/stack_trace_table.cc', 'tcmalloc/src/stacktrace.cc', 'tcmalloc/src/static_vars.cc', + 'tcmalloc/src/system-alloc.cc', + 'tcmalloc/src/system-alloc.h', + 'tcmalloc/src/tcmalloc.cc', + 'tcmalloc/src/tcmalloc.h', 'tcmalloc/src/thread_cache.cc', 'tcmalloc/src/windows/override_functions.cc', 'tcmalloc/src/windows/port.cc', @@ -72,6 +93,25 @@ }, }, }, + 'conditions': [ + ['OS=="win"', { + 'sources!': [ + 'tcmalloc/src/base/vdso_support.cc', + 'tcmalloc/src/base/vdso_support.h', + 'tcmalloc/src/maybe_threads.cc', + 'tcmalloc/src/maybe_threads.h', + 'tcmalloc/src/system-alloc.cc', + 'tcmalloc/src/system-alloc.h', + 'tcmalloc/src/tcmalloc.cc', + 'tcmalloc/src/tcmalloc.h', + ], + }, { # else: 'OS!="win"' + 'sources!': [ + 'tcmalloc/src/windows/override_functions.cc', + 'tcmalloc/src/windows/port.cc', + ], + }], + ], }, { 'target_name': 'libcmt', |