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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
127 "$tcmalloc_dir/src/system-alloc.cc", | 127 "$tcmalloc_dir/src/system-alloc.cc", |
128 "$tcmalloc_dir/src/system-alloc.h", | 128 "$tcmalloc_dir/src/system-alloc.h", |
129 | 129 |
130 # #included by debugallocation_shim.cc | 130 # #included by debugallocation_shim.cc |
131 #"$tcmalloc_dir/src/tcmalloc.cc", | 131 #"$tcmalloc_dir/src/tcmalloc.cc", |
132 "$tcmalloc_dir/src/thread_cache.cc", | 132 "$tcmalloc_dir/src/thread_cache.cc", |
133 "$tcmalloc_dir/src/thread_cache.h", | 133 "$tcmalloc_dir/src/thread_cache.h", |
134 "$tcmalloc_dir/src/windows/port.cc", | 134 "$tcmalloc_dir/src/windows/port.cc", |
135 "$tcmalloc_dir/src/windows/port.h", | 135 "$tcmalloc_dir/src/windows/port.h", |
136 "allocator_shim.cc", | 136 "allocator_shim.cc", |
137 "allocator_shim.h", | |
138 "debugallocation_shim.cc", | 137 "debugallocation_shim.cc", |
139 | 138 |
140 # These are both #included by allocator_shim for maximal linking. | 139 # These are both #included by allocator_shim for maximal linking. |
141 #"generic_allocators.cc", | 140 #"generic_allocators.cc", |
142 #"win_allocator.cc", | 141 #"win_allocator.cc", |
143 ] | 142 ] |
144 | 143 |
145 # Disable the heap checker in tcmalloc. | 144 # Disable the heap checker in tcmalloc. |
146 defines = [ "NO_HEAP_CHECK" ] | 145 defines = [ "NO_HEAP_CHECK" ] |
147 | 146 |
148 include_dirs = [ | 147 include_dirs = [ |
149 ".", | 148 ".", |
150 "$tcmalloc_dir/src/base", | 149 "$tcmalloc_dir/src/base", |
151 "$tcmalloc_dir/src", | 150 "$tcmalloc_dir/src", |
152 ] | 151 ] |
153 | 152 |
154 configs -= [ "//build/config/compiler:chromium_code" ] | 153 configs -= [ "//build/config/compiler:chromium_code" ] |
155 configs += [ "//build/config/compiler:no_chromium_code" ] | 154 configs += [ "//build/config/compiler:no_chromium_code" ] |
156 | 155 |
157 deps = [] | 156 deps = [ |
157 "//base", | |
jamesr
2015/02/14 00:49:41
Hmm, is this what this code is actually using? I t
| |
158 ] | |
158 | 159 |
159 if (is_win) { | 160 if (is_win) { |
160 sources -= [ | 161 sources -= [ |
161 "$tcmalloc_dir/src/base/elf_mem_image.cc", | 162 "$tcmalloc_dir/src/base/elf_mem_image.cc", |
162 "$tcmalloc_dir/src/base/elf_mem_image.h", | 163 "$tcmalloc_dir/src/base/elf_mem_image.h", |
163 "$tcmalloc_dir/src/base/linuxthreads.cc", | 164 "$tcmalloc_dir/src/base/linuxthreads.cc", |
164 "$tcmalloc_dir/src/base/linuxthreads.h", | 165 "$tcmalloc_dir/src/base/linuxthreads.h", |
165 "$tcmalloc_dir/src/base/vdso_support.cc", | 166 "$tcmalloc_dir/src/base/vdso_support.cc", |
166 "$tcmalloc_dir/src/base/vdso_support.h", | 167 "$tcmalloc_dir/src/base/vdso_support.h", |
167 "$tcmalloc_dir/src/maybe_threads.cc", | 168 "$tcmalloc_dir/src/maybe_threads.cc", |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
246 visibility = [ "//base/*" ] | 247 visibility = [ "//base/*" ] |
247 sources = [ | 248 sources = [ |
248 "allocator_extension_thunks.cc", | 249 "allocator_extension_thunks.cc", |
249 "allocator_extension_thunks.h", | 250 "allocator_extension_thunks.h", |
250 ] | 251 ] |
251 if (is_android && !is_debug) { | 252 if (is_android && !is_debug) { |
252 configs -= [ "//build/config/compiler:optimize" ] | 253 configs -= [ "//build/config/compiler:optimize" ] |
253 configs += [ "//build/config/compiler:optimize_max" ] | 254 configs += [ "//build/config/compiler:optimize_max" ] |
254 } | 255 } |
255 } | 256 } |
OLD | NEW |