| 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 # Only executables and not libraries should depend on the allocator target; | 7 # Only executables and not libraries should depend on the allocator target; |
| 8 # only the application (the final executable) knows what allocator makes sense. | 8 # only the application (the final executable) knows what allocator makes sense. |
| 9 # This "allocator" meta-target will forward to the default allocator according | 9 # This "allocator" meta-target will forward to the default allocator according |
| 10 # to the build settings. | 10 # to the build settings. |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 "$tcmalloc_dir/src/profiler.cc", | 177 "$tcmalloc_dir/src/profiler.cc", |
| 178 ] | 178 ] |
| 179 defines += [ "PERFTOOLS_DLL_DECL=" ] | 179 defines += [ "PERFTOOLS_DLL_DECL=" ] |
| 180 | 180 |
| 181 configs -= [ | 181 configs -= [ |
| 182 # Tcmalloc defines this itself, and we don't want duplicate definition | 182 # Tcmalloc defines this itself, and we don't want duplicate definition |
| 183 # warnings. | 183 # warnings. |
| 184 "//build/config/win:nominmax", | 184 "//build/config/win:nominmax", |
| 185 ] | 185 ] |
| 186 | 186 |
| 187 direct_dependent_configs = [ ":nocmt" ] | 187 public_configs = [ ":nocmt" ] |
| 188 | 188 |
| 189 deps += [ | 189 deps += [ |
| 190 ":prep_libc", | 190 ":prep_libc", |
| 191 ] | 191 ] |
| 192 } | 192 } |
| 193 | 193 |
| 194 if (is_linux || is_android) { | 194 if (is_linux || is_android) { |
| 195 sources -= [ | 195 sources -= [ |
| 196 "$tcmalloc_dir/src/system-alloc.h", | 196 "$tcmalloc_dir/src/system-alloc.h", |
| 197 "$tcmalloc_dir/src/windows/port.cc", | 197 "$tcmalloc_dir/src/windows/port.cc", |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 243 visibility = [ "//base/*" ] | 243 visibility = [ "//base/*" ] |
| 244 sources = [ | 244 sources = [ |
| 245 "allocator_extension_thunks.cc", | 245 "allocator_extension_thunks.cc", |
| 246 "allocator_extension_thunks.h", | 246 "allocator_extension_thunks.h", |
| 247 ] | 247 ] |
| 248 if (is_android && !is_debug) { | 248 if (is_android && !is_debug) { |
| 249 configs -= [ "//build/config/compiler:optimize" ] | 249 configs -= [ "//build/config/compiler:optimize" ] |
| 250 configs += [ "//build/config/compiler:optimize_max" ] | 250 configs += [ "//build/config/compiler:optimize_max" ] |
| 251 } | 251 } |
| 252 } | 252 } |
| OLD | NEW |