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 205 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 | |
jar (doing other things)
2012/05/17 01:36:41
nit: remove line.
kaiwang
2012/05/19 00:12:27
Done.
| |
430 { | 431 { |
431 # This library is linked in to libbase and allocator_unittests. | 432 # This library is linked in to libbase, allocator_unittests and TCMalloc |
432 # It can't depend on either and nothing else should depend on it - | 433 # tests. It can't depend on either and nothing else should depend on it - |
433 # all other code should use the interfaced provided by libbase. | 434 # all other code should use the interfaced provided by libbase. |
434 'target_name': 'allocator_extension_thunks', | 435 'target_name': 'allocator_extension_thunks', |
435 'type': 'static_library', | 436 'type': 'static_library', |
436 'sources': [ | 437 'sources': [ |
437 'allocator_extension_thunks.cc', | 438 'allocator_extension_thunks.cc', |
438 'allocator_extension_thunks.h', | 439 'allocator_extension_thunks.h', |
439 ], | 440 ], |
440 'toolsets': ['host', 'target'], | 441 'toolsets': ['host', 'target'], |
441 'include_dirs': [ | 442 'include_dirs': [ |
442 '../../' | 443 '../../' |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
496 'toolsets': ['host', 'target'], | 497 'toolsets': ['host', 'target'], |
497 'include_dirs': [ | 498 'include_dirs': [ |
498 '../../' | 499 '../../' |
499 ], | 500 ], |
500 'configurations': { | 501 'configurations': { |
501 'Common_Base': { | 502 'Common_Base': { |
502 'msvs_target_platform': 'x64', | 503 'msvs_target_platform': 'x64', |
503 }, | 504 }, |
504 }, | 505 }, |
505 }, | 506 }, |
507 { | |
508 'target_name': 'tcmalloc_free_check_test', | |
509 'type': 'executable', | |
510 'sources': [ | |
511 'tcmalloc_free_check_test.cc', | |
512 | |
513 # Part of chromium code(instead of TCMalloc). We don't include the | |
514 # TCMalloc version(atomicops-internals-x86.cc) in allocator library, | |
515 # so need this for replacement. | |
516 '../atomicops_internals_x86_gcc.cc', | |
517 | |
518 # Code allocator_shim.cc depends on. | |
519 '../profiler/alternate_timer.cc', | |
520 '../profiler/alternate_timer.h', | |
521 ], | |
522 'include_dirs': [ | |
523 '../..', | |
524 | |
525 # This is tricky.. We add this include dir so alternate_timer.cc will | |
jar (doing other things)
2012/05/17 01:36:41
I'd suggest asking rvargas about this and be sure
kaiwang
2012/05/19 00:12:27
Will add as a reviewer
| |
526 # use TCMalloc's logging.h, instead of the intuitional chromium | |
jar (doing other things)
2012/05/17 01:36:41
nit: delete "intuitional"
kaiwang
2012/05/19 00:12:27
Done.
| |
527 # base/logging.h as in other building targets. | |
jar (doing other things)
2012/05/17 01:36:41
nit: building-->build
kaiwang
2012/05/19 00:12:27
Done.
| |
528 '<(tcmalloc_dir)/src', | |
529 ], | |
530 'dependencies': [ | |
531 'allocator', | |
532 'allocator_extension_thunks', | |
533 '../../testing/gtest.gyp:gtest', | |
534 ], | |
535 }, | |
506 ], | 536 ], |
507 }], | 537 }], |
508 ], | 538 ], |
509 } | 539 } |
OLD | NEW |