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

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

Issue 18314006: Enable DMP for system Chromium WebView on Android (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Using a compiler define for detecting build type Created 7 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 | Annotate | Revision Log
« no previous file with comments | « android_webview/android_webview.gyp ('k') | build/android/envsetup_functions.sh » ('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 'variables': { 6 'variables': {
7 'jemalloc_dir': '../../third_party/jemalloc/chromium', 7 'jemalloc_dir': '../../third_party/jemalloc/chromium',
8 'tcmalloc_dir': '../../third_party/tcmalloc/chromium', 8 'tcmalloc_dir': '../../third_party/tcmalloc/chromium',
9 'use_vtable_verify%': 0, 9 'use_vtable_verify%': 0,
10 }, 10 },
11 'targets': [ 11 'targets': [
12 # Only executables and not libraries should depend on the 12 # Only executables and not libraries should depend on the
13 # allocator target; only the application (the final executable) 13 # allocator target; only the application (the final executable)
14 # knows what allocator makes sense. 14 # knows what allocator makes sense.
15 { 15 {
16 'target_name': 'allocator', 16 'target_name': 'allocator',
17 'type': 'static_library', 17 'type': 'static_library',
18 # Make sure the allocation library is optimized to 18 # Make sure the allocation library is optimized to
19 # the hilt in official builds. 19 # the hilt in official builds.
20 'variables': { 20 'variables': {
21 'optimize': 'max', 21 'optimize': 'max',
22 'android_sdk_build%': 1,
22 }, 23 },
23 'include_dirs': [ 24 'include_dirs': [
24 '.', 25 '.',
25 '<(tcmalloc_dir)/src/base', 26 '<(tcmalloc_dir)/src/base',
26 '<(tcmalloc_dir)/src', 27 '<(tcmalloc_dir)/src',
27 '../..', 28 '../..',
28 ], 29 ],
29 'direct_dependent_settings': { 30 'direct_dependent_settings': {
30 'configurations': { 31 'configurations': {
31 'Common_Base': { 32 'Common_Base': {
(...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after
422 'ldflags': [ 423 'ldflags': [
423 # Don't let linker rip this symbol out, otherwise the heap&cpu 424 # Don't let linker rip this symbol out, otherwise the heap&cpu
424 # profilers will not initialize properly on startup. 425 # profilers will not initialize properly on startup.
425 '-Wl,-uIsHeapProfilerRunning,-uProfilerStart', 426 '-Wl,-uIsHeapProfilerRunning,-uProfilerStart',
426 # Do the same for heap leak checker. 427 # Do the same for heap leak checker.
427 '-Wl,-u_Z21InitialMallocHook_NewPKvj,-u_Z22InitialMallocHook_MMapP KvS0_jiiix,-u_Z22InitialMallocHook_SbrkPKvi', 428 '-Wl,-u_Z21InitialMallocHook_NewPKvj,-u_Z22InitialMallocHook_MMapP KvS0_jiiix,-u_Z22InitialMallocHook_SbrkPKvi',
428 '-Wl,-u_Z21InitialMallocHook_NewPKvm,-u_Z22InitialMallocHook_MMapP KvS0_miiil,-u_Z22InitialMallocHook_SbrkPKvl', 429 '-Wl,-u_Z21InitialMallocHook_NewPKvm,-u_Z22InitialMallocHook_MMapP KvS0_miiil,-u_Z22InitialMallocHook_SbrkPKvl',
429 '-Wl,-u_ZN15HeapLeakChecker12IgnoreObjectEPKv,-u_ZN15HeapLeakCheck er14UnIgnoreObjectEPKv', 430 '-Wl,-u_ZN15HeapLeakChecker12IgnoreObjectEPKv,-u_ZN15HeapLeakCheck er14UnIgnoreObjectEPKv',
430 ]}, 431 ]},
431 }], 432 }],
433 # Need to distinguish between SDK and non-SDK build for Android
434 # due to differences in C include files.
435 ['OS=="android" and android_use_tcmalloc==1 and android_sdk_build==1', {
bulach 2013/07/15 12:31:59 hmm.. the "use_tcmalloc" seems a bit odd to toggle
mnaganov (inactive) 2013/07/15 12:34:01 Sorry, I've uploaded a better version already. Tor
436 'defines': ['ANDROID_SDK_BUILD'],
437 }],
432 [ 'use_vtable_verify==1', { 438 [ 'use_vtable_verify==1', {
433 'cflags': [ 439 'cflags': [
434 '-fvtable-verify=preinit', 440 '-fvtable-verify=preinit',
435 ], 441 ],
436 }], 442 }],
437 [ 'linux_keep_shadow_stacks==1', { 443 [ 'linux_keep_shadow_stacks==1', {
438 'sources': [ 444 'sources': [
439 '<(tcmalloc_dir)/src/linux_shadow_stacks.cc', 445 '<(tcmalloc_dir)/src/linux_shadow_stacks.cc',
440 '<(tcmalloc_dir)/src/linux_shadow_stacks.h', 446 '<(tcmalloc_dir)/src/linux_shadow_stacks.h',
441 '<(tcmalloc_dir)/src/stacktrace_shadow-inl.h', 447 '<(tcmalloc_dir)/src/stacktrace_shadow-inl.h',
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
662 'sources': [ 668 'sources': [
663 'type_profiler_map_unittests.cc', 669 'type_profiler_map_unittests.cc',
664 '<(tcmalloc_dir)/src/gperftools/type_profiler_map.h', 670 '<(tcmalloc_dir)/src/gperftools/type_profiler_map.h',
665 '<(tcmalloc_dir)/src/type_profiler_map.cc', 671 '<(tcmalloc_dir)/src/type_profiler_map.cc',
666 ], 672 ],
667 }, 673 },
668 ], 674 ],
669 }], 675 }],
670 ], 676 ],
671 } 677 }
OLDNEW
« no previous file with comments | « android_webview/android_webview.gyp ('k') | build/android/envsetup_functions.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698