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

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: 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
« no previous file with comments | « no previous file | base/allocator/allocator_extension.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 # This library is linked in to libbase and allocator_unittests.
432 # It can't depend on either and nothing else should depend on it -
433 # all other code should use the interfaced provided by libbase.
434 'target_name': 'allocator_extension_thunks',
435 'type': 'static_library',
436 'sources': [
437 'allocator_extension_thunks.cc',
438 'allocator_extension_thunks.h',
430 ], 439 ],
440 'toolsets': ['host', 'target'],
441 'include_dirs': [
442 '../../'
443 ],
444 },
445 ],
431 'conditions': [ 446 'conditions': [
432 ['OS=="win"', { 447 ['OS=="win"', {
433 'targets': [ 448 'targets': [
434 { 449 {
435 'target_name': 'libcmt', 450 'target_name': 'libcmt',
436 'type': 'none', 451 'type': 'none',
437 'actions': [ 452 'actions': [
438 { 453 {
439 'action_name': 'libcmt', 454 'action_name': 'libcmt',
440 'inputs': [ 455 'inputs': [
441 'prep_libc.sh', 456 'prep_libc.sh',
442 ], 457 ],
443 'outputs': [ 458 'outputs': [
444 '<(SHARED_INTERMEDIATE_DIR)/allocator/libcmt.lib', 459 '<(SHARED_INTERMEDIATE_DIR)/allocator/libcmt.lib',
445 ], 460 ],
446 'action': [ 461 'action': [
447 './prep_libc.sh', 462 './prep_libc.sh',
448 '$(VCInstallDir)lib', 463 '$(VCInstallDir)lib',
449 '<(SHARED_INTERMEDIATE_DIR)/allocator', 464 '<(SHARED_INTERMEDIATE_DIR)/allocator',
450 ], 465 ],
451 }, 466 },
452 ], 467 ],
453 }, 468 },
454 { 469 {
455 'target_name': 'allocator_unittests', 470 'target_name': 'allocator_unittests',
456 'type': 'executable', 471 'type': 'executable',
457 'dependencies': [ 472 'dependencies': [
458 'allocator', 473 'allocator',
474 'allocator_extension_thunks',
459 '../../testing/gtest.gyp:gtest', 475 '../../testing/gtest.gyp:gtest',
460 ], 476 ],
461 'include_dirs': [ 477 'include_dirs': [
462 '.', 478 '.',
463 '<(tcmalloc_dir)/src/base', 479 '<(tcmalloc_dir)/src/base',
464 '<(tcmalloc_dir)/src', 480 '<(tcmalloc_dir)/src',
465 '../..', 481 '../..',
466 ], 482 ],
467 'sources': [ 483 'sources': [
468 'allocator_unittests.cc', 484 'allocator_unittests.cc',
469 '../profiler/alternate_timer.cc', 485 '../profiler/alternate_timer.cc',
470 '../profiler/alternate_timer.h', 486 '../profiler/alternate_timer.h',
471 ], 487 ],
472 }, 488 },
489 {
490 'target_name': 'allocator_extension_thunks_win64',
491 'type': 'static_library',
492 'sources': [
493 'allocator_extension_thunks.cc',
494 'allocator_extension_thunks.h',
495 ],
496 'toolsets': ['host', 'target'],
497 'include_dirs': [
498 '../../'
499 ],
500 'configurations': {
501 'Common_Base': {
502 'msvs_target_platform': 'x64',
503 },
504 },
505 },
473 ], 506 ],
474 }], 507 }],
475 ], 508 ],
476 } 509 }
OLDNEW
« no previous file with comments | « no previous file | base/allocator/allocator_extension.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698