Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(905)

Side by Side Diff: base/allocator/BUILD.gn

Issue 2138173002: Hookup the generic heap intercept for Windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Snip an errant curly. Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | base/allocator/allocator_shim.cc » ('j') | base/allocator/allocator_shim.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/buildflag_header.gni") 5 import("//build/buildflag_header.gni")
6 import("//build/config/allocator.gni") 6 import("//build/config/allocator.gni")
7 import("//build/config/compiler/compiler.gni") 7 import("//build/config/compiler/compiler.gni")
8 8
9 declare_args() { 9 declare_args() {
10 # Provide a way to force disable debugallocation in Debug builds, 10 # Provide a way to force disable debugallocation in Debug builds,
11 # e.g. for profiling (it's more rare to profile Debug builds, 11 # e.g. for profiling (it's more rare to profile Debug builds,
12 # but people sometimes need to do that). 12 # but people sometimes need to do that).
13 enable_debugallocation = is_debug 13 enable_debugallocation = is_debug
14 } 14 }
15 15
16 # Allocator shim is only enabled for Release static builds. 16 # The Windows-only allocator shim is only enabled for Release static builds, and
17 win_use_allocator_shim = is_win && !is_component_build && !is_debug 17 # is mutually exclusive with the generalized shim.
18 win_use_allocator_shim = is_win && !is_component_build && !is_debug &&
19 !use_experimental_allocator_shim
18 20
19 # This "allocator" meta-target will forward to the default allocator according 21 # This "allocator" meta-target will forward to the default allocator according
20 # to the build settings. 22 # to the build settings.
21 group("allocator") { 23 group("allocator") {
22 public_deps = [] 24 public_deps = []
23 deps = [] 25 deps = []
24 26
25 if (use_allocator == "tcmalloc") { 27 if (use_allocator == "tcmalloc") {
26 deps += [ ":tcmalloc" ] 28 deps += [ ":tcmalloc" ]
27 } 29 }
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
300 # Linux/CrOS/Android. http://crbug.com/550886 . 302 # Linux/CrOS/Android. http://crbug.com/550886 .
301 configs += [ "//base:base_implementation" ] # for BASE_EXPORT 303 configs += [ "//base:base_implementation" ] # for BASE_EXPORT
302 visibility = [ "//base:base" ] 304 visibility = [ "//base:base" ]
303 sources = [ 305 sources = [
304 "allocator_shim.cc", 306 "allocator_shim.cc",
305 "allocator_shim.h", 307 "allocator_shim.h",
306 "allocator_shim_internals.h", 308 "allocator_shim_internals.h",
307 "allocator_shim_override_cpp_symbols.h", 309 "allocator_shim_override_cpp_symbols.h",
308 "allocator_shim_override_libc_symbols.h", 310 "allocator_shim_override_libc_symbols.h",
309 ] 311 ]
310 if (is_linux && use_allocator == "tcmalloc") { 312 if (is_win) {
313 sources += [
314 "allocator_shim_default_dispatch_to_winheap.cc",
315 "allocator_shim_override_ucrt_symbols_win.h",
316 "winheap_stubs_win.cc",
317 "winheap_stubs_win.h",
318 ]
319 } else if (is_linux && use_allocator == "tcmalloc") {
311 sources += [ 320 sources += [
312 "allocator_shim_default_dispatch_to_tcmalloc.cc", 321 "allocator_shim_default_dispatch_to_tcmalloc.cc",
313 "allocator_shim_override_glibc_weak_symbols.h", 322 "allocator_shim_override_glibc_weak_symbols.h",
314 ] 323 ]
315 deps = [ 324 deps = [
316 ":tcmalloc", 325 ":tcmalloc",
317 ] 326 ]
318 } else if (is_linux && use_allocator == "none") { 327 } else if (is_linux && use_allocator == "none") {
319 sources += [ "allocator_shim_default_dispatch_to_glibc.cc" ] 328 sources += [ "allocator_shim_default_dispatch_to_glibc.cc" ]
320 } else if (is_android && use_allocator == "none") { 329 } else if (is_android && use_allocator == "none") {
321 sources += [ 330 sources += [
322 "allocator_shim_default_dispatch_to_linker_wrapped_symbols.cc", 331 "allocator_shim_default_dispatch_to_linker_wrapped_symbols.cc",
323 "allocator_shim_override_linker_wrapped_symbols.h", 332 "allocator_shim_override_linker_wrapped_symbols.h",
324 ] 333 ]
325 all_dependent_configs = [ ":wrap_malloc_symbols" ] 334 all_dependent_configs = [ ":wrap_malloc_symbols" ]
326 } 335 }
327 } 336 }
328 } 337 }
OLDNEW
« no previous file with comments | « no previous file | base/allocator/allocator_shim.cc » ('j') | base/allocator/allocator_shim.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698