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

Side by Side Diff: base/allocator/allocator.gyp

Issue 1719433002: Introduce allocator shim for Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@shim_traceintegration
Patch Set: Add readme changes, do NOT enabled by default in this cl Created 4 years, 8 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 | « base/allocator/README.md ('k') | base/allocator/allocator_shim.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 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 { 5 {
6 'target_defaults': { 6 'target_defaults': {
7 'variables': { 7 'variables': {
8 # This code gets run a lot and debugged rarely, so it should be fast 8 # This code gets run a lot and debugged rarely, so it should be fast
9 # by default. See http://crbug.com/388949. 9 # by default. See http://crbug.com/388949.
10 'debug_optimize': '2', 10 'debug_optimize': '2',
(...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after
399 'include_dirs': [ 399 'include_dirs': [
400 '../..', 400 '../..',
401 ], 401 ],
402 'conditions': [ 402 'conditions': [
403 ['OS=="linux" and use_allocator=="tcmalloc"', { 403 ['OS=="linux" and use_allocator=="tcmalloc"', {
404 'sources': [ 404 'sources': [
405 'allocator_shim_default_dispatch_to_tcmalloc.cc', 405 'allocator_shim_default_dispatch_to_tcmalloc.cc',
406 'allocator_shim_override_glibc_weak_symbols.h', 406 'allocator_shim_override_glibc_weak_symbols.h',
407 ], 407 ],
408 }], 408 }],
409 ['OS=="linux" and use_allocator=="none"', { 409 ['use_allocator=="none" and (OS=="linux" or (OS=="android" and _tool set == "host" and host_os == "linux"))', {
410 'sources': [ 410 'sources': [
411 'allocator_shim_default_dispatch_to_glibc.cc', 411 'allocator_shim_default_dispatch_to_glibc.cc',
412 ], 412 ],
413 }], 413 }],
414 ['OS=="android" and _toolset == "target"', {
415 'sources': [
416 'allocator_shim_default_dispatch_to_linker_wrapped_symbols.cc',
417 'allocator_shim_override_linker_wrapped_symbols.h',
418 ],
419 # On Android all references to malloc & friends symbols are
420 # rewritten, at link time, and routed to the shim.
421 # See //base/allocator/README.md.
422 'all_dependent_settings': {
423 'ldflags': [
424 '-Wl,-wrap,calloc',
425 '-Wl,-wrap,free',
426 '-Wl,-wrap,malloc',
427 '-Wl,-wrap,memalign',
428 '-Wl,-wrap,posix_memalign',
429 '-Wl,-wrap,pvalloc',
430 '-Wl,-wrap,realloc',
431 '-Wl,-wrap,valloc',
432 ],
433 },
434 }],
414 ] 435 ]
415 }, # 'unified_allocator_shim' target. 436 }, # 'unified_allocator_shim' target.
416 ], 437 ],
417 }] 438 }]
418 ], 439 ],
419 } 440 }
OLDNEW
« no previous file with comments | « base/allocator/README.md ('k') | base/allocator/allocator_shim.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698