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 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 '<(tcmalloc_dir)/src/base/thread_annotations.h', | 146 '<(tcmalloc_dir)/src/base/thread_annotations.h', |
147 '<(tcmalloc_dir)/src/base/thread_lister.c', | 147 '<(tcmalloc_dir)/src/base/thread_lister.c', |
148 '<(tcmalloc_dir)/src/base/thread_lister.h', | 148 '<(tcmalloc_dir)/src/base/thread_lister.h', |
149 '<(tcmalloc_dir)/src/base/vdso_support.cc', | 149 '<(tcmalloc_dir)/src/base/vdso_support.cc', |
150 '<(tcmalloc_dir)/src/base/vdso_support.h', | 150 '<(tcmalloc_dir)/src/base/vdso_support.h', |
151 '<(tcmalloc_dir)/src/central_freelist.cc', | 151 '<(tcmalloc_dir)/src/central_freelist.cc', |
152 '<(tcmalloc_dir)/src/central_freelist.h', | 152 '<(tcmalloc_dir)/src/central_freelist.h', |
153 '<(tcmalloc_dir)/src/common.cc', | 153 '<(tcmalloc_dir)/src/common.cc', |
154 '<(tcmalloc_dir)/src/common.h', | 154 '<(tcmalloc_dir)/src/common.h', |
155 '<(tcmalloc_dir)/src/debugallocation.cc', | 155 '<(tcmalloc_dir)/src/debugallocation.cc', |
156 '<(tcmalloc_dir)/src/deep-heap-profile.cc', | |
157 '<(tcmalloc_dir)/src/deep-heap-profile.h', | |
158 '<(tcmalloc_dir)/src/free_list.cc', | 156 '<(tcmalloc_dir)/src/free_list.cc', |
159 '<(tcmalloc_dir)/src/free_list.h', | 157 '<(tcmalloc_dir)/src/free_list.h', |
160 '<(tcmalloc_dir)/src/getpc.h', | 158 '<(tcmalloc_dir)/src/getpc.h', |
161 '<(tcmalloc_dir)/src/gperftools/heap-checker.h', | 159 '<(tcmalloc_dir)/src/gperftools/heap-checker.h', |
162 '<(tcmalloc_dir)/src/gperftools/heap-profiler.h', | 160 '<(tcmalloc_dir)/src/gperftools/heap-profiler.h', |
163 '<(tcmalloc_dir)/src/gperftools/malloc_extension.h', | 161 '<(tcmalloc_dir)/src/gperftools/malloc_extension.h', |
164 '<(tcmalloc_dir)/src/gperftools/malloc_extension_c.h', | 162 '<(tcmalloc_dir)/src/gperftools/malloc_extension_c.h', |
165 '<(tcmalloc_dir)/src/gperftools/malloc_hook.h', | 163 '<(tcmalloc_dir)/src/gperftools/malloc_hook.h', |
166 '<(tcmalloc_dir)/src/gperftools/malloc_hook_c.h', | 164 '<(tcmalloc_dir)/src/gperftools/malloc_hook_c.h', |
167 '<(tcmalloc_dir)/src/gperftools/profiler.h', | 165 '<(tcmalloc_dir)/src/gperftools/profiler.h', |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
289 # Included by debugallocation_shim.cc. | 287 # Included by debugallocation_shim.cc. |
290 '<(tcmalloc_dir)/src/debugallocation.cc', | 288 '<(tcmalloc_dir)/src/debugallocation.cc', |
291 '<(tcmalloc_dir)/src/tcmalloc.cc', | 289 '<(tcmalloc_dir)/src/tcmalloc.cc', |
292 ] | 290 ] |
293 },{ | 291 },{ |
294 'include_dirs': [ | 292 'include_dirs': [ |
295 '.', | 293 '.', |
296 '../..', | 294 '../..', |
297 ], | 295 ], |
298 }], | 296 }], |
299 ['OS=="linux" and clang_type_profiler==1', { | |
300 'dependencies': [ | |
301 'type_profiler_tcmalloc', | |
302 ], | |
303 # It is undoing dependencies and cflags_cc for type_profiler which | |
304 # build/common.gypi injects into all targets. | |
305 'dependencies!': [ | |
306 'type_profiler', | |
307 ], | |
308 'cflags_cc!': [ | |
309 '-fintercept-allocation-functions', | |
310 ], | |
311 }], | |
312 ['OS=="win" and component!="shared_library"', { | 297 ['OS=="win" and component!="shared_library"', { |
313 'dependencies': [ | 298 'dependencies': [ |
314 'libcmt', | 299 'libcmt', |
315 ], | 300 ], |
316 'sources': [ | 301 'sources': [ |
317 'allocator_shim_win.cc', | 302 'allocator_shim_win.cc', |
318 ], | 303 ], |
319 }], | 304 }], |
320 ['profiling!=1', { | 305 ['profiling!=1', { |
321 'sources!': [ | 306 'sources!': [ |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
375 'target_name': 'allocator_extension_thunks', | 360 'target_name': 'allocator_extension_thunks', |
376 'type': 'static_library', | 361 'type': 'static_library', |
377 'sources': [ | 362 'sources': [ |
378 'allocator_extension_thunks.cc', | 363 'allocator_extension_thunks.cc', |
379 'allocator_extension_thunks.h', | 364 'allocator_extension_thunks.h', |
380 ], | 365 ], |
381 'toolsets': ['host', 'target'], | 366 'toolsets': ['host', 'target'], |
382 'include_dirs': [ | 367 'include_dirs': [ |
383 '../../' | 368 '../../' |
384 ], | 369 ], |
385 'conditions': [ | |
386 ['OS=="linux" and clang_type_profiler==1', { | |
387 # It is undoing dependencies and cflags_cc for type_profiler which | |
388 # build/common.gypi injects into all targets. | |
389 'dependencies!': [ | |
390 'type_profiler', | |
391 ], | |
392 'cflags_cc!': [ | |
393 '-fintercept-allocation-functions', | |
394 ], | |
395 }], | |
396 ], | |
397 }, | 370 }, |
398 ], | 371 ], |
399 'conditions': [ | 372 'conditions': [ |
400 ['OS=="win" and component!="shared_library"', { | 373 ['OS=="win" and component!="shared_library"', { |
401 'targets': [ | 374 'targets': [ |
402 { | 375 { |
403 'target_name': 'libcmt', | 376 'target_name': 'libcmt', |
404 'type': 'none', | 377 'type': 'none', |
405 'actions': [ | 378 'actions': [ |
406 { | 379 { |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
455 '../../' | 428 '../../' |
456 ], | 429 ], |
457 'configurations': { | 430 'configurations': { |
458 'Common_Base': { | 431 'Common_Base': { |
459 'msvs_target_platform': 'x64', | 432 'msvs_target_platform': 'x64', |
460 }, | 433 }, |
461 }, | 434 }, |
462 }, | 435 }, |
463 ], | 436 ], |
464 }], | 437 }], |
465 ['OS=="linux" and clang_type_profiler==1', { | |
466 # Some targets in this section undo dependencies and cflags_cc for | |
467 # type_profiler which build/common.gypi injects into all targets. | |
468 'targets': [ | |
469 { | |
470 'target_name': 'type_profiler', | |
471 'type': 'static_library', | |
472 'dependencies!': [ | |
473 'type_profiler', | |
474 ], | |
475 'cflags_cc!': [ | |
476 '-fintercept-allocation-functions', | |
477 ], | |
478 'include_dirs': [ | |
479 '../..', | |
480 ], | |
481 'sources': [ | |
482 'type_profiler.cc', | |
483 'type_profiler.h', | |
484 'type_profiler_control.h', | |
485 ], | |
486 'toolsets': ['host', 'target'], | |
487 }, | |
488 { | |
489 'target_name': 'type_profiler_tcmalloc', | |
490 'type': 'static_library', | |
491 'dependencies!': [ | |
492 'type_profiler', | |
493 ], | |
494 'cflags_cc!': [ | |
495 '-fintercept-allocation-functions', | |
496 ], | |
497 'include_dirs': [ | |
498 '<(tcmalloc_dir)/src', | |
499 '../..', | |
500 ], | |
501 'sources': [ | |
502 '<(tcmalloc_dir)/src/gperftools/type_profiler_map.h', | |
503 '<(tcmalloc_dir)/src/type_profiler_map.cc', | |
504 'type_profiler_tcmalloc.cc', | |
505 'type_profiler_tcmalloc.h', | |
506 ], | |
507 }, | |
508 { | |
509 'target_name': 'type_profiler_unittests', | |
510 'type': 'executable', | |
511 'dependencies': [ | |
512 '../../testing/gtest.gyp:gtest', | |
513 '../base.gyp:base', | |
514 'allocator', | |
515 'type_profiler_tcmalloc', | |
516 ], | |
517 'include_dirs': [ | |
518 '../..', | |
519 ], | |
520 'sources': [ | |
521 'type_profiler_control.cc', | |
522 'type_profiler_control.h', | |
523 'type_profiler_unittest.cc', | |
524 ], | |
525 }, | |
526 { | |
527 'target_name': 'type_profiler_map_unittests', | |
528 'type': 'executable', | |
529 'dependencies': [ | |
530 '../../testing/gtest.gyp:gtest', | |
531 '../base.gyp:base', | |
532 'allocator', | |
533 ], | |
534 'dependencies!': [ | |
535 'type_profiler', | |
536 ], | |
537 'cflags_cc!': [ | |
538 '-fintercept-allocation-functions', | |
539 ], | |
540 'include_dirs': [ | |
541 '<(tcmalloc_dir)/src', | |
542 '../..', | |
543 ], | |
544 'sources': [ | |
545 '<(tcmalloc_dir)/src/gperftools/type_profiler_map.h', | |
546 '<(tcmalloc_dir)/src/type_profiler_map.cc', | |
547 'type_profiler_map_unittest.cc', | |
548 ], | |
549 }, | |
550 ], | |
551 }], | |
552 ['use_allocator=="tcmalloc"', { | 438 ['use_allocator=="tcmalloc"', { |
553 'targets': [ | 439 'targets': [ |
554 { | 440 { |
555 'target_name': 'tcmalloc_unittest', | 441 'target_name': 'tcmalloc_unittest', |
556 'type': 'executable', | 442 'type': 'executable', |
557 'sources': [ | 443 'sources': [ |
558 'tcmalloc_unittest.cc', | 444 'tcmalloc_unittest.cc', |
559 ], | 445 ], |
560 'include_dirs': [ | 446 'include_dirs': [ |
561 '<(tcmalloc_dir)/src', | 447 '<(tcmalloc_dir)/src', |
562 '../..', | 448 '../..', |
563 ], | 449 ], |
564 'dependencies': [ | 450 'dependencies': [ |
565 '../../testing/gtest.gyp:gtest', | 451 '../../testing/gtest.gyp:gtest', |
566 'allocator', | 452 'allocator', |
567 ], | 453 ], |
568 }, | 454 }, |
569 ], | 455 ], |
570 }], | 456 }], |
571 ], | 457 ], |
572 } | 458 } |
OLD | NEW |