| 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 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 "$tcmalloc_dir/src/symbolize.h", | 169 "$tcmalloc_dir/src/symbolize.h", |
| 170 "$tcmalloc_dir/src/system-alloc.cc", | 170 "$tcmalloc_dir/src/system-alloc.cc", |
| 171 "$tcmalloc_dir/src/system-alloc.h", | 171 "$tcmalloc_dir/src/system-alloc.h", |
| 172 | 172 |
| 173 # included by allocator_shim.cc | 173 # included by allocator_shim.cc |
| 174 "debugallocation_shim.cc", | 174 "debugallocation_shim.cc", |
| 175 | 175 |
| 176 # cpuprofiler | 176 # cpuprofiler |
| 177 "$tcmalloc_dir/src/base/thread_lister.c", | 177 "$tcmalloc_dir/src/base/thread_lister.c", |
| 178 "$tcmalloc_dir/src/base/thread_lister.h", | 178 "$tcmalloc_dir/src/base/thread_lister.h", |
| 179 "$tcmalloc_dir/src/profile-handler.cc", |
| 180 "$tcmalloc_dir/src/profile-handler.h", |
| 179 "$tcmalloc_dir/src/profiledata.cc", | 181 "$tcmalloc_dir/src/profiledata.cc", |
| 180 "$tcmalloc_dir/src/profiledata.h", | 182 "$tcmalloc_dir/src/profiledata.h", |
| 181 "$tcmalloc_dir/src/profile-handler.cc", | |
| 182 "$tcmalloc_dir/src/profile-handler.h", | |
| 183 "$tcmalloc_dir/src/profiler.cc", | 183 "$tcmalloc_dir/src/profiler.cc", |
| 184 ] | 184 ] |
| 185 defines += [ "PERFTOOLS_DLL_DECL=" ] | 185 defines += [ "PERFTOOLS_DLL_DECL=" ] |
| 186 | 186 |
| 187 configs -= [ | 187 configs -= [ |
| 188 # Tcmalloc defines this itself, and we don't want duplicate definition | 188 # Tcmalloc defines this itself, and we don't want duplicate definition |
| 189 # warnings. | 189 # warnings. |
| 190 "//build/config/win:nominmax", | 190 "//build/config/win:nominmax", |
| 191 ] | 191 ] |
| 192 | 192 |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 246 visibility = [ "//base/*" ] | 246 visibility = [ "//base/*" ] |
| 247 sources = [ | 247 sources = [ |
| 248 "allocator_extension_thunks.cc", | 248 "allocator_extension_thunks.cc", |
| 249 "allocator_extension_thunks.h", | 249 "allocator_extension_thunks.h", |
| 250 ] | 250 ] |
| 251 if (is_android && !is_debug) { | 251 if (is_android && !is_debug) { |
| 252 configs -= [ "//build/config/compiler:optimize" ] | 252 configs -= [ "//build/config/compiler:optimize" ] |
| 253 configs += [ "//build/config/compiler:optimize_max" ] | 253 configs += [ "//build/config/compiler:optimize_max" ] |
| 254 } | 254 } |
| 255 } | 255 } |
| OLD | NEW |