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 declare_args() { | 7 declare_args() { |
8 # Provide a way to force disable debugallocation in Debug builds, | 8 # Provide a way to force disable debugallocation in Debug builds, |
9 # e.g. for profiling (it's more rare to profile Debug builds, | 9 # e.g. for profiling (it's more rare to profile Debug builds, |
10 # but people sometimes need to do that). | 10 # but people sometimes need to do that). |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 # tcmalloc currently won't compile on Android. | 93 # tcmalloc currently won't compile on Android. |
94 source_set("tcmalloc") { | 94 source_set("tcmalloc") { |
95 tcmalloc_dir = "//third_party/tcmalloc/chromium" | 95 tcmalloc_dir = "//third_party/tcmalloc/chromium" |
96 | 96 |
97 # Don't check tcmalloc's includes. These files include various files like | 97 # Don't check tcmalloc's includes. These files include various files like |
98 # base/foo.h and they actually refer to tcmalloc's forked copy of base | 98 # base/foo.h and they actually refer to tcmalloc's forked copy of base |
99 # rather than the regular one, which confuses the header checker. | 99 # rather than the regular one, which confuses the header checker. |
100 check_includes = false | 100 check_includes = false |
101 | 101 |
102 sources = [ | 102 sources = [ |
103 # Generated for our configuration from tcmalloc"s build | 103 # Generated for our configuration from tcmalloc's build |
104 # and checked in. | 104 # and checked in. |
105 "$tcmalloc_dir/src/config.h", | 105 "$tcmalloc_dir/src/config.h", |
106 "$tcmalloc_dir/src/config_android.h", | 106 "$tcmalloc_dir/src/config_android.h", |
107 "$tcmalloc_dir/src/config_linux.h", | 107 "$tcmalloc_dir/src/config_linux.h", |
108 "$tcmalloc_dir/src/config_win.h", | 108 "$tcmalloc_dir/src/config_win.h", |
109 | 109 |
110 # tcmalloc native and forked files. | 110 # tcmalloc native and forked files. |
111 "$tcmalloc_dir/src/base/abort.cc", | 111 "$tcmalloc_dir/src/base/abort.cc", |
112 "$tcmalloc_dir/src/base/abort.h", | 112 "$tcmalloc_dir/src/base/abort.h", |
113 "$tcmalloc_dir/src/base/arm_instruction_set_select.h", | 113 "$tcmalloc_dir/src/base/arm_instruction_set_select.h", |
(...skipping 30 matching lines...) Expand all Loading... |
144 "$tcmalloc_dir/src/base/thread_lister.h", | 144 "$tcmalloc_dir/src/base/thread_lister.h", |
145 "$tcmalloc_dir/src/base/vdso_support.cc", | 145 "$tcmalloc_dir/src/base/vdso_support.cc", |
146 "$tcmalloc_dir/src/base/vdso_support.h", | 146 "$tcmalloc_dir/src/base/vdso_support.h", |
147 "$tcmalloc_dir/src/central_freelist.cc", | 147 "$tcmalloc_dir/src/central_freelist.cc", |
148 "$tcmalloc_dir/src/central_freelist.h", | 148 "$tcmalloc_dir/src/central_freelist.h", |
149 "$tcmalloc_dir/src/common.cc", | 149 "$tcmalloc_dir/src/common.cc", |
150 "$tcmalloc_dir/src/common.h", | 150 "$tcmalloc_dir/src/common.h", |
151 | 151 |
152 # #included by debugallocation_shim.cc | 152 # #included by debugallocation_shim.cc |
153 #"$tcmalloc_dir/src/debugallocation.cc", | 153 #"$tcmalloc_dir/src/debugallocation.cc", |
154 "$tcmalloc_dir/src/deep-heap-profile.cc", | |
155 "$tcmalloc_dir/src/deep-heap-profile.h", | |
156 "$tcmalloc_dir/src/free_list.cc", | 154 "$tcmalloc_dir/src/free_list.cc", |
157 "$tcmalloc_dir/src/free_list.h", | 155 "$tcmalloc_dir/src/free_list.h", |
158 "$tcmalloc_dir/src/heap-profile-table.cc", | 156 "$tcmalloc_dir/src/heap-profile-table.cc", |
159 "$tcmalloc_dir/src/heap-profile-table.h", | 157 "$tcmalloc_dir/src/heap-profile-table.h", |
160 "$tcmalloc_dir/src/heap-profiler.cc", | 158 "$tcmalloc_dir/src/heap-profiler.cc", |
161 "$tcmalloc_dir/src/internal_logging.cc", | 159 "$tcmalloc_dir/src/internal_logging.cc", |
162 "$tcmalloc_dir/src/internal_logging.h", | 160 "$tcmalloc_dir/src/internal_logging.h", |
163 "$tcmalloc_dir/src/linked_list.h", | 161 "$tcmalloc_dir/src/linked_list.h", |
164 "$tcmalloc_dir/src/malloc_extension.cc", | 162 "$tcmalloc_dir/src/malloc_extension.cc", |
165 "$tcmalloc_dir/src/malloc_hook-inl.h", | 163 "$tcmalloc_dir/src/malloc_hook-inl.h", |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
305 visibility = [ "//base/*" ] | 303 visibility = [ "//base/*" ] |
306 sources = [ | 304 sources = [ |
307 "allocator_extension_thunks.cc", | 305 "allocator_extension_thunks.cc", |
308 "allocator_extension_thunks.h", | 306 "allocator_extension_thunks.h", |
309 ] | 307 ] |
310 if (is_android && !is_debug) { | 308 if (is_android && !is_debug) { |
311 configs -= [ "//build/config/compiler:optimize" ] | 309 configs -= [ "//build/config/compiler:optimize" ] |
312 configs += [ "//build/config/compiler:optimize_max" ] | 310 configs += [ "//build/config/compiler:optimize_max" ] |
313 } | 311 } |
314 } | 312 } |
OLD | NEW |