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