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 'target_defaults': { | 6 'target_defaults': { |
7 'variables': { | 7 'variables': { |
8 # This code gets run a lot and debugged rarely, so it should be fast | 8 # This code gets run a lot and debugged rarely, so it should be fast |
9 # by default. See http://crbug.com/388949. | 9 # by default. See http://crbug.com/388949. |
10 'debug_optimize': '2', | 10 'debug_optimize': '2', |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 '<(tcmalloc_dir)/src/config.h', | 99 '<(tcmalloc_dir)/src/config.h', |
100 '<(tcmalloc_dir)/src/config_android.h', | 100 '<(tcmalloc_dir)/src/config_android.h', |
101 '<(tcmalloc_dir)/src/config_linux.h', | 101 '<(tcmalloc_dir)/src/config_linux.h', |
102 '<(tcmalloc_dir)/src/config_win.h', | 102 '<(tcmalloc_dir)/src/config_win.h', |
103 | 103 |
104 # all tcmalloc native and forked files | 104 # all tcmalloc native and forked files |
105 '<(tcmalloc_dir)/src/addressmap-inl.h', | 105 '<(tcmalloc_dir)/src/addressmap-inl.h', |
106 '<(tcmalloc_dir)/src/base/abort.cc', | 106 '<(tcmalloc_dir)/src/base/abort.cc', |
107 '<(tcmalloc_dir)/src/base/abort.h', | 107 '<(tcmalloc_dir)/src/base/abort.h', |
108 '<(tcmalloc_dir)/src/base/arm_instruction_set_select.h', | 108 '<(tcmalloc_dir)/src/base/arm_instruction_set_select.h', |
109 '<(tcmalloc_dir)/src/base/atomicops-internals-linuxppc.h', | |
110 '<(tcmalloc_dir)/src/base/atomicops-internals-arm-generic.h', | 109 '<(tcmalloc_dir)/src/base/atomicops-internals-arm-generic.h', |
111 '<(tcmalloc_dir)/src/base/atomicops-internals-arm-v6plus.h', | 110 '<(tcmalloc_dir)/src/base/atomicops-internals-arm-v6plus.h', |
| 111 '<(tcmalloc_dir)/src/base/atomicops-internals-linuxppc.h', |
112 '<(tcmalloc_dir)/src/base/atomicops-internals-macosx.h', | 112 '<(tcmalloc_dir)/src/base/atomicops-internals-macosx.h', |
113 '<(tcmalloc_dir)/src/base/atomicops-internals-windows.h', | 113 '<(tcmalloc_dir)/src/base/atomicops-internals-windows.h', |
114 '<(tcmalloc_dir)/src/base/atomicops-internals-x86.cc', | 114 '<(tcmalloc_dir)/src/base/atomicops-internals-x86.cc', |
115 '<(tcmalloc_dir)/src/base/atomicops-internals-x86.h', | 115 '<(tcmalloc_dir)/src/base/atomicops-internals-x86.h', |
116 '<(tcmalloc_dir)/src/base/atomicops.h', | 116 '<(tcmalloc_dir)/src/base/atomicops.h', |
117 '<(tcmalloc_dir)/src/base/basictypes.h', | 117 '<(tcmalloc_dir)/src/base/basictypes.h', |
118 '<(tcmalloc_dir)/src/base/commandlineflags.h', | 118 '<(tcmalloc_dir)/src/base/commandlineflags.h', |
119 '<(tcmalloc_dir)/src/base/cycleclock.h', | 119 '<(tcmalloc_dir)/src/base/cycleclock.h', |
120 # We don't list dynamic_annotations.c since its copy is already | 120 # We don't list dynamic_annotations.c since its copy is already |
121 # present in the dynamic_annotations target. | 121 # present in the dynamic_annotations target. |
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
315 ], | 315 ], |
316 'sources': [ | 316 'sources': [ |
317 'allocator_shim_win.cc', | 317 'allocator_shim_win.cc', |
318 ], | 318 ], |
319 }], | 319 }], |
320 ['profiling!=1', { | 320 ['profiling!=1', { |
321 'sources!': [ | 321 'sources!': [ |
322 # cpuprofiler | 322 # cpuprofiler |
323 '<(tcmalloc_dir)/src/base/thread_lister.c', | 323 '<(tcmalloc_dir)/src/base/thread_lister.c', |
324 '<(tcmalloc_dir)/src/base/thread_lister.h', | 324 '<(tcmalloc_dir)/src/base/thread_lister.h', |
| 325 '<(tcmalloc_dir)/src/profile-handler.cc', |
| 326 '<(tcmalloc_dir)/src/profile-handler.h', |
325 '<(tcmalloc_dir)/src/profiledata.cc', | 327 '<(tcmalloc_dir)/src/profiledata.cc', |
326 '<(tcmalloc_dir)/src/profiledata.h', | 328 '<(tcmalloc_dir)/src/profiledata.h', |
327 '<(tcmalloc_dir)/src/profile-handler.cc', | |
328 '<(tcmalloc_dir)/src/profile-handler.h', | |
329 '<(tcmalloc_dir)/src/profiler.cc', | 329 '<(tcmalloc_dir)/src/profiler.cc', |
330 ], | 330 ], |
331 }], | 331 }], |
332 ['OS=="linux" or OS=="freebsd" or OS=="solaris" or OS=="android"', { | 332 ['OS=="linux" or OS=="freebsd" or OS=="solaris" or OS=="android"', { |
333 'sources!': [ | 333 'sources!': [ |
334 '<(tcmalloc_dir)/src/system-alloc.h', | 334 '<(tcmalloc_dir)/src/system-alloc.h', |
335 ], | 335 ], |
336 # We enable all warnings by default, but upstream disables a few. | 336 # We enable all warnings by default, but upstream disables a few. |
337 # Keep "-Wno-*" flags in sync with upstream by comparing against: | 337 # Keep "-Wno-*" flags in sync with upstream by comparing against: |
338 # http://code.google.com/p/google-perftools/source/browse/trunk/Makefi
le.am | 338 # http://code.google.com/p/google-perftools/source/browse/trunk/Makefi
le.am |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
427 'dependencies': [ | 427 'dependencies': [ |
428 'allocator', | 428 'allocator', |
429 'allocator_extension_thunks', | 429 'allocator_extension_thunks', |
430 '../../testing/gtest.gyp:gtest', | 430 '../../testing/gtest.gyp:gtest', |
431 ], | 431 ], |
432 'include_dirs': [ | 432 'include_dirs': [ |
433 '.', | 433 '.', |
434 '../..', | 434 '../..', |
435 ], | 435 ], |
436 'sources': [ | 436 'sources': [ |
437 'allocator_unittest.cc', | |
438 '../profiler/alternate_timer.cc', | 437 '../profiler/alternate_timer.cc', |
439 '../profiler/alternate_timer.h', | 438 '../profiler/alternate_timer.h', |
| 439 'allocator_unittest.cc', |
440 ], | 440 ], |
441 }, | 441 }, |
442 ], | 442 ], |
443 }], | 443 }], |
444 ['OS=="win" and target_arch=="ia32"', { | 444 ['OS=="win" and target_arch=="ia32"', { |
445 'targets': [ | 445 'targets': [ |
446 { | 446 { |
447 'target_name': 'allocator_extension_thunks_win64', | 447 'target_name': 'allocator_extension_thunks_win64', |
448 'type': 'static_library', | 448 'type': 'static_library', |
449 'sources': [ | 449 'sources': [ |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
492 'type_profiler', | 492 'type_profiler', |
493 ], | 493 ], |
494 'cflags_cc!': [ | 494 'cflags_cc!': [ |
495 '-fintercept-allocation-functions', | 495 '-fintercept-allocation-functions', |
496 ], | 496 ], |
497 'include_dirs': [ | 497 'include_dirs': [ |
498 '<(tcmalloc_dir)/src', | 498 '<(tcmalloc_dir)/src', |
499 '../..', | 499 '../..', |
500 ], | 500 ], |
501 'sources': [ | 501 'sources': [ |
| 502 '<(tcmalloc_dir)/src/gperftools/type_profiler_map.h', |
| 503 '<(tcmalloc_dir)/src/type_profiler_map.cc', |
502 'type_profiler_tcmalloc.cc', | 504 'type_profiler_tcmalloc.cc', |
503 'type_profiler_tcmalloc.h', | 505 'type_profiler_tcmalloc.h', |
504 '<(tcmalloc_dir)/src/gperftools/type_profiler_map.h', | |
505 '<(tcmalloc_dir)/src/type_profiler_map.cc', | |
506 ], | 506 ], |
507 }, | 507 }, |
508 { | 508 { |
509 'target_name': 'type_profiler_unittests', | 509 'target_name': 'type_profiler_unittests', |
510 'type': 'executable', | 510 'type': 'executable', |
511 'dependencies': [ | 511 'dependencies': [ |
512 '../../testing/gtest.gyp:gtest', | 512 '../../testing/gtest.gyp:gtest', |
513 '../base.gyp:base', | 513 '../base.gyp:base', |
514 'allocator', | 514 'allocator', |
515 'type_profiler_tcmalloc', | 515 'type_profiler_tcmalloc', |
(...skipping 19 matching lines...) Expand all Loading... |
535 'type_profiler', | 535 'type_profiler', |
536 ], | 536 ], |
537 'cflags_cc!': [ | 537 'cflags_cc!': [ |
538 '-fintercept-allocation-functions', | 538 '-fintercept-allocation-functions', |
539 ], | 539 ], |
540 'include_dirs': [ | 540 'include_dirs': [ |
541 '<(tcmalloc_dir)/src', | 541 '<(tcmalloc_dir)/src', |
542 '../..', | 542 '../..', |
543 ], | 543 ], |
544 'sources': [ | 544 'sources': [ |
545 'type_profiler_map_unittest.cc', | |
546 '<(tcmalloc_dir)/src/gperftools/type_profiler_map.h', | 545 '<(tcmalloc_dir)/src/gperftools/type_profiler_map.h', |
547 '<(tcmalloc_dir)/src/type_profiler_map.cc', | 546 '<(tcmalloc_dir)/src/type_profiler_map.cc', |
| 547 'type_profiler_map_unittest.cc', |
548 ], | 548 ], |
549 }, | 549 }, |
550 ], | 550 ], |
551 }], | 551 }], |
552 ['use_allocator=="tcmalloc"', { | 552 ['use_allocator=="tcmalloc"', { |
553 'targets': [ | 553 'targets': [ |
554 { | 554 { |
555 'target_name': 'tcmalloc_unittest', | 555 'target_name': 'tcmalloc_unittest', |
556 'type': 'executable', | 556 'type': 'executable', |
557 'sources': [ | 557 'sources': [ |
558 'tcmalloc_unittest.cc', | 558 'tcmalloc_unittest.cc', |
559 ], | 559 ], |
560 'include_dirs': [ | 560 'include_dirs': [ |
561 '<(tcmalloc_dir)/src', | 561 '<(tcmalloc_dir)/src', |
562 '../..', | 562 '../..', |
563 ], | 563 ], |
564 'dependencies': [ | 564 'dependencies': [ |
565 '../../testing/gtest.gyp:gtest', | 565 '../../testing/gtest.gyp:gtest', |
566 'allocator', | 566 'allocator', |
567 ], | 567 ], |
568 }, | 568 }, |
569 ], | 569 ], |
570 }], | 570 }], |
571 ], | 571 ], |
572 } | 572 } |
OLD | NEW |