| 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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 | 141 |
| 142 include_dirs = [ | 142 include_dirs = [ |
| 143 ".", | 143 ".", |
| 144 "$tcmalloc_dir/src/base", | 144 "$tcmalloc_dir/src/base", |
| 145 "$tcmalloc_dir/src", | 145 "$tcmalloc_dir/src", |
| 146 ] | 146 ] |
| 147 | 147 |
| 148 configs -= [ "//build/config/compiler:chromium_code" ] | 148 configs -= [ "//build/config/compiler:chromium_code" ] |
| 149 configs += [ "//build/config/compiler:no_chromium_code" ] | 149 configs += [ "//build/config/compiler:no_chromium_code" ] |
| 150 | 150 |
| 151 deps = [] | 151 deps = [ "//base" ] |
| 152 | 152 |
| 153 if (is_win) { | 153 if (is_win) { |
| 154 sources -= [ | 154 sources -= [ |
| 155 "$tcmalloc_dir/src/base/elf_mem_image.cc", | 155 "$tcmalloc_dir/src/base/elf_mem_image.cc", |
| 156 "$tcmalloc_dir/src/base/elf_mem_image.h", | 156 "$tcmalloc_dir/src/base/elf_mem_image.h", |
| 157 "$tcmalloc_dir/src/base/linuxthreads.cc", | 157 "$tcmalloc_dir/src/base/linuxthreads.cc", |
| 158 "$tcmalloc_dir/src/base/linuxthreads.h", | 158 "$tcmalloc_dir/src/base/linuxthreads.h", |
| 159 "$tcmalloc_dir/src/base/vdso_support.cc", | 159 "$tcmalloc_dir/src/base/vdso_support.cc", |
| 160 "$tcmalloc_dir/src/base/vdso_support.h", | 160 "$tcmalloc_dir/src/base/vdso_support.h", |
| 161 "$tcmalloc_dir/src/maybe_threads.cc", | 161 "$tcmalloc_dir/src/maybe_threads.cc", |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 243 visibility = [ "//base/*" ] | 243 visibility = [ "//base/*" ] |
| 244 sources = [ | 244 sources = [ |
| 245 "allocator_extension_thunks.cc", | 245 "allocator_extension_thunks.cc", |
| 246 "allocator_extension_thunks.h", | 246 "allocator_extension_thunks.h", |
| 247 ] | 247 ] |
| 248 if (is_android && !is_debug) { | 248 if (is_android && !is_debug) { |
| 249 configs -= [ "//build/config/compiler:optimize" ] | 249 configs -= [ "//build/config/compiler:optimize" ] |
| 250 configs += [ "//build/config/compiler:optimize_max" ] | 250 configs += [ "//build/config/compiler:optimize_max" ] |
| 251 } | 251 } |
| 252 } | 252 } |
| OLD | NEW |