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 }, | 9 }, |
10 'targets': [ | 10 'targets': [ |
(...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
420 '<(tcmalloc_dir)/src/heap-checker-bcad.cc', | 420 '<(tcmalloc_dir)/src/heap-checker-bcad.cc', |
421 '<(tcmalloc_dir)/src/heap-checker.cc', | 421 '<(tcmalloc_dir)/src/heap-checker.cc', |
422 ], | 422 ], |
423 # Disable the heap checker in tcmalloc. | 423 # Disable the heap checker in tcmalloc. |
424 'defines': [ | 424 'defines': [ |
425 'NO_HEAP_CHECK', | 425 'NO_HEAP_CHECK', |
426 ], | 426 ], |
427 }], | 427 }], |
428 ], | 428 ], |
429 }, | 429 }, |
| 430 { |
| 431 'target_name': 'allocator_extension_thunks', |
| 432 'type': 'static_library', |
| 433 'sources': [ |
| 434 'allocator_extension_thunks.cc', |
| 435 'allocator_extension_thunks.h', |
430 ], | 436 ], |
| 437 'toolsets': ['host', 'target'], |
| 438 'include_dirs': [ |
| 439 '../../' |
| 440 ], |
| 441 }, |
| 442 ], |
431 'conditions': [ | 443 'conditions': [ |
432 ['OS=="win"', { | 444 ['OS=="win"', { |
433 'targets': [ | 445 'targets': [ |
434 { | 446 { |
435 'target_name': 'libcmt', | 447 'target_name': 'libcmt', |
436 'type': 'none', | 448 'type': 'none', |
437 'actions': [ | 449 'actions': [ |
438 { | 450 { |
439 'action_name': 'libcmt', | 451 'action_name': 'libcmt', |
440 'inputs': [ | 452 'inputs': [ |
441 'prep_libc.sh', | 453 'prep_libc.sh', |
442 ], | 454 ], |
443 'outputs': [ | 455 'outputs': [ |
444 '<(SHARED_INTERMEDIATE_DIR)/allocator/libcmt.lib', | 456 '<(SHARED_INTERMEDIATE_DIR)/allocator/libcmt.lib', |
445 ], | 457 ], |
446 'action': [ | 458 'action': [ |
447 './prep_libc.sh', | 459 './prep_libc.sh', |
448 '$(VCInstallDir)lib', | 460 '$(VCInstallDir)lib', |
449 '<(SHARED_INTERMEDIATE_DIR)/allocator', | 461 '<(SHARED_INTERMEDIATE_DIR)/allocator', |
450 ], | 462 ], |
451 }, | 463 }, |
452 ], | 464 ], |
453 }, | 465 }, |
454 { | 466 { |
455 'target_name': 'allocator_unittests', | 467 'target_name': 'allocator_unittests', |
456 'type': 'executable', | 468 'type': 'executable', |
457 'dependencies': [ | 469 'dependencies': [ |
458 'allocator', | 470 'allocator', |
| 471 'allocator_extension_thunks', |
459 '../../testing/gtest.gyp:gtest', | 472 '../../testing/gtest.gyp:gtest', |
460 ], | 473 ], |
461 'include_dirs': [ | 474 'include_dirs': [ |
462 '.', | 475 '.', |
463 '<(tcmalloc_dir)/src/base', | 476 '<(tcmalloc_dir)/src/base', |
464 '<(tcmalloc_dir)/src', | 477 '<(tcmalloc_dir)/src', |
465 '../..', | 478 '../..', |
466 ], | 479 ], |
467 'sources': [ | 480 'sources': [ |
468 'allocator_unittests.cc', | 481 'allocator_unittests.cc', |
469 '../profiler/alternate_timer.cc', | 482 '../profiler/alternate_timer.cc', |
470 '../profiler/alternate_timer.h', | 483 '../profiler/alternate_timer.h', |
471 ], | 484 ], |
472 }, | 485 }, |
| 486 { |
| 487 'target_name': 'allocator_extension_thunks_win64', |
| 488 'type': 'static_library', |
| 489 'sources': [ |
| 490 'allocator_extension_thunks.cc', |
| 491 'allocator_extension_thunks.h', |
| 492 ], |
| 493 'toolsets': ['host', 'target'], |
| 494 'include_dirs': [ |
| 495 '../../' |
| 496 ], |
| 497 'configurations': { |
| 498 'Common_Base': { |
| 499 'msvs_target_platform': 'x64', |
| 500 }, |
| 501 }, |
| 502 }, |
473 ], | 503 ], |
474 }], | 504 }], |
475 ], | 505 ], |
476 } | 506 } |
OLD | NEW |