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 import("//build/config/compiler/compiler.gni") | 6 import("//build/config/compiler/compiler.gni") |
7 | 7 |
8 declare_args() { | 8 declare_args() { |
9 # Provide a way to force disable debugallocation in Debug builds, | 9 # Provide a way to force disable debugallocation in Debug builds, |
10 # e.g. for profiling (it's more rare to profile Debug builds, | 10 # e.g. for profiling (it's more rare to profile Debug builds, |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 # and checked in. | 115 # and checked in. |
116 "$tcmalloc_dir/src/config.h", | 116 "$tcmalloc_dir/src/config.h", |
117 "$tcmalloc_dir/src/config_android.h", | 117 "$tcmalloc_dir/src/config_android.h", |
118 "$tcmalloc_dir/src/config_linux.h", | 118 "$tcmalloc_dir/src/config_linux.h", |
119 "$tcmalloc_dir/src/config_win.h", | 119 "$tcmalloc_dir/src/config_win.h", |
120 | 120 |
121 # tcmalloc native and forked files. | 121 # tcmalloc native and forked files. |
122 "$tcmalloc_dir/src/base/abort.cc", | 122 "$tcmalloc_dir/src/base/abort.cc", |
123 "$tcmalloc_dir/src/base/abort.h", | 123 "$tcmalloc_dir/src/base/abort.h", |
124 "$tcmalloc_dir/src/base/arm_instruction_set_select.h", | 124 "$tcmalloc_dir/src/base/arm_instruction_set_select.h", |
| 125 "$tcmalloc_dir/src/base/atomicops-internals-arm-generic.h", |
| 126 "$tcmalloc_dir/src/base/atomicops-internals-arm-v6plus.h", |
| 127 "$tcmalloc_dir/src/base/atomicops-internals-linuxppc.h", |
125 "$tcmalloc_dir/src/base/atomicops-internals-macosx.h", | 128 "$tcmalloc_dir/src/base/atomicops-internals-macosx.h", |
126 "$tcmalloc_dir/src/base/atomicops-internals-windows.h", | 129 "$tcmalloc_dir/src/base/atomicops-internals-windows.h", |
| 130 "$tcmalloc_dir/src/base/atomicops-internals-x86.cc", |
| 131 "$tcmalloc_dir/src/base/atomicops-internals-x86.h", |
127 "$tcmalloc_dir/src/base/atomicops.h", | 132 "$tcmalloc_dir/src/base/atomicops.h", |
128 "$tcmalloc_dir/src/base/atomicops_internals_portable.h", | |
129 "$tcmalloc_dir/src/base/commandlineflags.h", | 133 "$tcmalloc_dir/src/base/commandlineflags.h", |
130 "$tcmalloc_dir/src/base/cycleclock.h", | 134 "$tcmalloc_dir/src/base/cycleclock.h", |
131 | 135 |
132 # We don't list dynamic_annotations.c since its copy is already | 136 # We don't list dynamic_annotations.c since its copy is already |
133 # present in the dynamic_annotations target. | 137 # present in the dynamic_annotations target. |
134 "$tcmalloc_dir/src/base/elf_mem_image.cc", | 138 "$tcmalloc_dir/src/base/elf_mem_image.cc", |
135 "$tcmalloc_dir/src/base/elf_mem_image.h", | 139 "$tcmalloc_dir/src/base/elf_mem_image.h", |
136 "$tcmalloc_dir/src/base/linuxthreads.cc", | 140 "$tcmalloc_dir/src/base/linuxthreads.cc", |
137 "$tcmalloc_dir/src/base/linuxthreads.h", | 141 "$tcmalloc_dir/src/base/linuxthreads.h", |
138 "$tcmalloc_dir/src/base/logging.cc", | 142 "$tcmalloc_dir/src/base/logging.cc", |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
263 # Make sure the allocation library is optimized as much as possible when | 267 # Make sure the allocation library is optimized as much as possible when |
264 # we"re in release mode. | 268 # we"re in release mode. |
265 if (!is_debug) { | 269 if (!is_debug) { |
266 configs -= [ "//build/config/compiler:default_optimization" ] | 270 configs -= [ "//build/config/compiler:default_optimization" ] |
267 configs += [ "//build/config/compiler:optimize_max" ] | 271 configs += [ "//build/config/compiler:optimize_max" ] |
268 } | 272 } |
269 | 273 |
270 deps += [ "//base/third_party/dynamic_annotations" ] | 274 deps += [ "//base/third_party/dynamic_annotations" ] |
271 } | 275 } |
272 } # !is_android | 276 } # !is_android |
OLD | NEW |