| OLD | NEW |
| 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2013 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 import("//build/config/allocator.gni") | 5 import("//build/config/allocator.gni") |
| 6 | 6 |
| 7 declare_args() { | 7 declare_args() { |
| 8 # Provide a way to force disable debugallocation in Debug builds, | 8 # Provide a way to force disable debugallocation in Debug builds, |
| 9 # e.g. for profiling (it's more rare to profile Debug builds, | 9 # e.g. for profiling (it's more rare to profile Debug builds, |
| 10 # but people sometimes need to do that). | 10 # but people sometimes need to do that). |
| (...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 242 | 242 |
| 243 # cpuprofiler | 243 # cpuprofiler |
| 244 "$tcmalloc_dir/src/base/thread_lister.c", | 244 "$tcmalloc_dir/src/base/thread_lister.c", |
| 245 "$tcmalloc_dir/src/base/thread_lister.h", | 245 "$tcmalloc_dir/src/base/thread_lister.h", |
| 246 "$tcmalloc_dir/src/profile-handler.cc", | 246 "$tcmalloc_dir/src/profile-handler.cc", |
| 247 "$tcmalloc_dir/src/profile-handler.h", | 247 "$tcmalloc_dir/src/profile-handler.h", |
| 248 "$tcmalloc_dir/src/profiledata.cc", | 248 "$tcmalloc_dir/src/profiledata.cc", |
| 249 "$tcmalloc_dir/src/profiledata.h", | 249 "$tcmalloc_dir/src/profiledata.h", |
| 250 "$tcmalloc_dir/src/profiler.cc", | 250 "$tcmalloc_dir/src/profiler.cc", |
| 251 ] | 251 ] |
| 252 defines += [ "PERFTOOLS_DLL_DECL=" ] | |
| 253 | 252 |
| 254 configs -= [ | 253 configs -= [ |
| 255 # Tcmalloc defines this itself, and we don't want duplicate definition | 254 # Tcmalloc defines this itself, and we don't want duplicate definition |
| 256 # warnings. | 255 # warnings. |
| 257 "//build/config/win:nominmax", | 256 "//build/config/win:nominmax", |
| 258 ] | 257 ] |
| 259 | 258 |
| 260 public_configs = [ ":nocmt" ] | 259 public_configs = [ ":nocmt" ] |
| 261 | 260 |
| 262 deps += [ ":prep_libc" ] | 261 deps += [ ":prep_libc" ] |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 310 visibility = [ "//base/*" ] | 309 visibility = [ "//base/*" ] |
| 311 sources = [ | 310 sources = [ |
| 312 "allocator_extension_thunks.cc", | 311 "allocator_extension_thunks.cc", |
| 313 "allocator_extension_thunks.h", | 312 "allocator_extension_thunks.h", |
| 314 ] | 313 ] |
| 315 if (is_android && !is_debug) { | 314 if (is_android && !is_debug) { |
| 316 configs -= [ "//build/config/compiler:default_optimization" ] | 315 configs -= [ "//build/config/compiler:default_optimization" ] |
| 317 configs += [ "//build/config/compiler:optimize_max" ] | 316 configs += [ "//build/config/compiler:optimize_max" ] |
| 318 } | 317 } |
| 319 } | 318 } |
| OLD | NEW |