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

Side by Side Diff: base/allocator/allocator.gyp

Issue 10239012: Route calls to tcmalloc MallocExtension through allocator agnostic interface (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: separate allocator_extension into own static library, add comments to allocator_extension.h Created 8 years, 8 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 { 5 {
6 'variables': { 6 'variables': {
7 'jemalloc_dir': '../../third_party/jemalloc/chromium', 7 'jemalloc_dir': '../../third_party/jemalloc/chromium',
8 'tcmalloc_dir': '../../third_party/tcmalloc/chromium', 8 'tcmalloc_dir': '../../third_party/tcmalloc/chromium',
9 }, 9 },
10 'targets': [ 10 'targets': [
(...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after
420 '<(tcmalloc_dir)/src/heap-checker-bcad.cc', 420 '<(tcmalloc_dir)/src/heap-checker-bcad.cc',
421 '<(tcmalloc_dir)/src/heap-checker.cc', 421 '<(tcmalloc_dir)/src/heap-checker.cc',
422 ], 422 ],
423 # Disable the heap checker in tcmalloc. 423 # Disable the heap checker in tcmalloc.
424 'defines': [ 424 'defines': [
425 'NO_HEAP_CHECK', 425 'NO_HEAP_CHECK',
426 ], 426 ],
427 }], 427 }],
428 ], 428 ],
429 }, 429 },
430 {
431 'target_name': 'allocator_extension',
432 'type': 'static_library',
433 'sources': [
434 'allocator_extension.cc',
jam 2012/04/26 21:28:20 nit: 2 space tabbing..
435 'allocator_extension.h',
436 ],
437 'include_dirs': [
438 '../../'
439 ],
440 },
430 ], 441 ],
431 'conditions': [ 442 'conditions': [
432 ['OS=="win"', { 443 ['OS=="win"', {
433 'targets': [ 444 'targets': [
434 { 445 {
435 'target_name': 'libcmt', 446 'target_name': 'libcmt',
436 'type': 'none', 447 'type': 'none',
437 'actions': [ 448 'actions': [
438 { 449 {
439 'action_name': 'libcmt', 450 'action_name': 'libcmt',
440 'inputs': [ 451 'inputs': [
441 'prep_libc.sh', 452 'prep_libc.sh',
442 ], 453 ],
443 'outputs': [ 454 'outputs': [
444 '<(SHARED_INTERMEDIATE_DIR)/allocator/libcmt.lib', 455 '<(SHARED_INTERMEDIATE_DIR)/allocator/libcmt.lib',
445 ], 456 ],
446 'action': [ 457 'action': [
447 './prep_libc.sh', 458 './prep_libc.sh',
448 '$(VCInstallDir)lib', 459 '$(VCInstallDir)lib',
449 '<(SHARED_INTERMEDIATE_DIR)/allocator', 460 '<(SHARED_INTERMEDIATE_DIR)/allocator',
450 ], 461 ],
451 }, 462 },
452 ], 463 ],
453 }, 464 },
454 { 465 {
455 'target_name': 'allocator_unittests', 466 'target_name': 'allocator_unittests',
456 'type': 'executable', 467 'type': 'executable',
457 'dependencies': [ 468 'dependencies': [
458 'allocator', 469 'allocator',
470 'allocator_extension',
459 '../../testing/gtest.gyp:gtest', 471 '../../testing/gtest.gyp:gtest',
460 ], 472 ],
461 'include_dirs': [ 473 'include_dirs': [
462 '.', 474 '.',
463 '<(tcmalloc_dir)/src/base', 475 '<(tcmalloc_dir)/src/base',
464 '<(tcmalloc_dir)/src', 476 '<(tcmalloc_dir)/src',
465 '../..', 477 '../..',
466 ], 478 ],
467 'sources': [ 479 'sources': [
468 'allocator_unittests.cc', 480 'allocator_unittests.cc',
469 '../profiler/alternate_timer.cc', 481 '../profiler/alternate_timer.cc',
470 '../profiler/alternate_timer.h', 482 '../profiler/alternate_timer.h',
471 ], 483 ],
472 }, 484 },
473 ], 485 ],
474 }], 486 }],
475 ], 487 ],
476 } 488 }
OLDNEW
« no previous file with comments | « no previous file | base/allocator/allocator_extension.h » ('j') | base/allocator/allocator_extension.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698