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

Unified Diff: third_party/tcmalloc/tcmalloc.gyp

Issue 119265: Convert tcmalloc (and its modified libcmt) to building with gyp.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/tcmalloc/prep_libc.sh ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/tcmalloc/tcmalloc.gyp
===================================================================
--- third_party/tcmalloc/tcmalloc.gyp (revision 0)
+++ third_party/tcmalloc/tcmalloc.gyp (revision 0)
@@ -0,0 +1,97 @@
+# Copyright (c) 2009 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+{
+ 'includes': [
+ '../../build/common.gypi',
+ ],
+ 'targets': [
+ {
+ 'target_name': 'tcmalloc',
+ 'type': '<(library)',
+ 'msvs_guid': 'C564F145-9172-42C3-BFCB-60FDEA124321',
+ 'dependencies': [
+ 'libcmt',
+ ],
+ 'include_dirs': [
+ '.',
+ 'tcmalloc/src/windows',
+ 'tcmalloc/src/base',
+ 'tcmalloc/src',
+ ],
+ 'direct_dependent_settings': {
+ 'msvs_settings': {
+ 'VCLinkerTool': {
+ 'IgnoreDefaultLibraryNames': ['libcmtd.lib', 'libcmt.lib'],
+ 'AdditionalDependencies': [
+ '<(SHARED_INTERMEDIATE_DIR)/tcmalloc/libcmt.lib'
+ ],
+ },
+ },
+ },
+ 'sources': [
+ 'tcmalloc/src/base/dynamic_annotations.cc',
+ 'tcmalloc/src/base/logging.cc',
+ 'tcmalloc/src/base/low_level_alloc.cc',
+ 'tcmalloc/src/base/spinlock.cc',
+ 'tcmalloc/src/base/sysinfo.cc',
+ 'tcmalloc/src/central_freelist.cc',
+ 'tcmalloc/src/common.cc',
+ 'tcmalloc/src/heap-profile-table.cc',
+ 'tcmalloc/src/internal_logging.cc',
+ 'tcmalloc/src/malloc_extension.cc',
+ 'tcmalloc/src/malloc_hook.cc',
+ '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/thread_cache.cc',
+ 'tcmalloc/src/windows/override_functions.cc',
+ 'tcmalloc/src/windows/port.cc',
+ ],
+ 'msvs_settings': {
+ # TODO(sgk): merge this with build/common.gypi settings
+ 'VCLibrarianTool=': {
+ 'AdditionalOptions': '/ignore:4006,4221',
+ 'AdditionalLibraryDirectories':
+ '<(DEPTH)/third_party/platformsdk_win2008_6_1/files/Lib',
+ },
+ 'VCLinkerTool': {
+ 'AdditionalOptions': '/ignore:4006',
+ },
+ },
+ 'configurations': {
+ 'Debug': {
+ 'msvs_settings': {
+ 'VCCLCompilerTool': {
+ 'RuntimeLibrary': '0',
+ },
+ },
+ },
+ },
+ },
+ {
+ 'target_name': 'libcmt',
+ 'type': 'none',
+ 'actions': [
+ {
+ 'action_name': 'libcmt',
+ 'inputs': [
+ 'prep_libc.sh',
+ ],
+ 'outputs': [
+ '<(SHARED_INTERMEDIATE_DIR)/tcmalloc/libcmt.lib',
+ ],
+ 'action': [
+ './prep_libc.sh',
+ '$(VCInstallDir)lib',
+ '<(SHARED_INTERMEDIATE_DIR)/tcmalloc',
+ ],
+ },
+ ],
+ },
+ ],
+}
Property changes on: third_party\tcmalloc\tcmalloc.gyp
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « third_party/tcmalloc/prep_libc.sh ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698