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