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 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 # jemalloc files | 194 # jemalloc files |
195 '<(jemalloc_dir)/jemalloc.c', | 195 '<(jemalloc_dir)/jemalloc.c', |
196 '<(jemalloc_dir)/jemalloc.h', | 196 '<(jemalloc_dir)/jemalloc.h', |
197 '<(jemalloc_dir)/ql.h', | 197 '<(jemalloc_dir)/ql.h', |
198 '<(jemalloc_dir)/qr.h', | 198 '<(jemalloc_dir)/qr.h', |
199 '<(jemalloc_dir)/rb.h', | 199 '<(jemalloc_dir)/rb.h', |
200 | 200 |
201 'allocator_shim.cc', | 201 'allocator_shim.cc', |
202 'allocator_shim.h', | 202 'allocator_shim.h', |
203 'generic_allocators.cc', | 203 'generic_allocators.cc', |
204 'win_allocator.cc', | 204 'win_allocator.cc', |
205 ], | 205 ], |
206 # sources! means that these are not compiled directly. | 206 # sources! means that these are not compiled directly. |
207 'sources!': [ | 207 'sources!': [ |
208 # Included by allocator_shim.cc for maximal inlining. | 208 # Included by allocator_shim.cc for maximal inlining. |
209 'generic_allocators.cc', | 209 'generic_allocators.cc', |
210 'win_allocator.cc', | 210 'win_allocator.cc', |
211 | 211 |
212 # We simply don't use these, but list them above so that IDE | 212 # We simply don't use these, but list them above so that IDE |
213 # users can view the full available source for reference, etc. | 213 # users can view the full available source for reference, etc. |
214 '<(tcmalloc_dir)/src/addressmap-inl.h', | 214 '<(tcmalloc_dir)/src/addressmap-inl.h', |
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 { | 430 { |
431 # This library is linked in to libbase and allocator_unittests. | 431 # This library is linked in to src/base.gypi:base and allocator_unittests |
432 # It can't depend on either and nothing else should depend on it - | 432 # It can't depend on either and nothing else should depend on it - all |
433 # all other code should use the interfaced provided by libbase. | 433 # other code should use the interfaced provided by base. |
434 'target_name': 'allocator_extension_thunks', | 434 'target_name': 'allocator_extension_thunks', |
435 'type': 'static_library', | 435 'type': 'static_library', |
436 'sources': [ | 436 'sources': [ |
437 'allocator_extension_thunks.cc', | 437 'allocator_extension_thunks.cc', |
438 'allocator_extension_thunks.h', | 438 'allocator_extension_thunks.h', |
439 ], | 439 ], |
440 'toolsets': ['host', 'target'], | 440 'toolsets': ['host', 'target'], |
441 'include_dirs': [ | 441 'include_dirs': [ |
442 '../../' | 442 '../../' |
443 ], | 443 ], |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
496 'toolsets': ['host', 'target'], | 496 'toolsets': ['host', 'target'], |
497 'include_dirs': [ | 497 'include_dirs': [ |
498 '../../' | 498 '../../' |
499 ], | 499 ], |
500 'configurations': { | 500 'configurations': { |
501 'Common_Base': { | 501 'Common_Base': { |
502 'msvs_target_platform': 'x64', | 502 'msvs_target_platform': 'x64', |
503 }, | 503 }, |
504 }, | 504 }, |
505 }, | 505 }, |
| 506 { |
| 507 'target_name': 'tcmalloc_unittest', |
| 508 'type': 'executable', |
| 509 'sources': [ |
| 510 'tcmalloc_unittest.cc', |
| 511 ], |
| 512 'include_dirs': [ |
| 513 '../..', |
| 514 # For constants of TCMalloc. |
| 515 '<(tcmalloc_dir)/src', |
| 516 ], |
| 517 'dependencies': [ |
| 518 '../../testing/gtest.gyp:gtest', |
| 519 '../base.gyp:base', |
| 520 'allocator', |
| 521 ], |
| 522 }, |
506 ], | 523 ], |
507 }], | 524 }], |
508 ], | 525 ], |
509 } | 526 } |
OLD | NEW |