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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 # and checked in. | 56 # and checked in. |
57 "$tcmalloc_dir/src/config.h", | 57 "$tcmalloc_dir/src/config.h", |
58 "$tcmalloc_dir/src/config_android.h", | 58 "$tcmalloc_dir/src/config_android.h", |
59 "$tcmalloc_dir/src/config_linux.h", | 59 "$tcmalloc_dir/src/config_linux.h", |
60 "$tcmalloc_dir/src/config_win.h", | 60 "$tcmalloc_dir/src/config_win.h", |
61 | 61 |
62 # tcmalloc native and forked files. | 62 # tcmalloc native and forked files. |
63 "$tcmalloc_dir/src/base/abort.cc", | 63 "$tcmalloc_dir/src/base/abort.cc", |
64 "$tcmalloc_dir/src/base/abort.h", | 64 "$tcmalloc_dir/src/base/abort.h", |
65 "$tcmalloc_dir/src/base/arm_instruction_set_select.h", | 65 "$tcmalloc_dir/src/base/arm_instruction_set_select.h", |
66 "$tcmalloc_dir/src/base/atomicops-internals-arm-generic.h", | |
67 "$tcmalloc_dir/src/base/atomicops-internals-arm-v6plus.h", | |
68 "$tcmalloc_dir/src/base/atomicops-internals-linuxppc.h", | |
69 "$tcmalloc_dir/src/base/atomicops-internals-macosx.h", | |
70 "$tcmalloc_dir/src/base/atomicops-internals-windows.h", | |
71 "$tcmalloc_dir/src/base/atomicops-internals-x86.cc", | |
72 "$tcmalloc_dir/src/base/atomicops-internals-x86.h", | |
73 "$tcmalloc_dir/src/base/atomicops.h", | |
74 "$tcmalloc_dir/src/base/basictypes.h", | |
75 "$tcmalloc_dir/src/base/commandlineflags.h", | |
76 "$tcmalloc_dir/src/base/cycleclock.h", | |
77 | 66 |
78 # We don't list dynamic_annotations.c since its copy is already | 67 # We don't list dynamic_annotations.c since its copy is already |
79 # present in the dynamic_annotations target. | 68 # present in the dynamic_annotations target. |
80 "$tcmalloc_dir/src/base/elf_mem_image.cc", | 69 "$tcmalloc_dir/src/base/elf_mem_image.cc", |
81 "$tcmalloc_dir/src/base/elf_mem_image.h", | 70 "$tcmalloc_dir/src/base/elf_mem_image.h", |
82 "$tcmalloc_dir/src/base/linuxthreads.cc", | 71 "$tcmalloc_dir/src/base/linuxthreads.cc", |
83 "$tcmalloc_dir/src/base/linuxthreads.h", | 72 "$tcmalloc_dir/src/base/linuxthreads.h", |
84 "$tcmalloc_dir/src/base/logging.cc", | 73 "$tcmalloc_dir/src/base/logging.cc", |
85 "$tcmalloc_dir/src/base/logging.h", | 74 "$tcmalloc_dir/src/base/logging.h", |
86 "$tcmalloc_dir/src/base/low_level_alloc.cc", | 75 "$tcmalloc_dir/src/base/low_level_alloc.cc", |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
261 visibility = [ "//base/*" ] | 250 visibility = [ "//base/*" ] |
262 sources = [ | 251 sources = [ |
263 "allocator_extension_thunks.cc", | 252 "allocator_extension_thunks.cc", |
264 "allocator_extension_thunks.h", | 253 "allocator_extension_thunks.h", |
265 ] | 254 ] |
266 if (is_android && !is_debug) { | 255 if (is_android && !is_debug) { |
267 configs -= [ "//build/config/compiler:optimize" ] | 256 configs -= [ "//build/config/compiler:optimize" ] |
268 configs += [ "//build/config/compiler:optimize_max" ] | 257 configs += [ "//build/config/compiler:optimize_max" ] |
269 } | 258 } |
270 } | 259 } |
OLD | NEW |