| 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', |
| 11 'win_debug_Optimization': '0', | 11 'win_debug_Optimization': '0', |
| 12 # Run time checks are incompatible with any level of optimizations. | 12 # Run time checks are incompatible with any level of optimizations. |
| 13 'win_debug_RuntimeChecks': '0', | 13 'win_debug_RuntimeChecks': '0', |
| 14 }, | 14 }, |
| 15 }, | 15 }, |
| 16 'variables': { | 16 'variables': { |
| 17 'tcmalloc_dir': '../../third_party/tcmalloc/chromium', | 17 'tcmalloc_dir': '../../third_party/tcmalloc/chromium', |
| 18 'use_vtable_verify%': 0, | 18 'use_vtable_verify%': 0, |
| 19 # Provide a way to force disable debugallocation in Debug builds | 19 # Provide a way to force disable debugallocation in Debug builds |
| 20 # e.g. for profiling (it's more rare to profile Debug builds, | 20 # e.g. for profiling (it's more rare to profile Debug builds, |
| 21 # but people sometimes need to do that). | 21 # but people sometimes need to do that). |
| 22 'disable_debugallocation%': 0, | 22 'disable_debugallocation%': 0, |
| 23 'use_experimental_allocator_shim%': 0, |
| 23 }, | 24 }, |
| 24 'targets': [ | 25 'targets': [ |
| 25 # The only targets that should depend on allocator are 'base' and | 26 # The only targets that should depend on allocator are 'base' and |
| 26 # executables that don't depend, directly or indirectly, on base (a few). | 27 # executables that don't depend, directly or indirectly, on base (a few). |
| 27 # All the other targets get a transitive dependency on this target via base. | 28 # All the other targets get a transitive dependency on this target via base. |
| 28 { | 29 { |
| 29 'target_name': 'allocator', | 30 'target_name': 'allocator', |
| 30 'variables': { | 31 'variables': { |
| 31 'conditions': [ | 32 'conditions': [ |
| 32 ['use_allocator!="none" or (OS=="win" and win_use_allocator_shim==1)',
{ | 33 ['use_allocator!="none" or (OS=="win" and win_use_allocator_shim==1)',
{ |
| (...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 333 # cpuprofiler | 334 # cpuprofiler |
| 334 '<(tcmalloc_dir)/src/base/thread_lister.c', | 335 '<(tcmalloc_dir)/src/base/thread_lister.c', |
| 335 '<(tcmalloc_dir)/src/base/thread_lister.h', | 336 '<(tcmalloc_dir)/src/base/thread_lister.h', |
| 336 '<(tcmalloc_dir)/src/profile-handler.cc', | 337 '<(tcmalloc_dir)/src/profile-handler.cc', |
| 337 '<(tcmalloc_dir)/src/profile-handler.h', | 338 '<(tcmalloc_dir)/src/profile-handler.h', |
| 338 '<(tcmalloc_dir)/src/profiledata.cc', | 339 '<(tcmalloc_dir)/src/profiledata.cc', |
| 339 '<(tcmalloc_dir)/src/profiledata.h', | 340 '<(tcmalloc_dir)/src/profiledata.h', |
| 340 '<(tcmalloc_dir)/src/profiler.cc', | 341 '<(tcmalloc_dir)/src/profiler.cc', |
| 341 ], | 342 ], |
| 342 }], | 343 }], |
| 344 ['use_experimental_allocator_shim==1', { |
| 345 'defines': [ |
| 346 'TCMALLOC_DONT_REPLACE_SYSTEM_ALLOC', |
| 347 ], |
| 348 }] |
| 343 ], | 349 ], |
| 344 'configurations': { | 350 'configurations': { |
| 345 'Debug_Base': { | 351 'Debug_Base': { |
| 346 'conditions': [ | 352 'conditions': [ |
| 347 ['disable_debugallocation==0', { | 353 ['disable_debugallocation==0', { |
| 348 'defines': [ | 354 'defines': [ |
| 349 # Use debugallocation for Debug builds to catch problems | 355 # Use debugallocation for Debug builds to catch problems |
| 350 # early and cleanly, http://crbug.com/30715 . | 356 # early and cleanly, http://crbug.com/30715 . |
| 351 'TCMALLOC_FOR_DEBUGALLOCATION', | 357 'TCMALLOC_FOR_DEBUGALLOCATION', |
| 352 ], | 358 ], |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 397 '<(SHARED_INTERMEDIATE_DIR)/allocator', | 403 '<(SHARED_INTERMEDIATE_DIR)/allocator', |
| 398 '<(target_arch)', | 404 '<(target_arch)', |
| 399 ], | 405 ], |
| 400 }, | 406 }, |
| 401 ], | 407 ], |
| 402 }, | 408 }, |
| 403 ], | 409 ], |
| 404 }], | 410 }], |
| 405 ], | 411 ], |
| 406 } | 412 } |
| OLD | NEW |