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 'use_vtable_verify%': 0, | 9 'use_vtable_verify%': 0, |
10 }, | 10 }, |
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
296 'configurations': { | 296 'configurations': { |
297 'Debug_Base': { | 297 'Debug_Base': { |
298 'msvs_settings': { | 298 'msvs_settings': { |
299 'VCCLCompilerTool': { | 299 'VCCLCompilerTool': { |
300 'RuntimeLibrary': '0', | 300 'RuntimeLibrary': '0', |
301 }, | 301 }, |
302 }, | 302 }, |
303 }, | 303 }, |
304 }, | 304 }, |
305 'conditions': [ | 305 'conditions': [ |
| 306 ['OS=="linux" and clang_type_profiler==1', { |
| 307 'dependencies': [ |
| 308 'type_profiler_tcmalloc', |
| 309 ], |
| 310 'dependencies!': [ |
| 311 'type_profiler', |
| 312 ], |
| 313 'cflags_cc!': [ |
| 314 '-fintercept-allocation-functions', |
| 315 '-include ../../base/allocator/type_profiler.h', |
| 316 ], |
| 317 }], |
306 ['OS=="win"', { | 318 ['OS=="win"', { |
307 'defines': [ | 319 'defines': [ |
308 'PERFTOOLS_DLL_DECL=', | 320 'PERFTOOLS_DLL_DECL=', |
309 ], | 321 ], |
310 'defines!': [ | 322 'defines!': [ |
311 # tcmalloc source files unconditionally define this, remove it from | 323 # tcmalloc source files unconditionally define this, remove it from |
312 # the list of defines that common.gypi defines globally. | 324 # the list of defines that common.gypi defines globally. |
313 'NOMINMAX', | 325 'NOMINMAX', |
314 ], | 326 ], |
315 'dependencies': [ | 327 'dependencies': [ |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
452 'target_name': 'allocator_extension_thunks', | 464 'target_name': 'allocator_extension_thunks', |
453 'type': 'static_library', | 465 'type': 'static_library', |
454 'sources': [ | 466 'sources': [ |
455 'allocator_extension_thunks.cc', | 467 'allocator_extension_thunks.cc', |
456 'allocator_extension_thunks.h', | 468 'allocator_extension_thunks.h', |
457 ], | 469 ], |
458 'toolsets': ['host', 'target'], | 470 'toolsets': ['host', 'target'], |
459 'include_dirs': [ | 471 'include_dirs': [ |
460 '../../' | 472 '../../' |
461 ], | 473 ], |
| 474 'conditions': [ |
| 475 ['OS=="linux" and clang_type_profiler==1', { |
| 476 'dependencies!': [ |
| 477 'type_profiler', |
| 478 ], |
| 479 'cflags_cc!': [ |
| 480 '-fintercept-allocation-functions', |
| 481 '-include ../../base/allocator/type_profiler.h', |
| 482 ], |
| 483 }], |
| 484 ], |
462 }, | 485 }, |
463 ], | 486 ], |
464 'conditions': [ | 487 'conditions': [ |
465 ['OS=="win"', { | 488 ['OS=="win"', { |
466 'targets': [ | 489 'targets': [ |
467 { | 490 { |
468 'target_name': 'libcmt', | 491 'target_name': 'libcmt', |
469 'type': 'none', | 492 'type': 'none', |
470 'actions': [ | 493 'actions': [ |
471 { | 494 { |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
534 '<(tcmalloc_dir)/src', | 557 '<(tcmalloc_dir)/src', |
535 ], | 558 ], |
536 'dependencies': [ | 559 'dependencies': [ |
537 '../../testing/gtest.gyp:gtest', | 560 '../../testing/gtest.gyp:gtest', |
538 '../base.gyp:base', | 561 '../base.gyp:base', |
539 'allocator', | 562 'allocator', |
540 ], | 563 ], |
541 }, | 564 }, |
542 ], | 565 ], |
543 }], | 566 }], |
| 567 ['OS=="linux" and clang_type_profiler==1', { |
| 568 'targets': [ |
| 569 { |
| 570 'target_name': 'type_profiler', |
| 571 'type': 'static_library', |
| 572 'dependencies!': [ |
| 573 'type_profiler', |
| 574 ], |
| 575 'cflags_cc!': [ |
| 576 '-fintercept-allocation-functions', |
| 577 '-include ../../base/allocator/type_profiler.h', |
| 578 ], |
| 579 'include_dirs': [ |
| 580 '.', |
| 581 '<(tcmalloc_dir)/src/base', |
| 582 '<(tcmalloc_dir)/src', |
| 583 '../..', |
| 584 ], |
| 585 'sources': [ |
| 586 'type_profiler.cc', |
| 587 'type_profiler.h', |
| 588 'type_profiler_control.h', |
| 589 ], |
| 590 }, |
| 591 { |
| 592 'target_name': 'type_profiler_tcmalloc', |
| 593 'type': 'static_library', |
| 594 'dependencies!': [ |
| 595 'type_profiler', |
| 596 ], |
| 597 'cflags_cc!': [ |
| 598 '-fintercept-allocation-functions', |
| 599 '-include ../../base/allocator/type_profiler.h', |
| 600 ], |
| 601 'include_dirs': [ |
| 602 '.', |
| 603 '<(tcmalloc_dir)/src/base', |
| 604 '<(tcmalloc_dir)/src', |
| 605 '../..', |
| 606 ], |
| 607 'sources': [ |
| 608 'type_profiler_tcmalloc.cc', |
| 609 'type_profiler_tcmalloc.h', |
| 610 '<(tcmalloc_dir)/src/type_profiler_map.cc', |
| 611 '<(tcmalloc_dir)/src/gperftools/type_profiler_map.h', |
| 612 ], |
| 613 }, |
| 614 { |
| 615 'target_name': 'type_profiler_unittests', |
| 616 'type': 'executable', |
| 617 'dependencies': [ |
| 618 '../../testing/gtest.gyp:gtest', |
| 619 '../base.gyp:base', |
| 620 'allocator', |
| 621 'type_profiler_tcmalloc', |
| 622 ], |
| 623 'include_dirs': [ |
| 624 '.', |
| 625 '<(tcmalloc_dir)/src/base', |
| 626 '<(tcmalloc_dir)/src', |
| 627 '../..', |
| 628 ], |
| 629 'sources': [ |
| 630 'type_profiler_control.cc', |
| 631 'type_profiler_control.h', |
| 632 'type_profiler_unittests.cc', |
| 633 ], |
| 634 }, |
| 635 { |
| 636 'target_name': 'type_profiler_map_unittests', |
| 637 'type': 'executable', |
| 638 'dependencies': [ |
| 639 '../../testing/gtest.gyp:gtest', |
| 640 '../base.gyp:base', |
| 641 'allocator', |
| 642 ], |
| 643 'dependencies!': [ |
| 644 'type_profiler', |
| 645 ], |
| 646 'cflags_cc!': [ |
| 647 '-fintercept-allocation-functions', |
| 648 '-include ../../base/allocator/type_profiler.h', |
| 649 ], |
| 650 'include_dirs': [ |
| 651 '.', |
| 652 '<(tcmalloc_dir)/src/base', |
| 653 '<(tcmalloc_dir)/src', |
| 654 '../..', |
| 655 ], |
| 656 'sources': [ |
| 657 'type_profiler_map_unittests.cc', |
| 658 '<(tcmalloc_dir)/src/type_profiler_map.cc', |
| 659 '<(tcmalloc_dir)/src/gperftools/type_profiler_map.h', |
| 660 ], |
| 661 }, |
| 662 ], |
| 663 }], |
544 ], | 664 ], |
545 } | 665 } |
OLD | NEW |