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 512 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
523 '<(tcmalloc_dir)/src', | 523 '<(tcmalloc_dir)/src', |
524 ], | 524 ], |
525 'dependencies': [ | 525 'dependencies': [ |
526 '../../testing/gtest.gyp:gtest', | 526 '../../testing/gtest.gyp:gtest', |
527 '../base.gyp:base', | 527 '../base.gyp:base', |
528 'allocator', | 528 'allocator', |
529 ], | 529 ], |
530 }, | 530 }, |
531 ], | 531 ], |
532 }], | 532 }], |
| 533 ['clang==1 and clang_use_allocated_type==1', { |
| 534 'targets': [ |
| 535 { |
| 536 'target_name': 'allocated_type_tcmalloc', |
| 537 'type': 'static_library', |
| 538 'include_dirs': [ |
| 539 '.', |
| 540 '<(tcmalloc_dir)/src/base', |
| 541 '<(tcmalloc_dir)/src', |
| 542 '../..', |
| 543 ], |
| 544 'sources': [ |
| 545 'allocated_type_tcmalloc.cc', |
| 546 'allocated_type.h', |
| 547 '<(tcmalloc_dir)/src/allocated_type_map.cc', |
| 548 '<(tcmalloc_dir)/src/gperftools/allocated_type_map.h', |
| 549 ], |
| 550 }, |
| 551 { |
| 552 'target_name': 'allocated_type_ignore', |
| 553 'type': 'static_library', |
| 554 'include_dirs': [ |
| 555 '.', |
| 556 '<(tcmalloc_dir)/src/base', |
| 557 '<(tcmalloc_dir)/src', |
| 558 '../..', |
| 559 ], |
| 560 'sources': [ |
| 561 'allocated_type_ignore.cc', |
| 562 'allocated_type.h', |
| 563 ], |
| 564 }, |
| 565 { |
| 566 'target_name': 'allocated_type_log', |
| 567 'type': 'static_library', |
| 568 'include_dirs': [ |
| 569 '.', |
| 570 '<(tcmalloc_dir)/src/base', |
| 571 '<(tcmalloc_dir)/src', |
| 572 '../..', |
| 573 ], |
| 574 'sources': [ |
| 575 'allocated_type_log.cc', |
| 576 'allocated_type.h', |
| 577 ], |
| 578 }, |
| 579 ], |
| 580 }], |
533 ], | 581 ], |
534 } | 582 } |
OLD | NEW |