OLD | NEW |
---|---|
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 Loading... | |
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 } |
OLD | NEW |