| 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 source_set("allocator_shim") { | 83 source_set("allocator_shim") { |
| 84 sources = [ | 84 sources = [ |
| 85 "allocator_shim_win.cc", | 85 "allocator_shim_win.cc", |
| 86 ] | 86 ] |
| 87 configs -= [ "//build/config/compiler:chromium_code" ] | 87 configs -= [ "//build/config/compiler:chromium_code" ] |
| 88 configs += [ "//build/config/compiler:no_chromium_code" ] | 88 configs += [ "//build/config/compiler:no_chromium_code" ] |
| 89 | 89 |
| 90 public_configs = [ ":nocmt" ] | 90 public_configs = [ ":nocmt" ] |
| 91 deps = [ | 91 deps = [ |
| 92 ":prep_libc", | 92 ":prep_libc", |
| 93 "//base", |
| 93 ] | 94 ] |
| 94 } | 95 } |
| 95 } | 96 } |
| 96 } | 97 } |
| 97 | 98 |
| 98 if (use_allocator == "tcmalloc") { | 99 if (use_allocator == "tcmalloc") { |
| 99 # tcmalloc currently won't compile on Android. | 100 # tcmalloc currently won't compile on Android. |
| 100 source_set("tcmalloc") { | 101 source_set("tcmalloc") { |
| 101 tcmalloc_dir = "//third_party/tcmalloc/chromium" | 102 tcmalloc_dir = "//third_party/tcmalloc/chromium" |
| 102 | 103 |
| (...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 298 } | 299 } |
| 299 | 300 |
| 300 deps += [ "//base/third_party/dynamic_annotations" ] | 301 deps += [ "//base/third_party/dynamic_annotations" ] |
| 301 | 302 |
| 302 if (is_win) { | 303 if (is_win) { |
| 303 ldflags = [ "/ignore:4006:4221" ] | 304 ldflags = [ "/ignore:4006:4221" ] |
| 304 } | 305 } |
| 305 } | 306 } |
| 306 } # !is_android | 307 } # !is_android |
| 307 | 308 |
| 308 source_set("allocator_extension_thunks") { | 309 source_set("extension_thunks") { |
| 309 visibility = [ "//base/*" ] | 310 visibility = [ "//base/*" ] |
| 310 sources = [ | 311 sources = [ |
| 311 "allocator_extension_thunks.cc", | 312 "allocator_extension_thunks.cc", |
| 312 "allocator_extension_thunks.h", | 313 "allocator_extension_thunks.h", |
| 313 ] | 314 ] |
| 314 if (is_android && !is_debug) { | 315 if (is_android && !is_debug) { |
| 315 configs -= [ "//build/config/compiler:default_optimization" ] | 316 configs -= [ "//build/config/compiler:default_optimization" ] |
| 316 configs += [ "//build/config/compiler:optimize_max" ] | 317 configs += [ "//build/config/compiler:optimize_max" ] |
| 317 } | 318 } |
| 318 } | 319 } |
| OLD | NEW |