| 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 if (!is_component_build) { | 64 if (!is_component_build) { |
| 65 action("prep_libc") { | 65 action("prep_libc") { |
| 66 script = "prep_libc.py" | 66 script = "prep_libc.py" |
| 67 outputs = [ | 67 outputs = [ |
| 68 "$target_gen_dir/allocator/libcmt.lib", | 68 "$target_gen_dir/allocator/libcmt.lib", |
| 69 ] | 69 ] |
| 70 args = [ | 70 args = [ |
| 71 visual_studio_path + "/vc/lib", | 71 visual_studio_path + "/vc/lib", |
| 72 rebase_path("$target_gen_dir/allocator"), | 72 rebase_path("$target_gen_dir/allocator"), |
| 73 current_cpu, | 73 current_cpu, |
| 74 |
| 75 # The environment file in the build directory. This is required because |
| 76 # the Windows toolchain setup saves the VC paths and such so that |
| 77 # running "mc.exe" will work with the configured toolchain. This file |
| 78 # is in the root build dir. |
| 79 "environment.$current_cpu", |
| 74 ] | 80 ] |
| 75 } | 81 } |
| 76 | 82 |
| 77 source_set("allocator_shim") { | 83 source_set("allocator_shim") { |
| 78 sources = [ | 84 sources = [ |
| 79 "allocator_shim_win.cc", | 85 "allocator_shim_win.cc", |
| 80 ] | 86 ] |
| 81 configs -= [ "//build/config/compiler:chromium_code" ] | 87 configs -= [ "//build/config/compiler:chromium_code" ] |
| 82 configs += [ "//build/config/compiler:no_chromium_code" ] | 88 configs += [ "//build/config/compiler:no_chromium_code" ] |
| 83 | 89 |
| (...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 303 visibility = [ "//base/*" ] | 309 visibility = [ "//base/*" ] |
| 304 sources = [ | 310 sources = [ |
| 305 "allocator_extension_thunks.cc", | 311 "allocator_extension_thunks.cc", |
| 306 "allocator_extension_thunks.h", | 312 "allocator_extension_thunks.h", |
| 307 ] | 313 ] |
| 308 if (is_android && !is_debug) { | 314 if (is_android && !is_debug) { |
| 309 configs -= [ "//build/config/compiler:default_optimization" ] | 315 configs -= [ "//build/config/compiler:default_optimization" ] |
| 310 configs += [ "//build/config/compiler:optimize_max" ] | 316 configs += [ "//build/config/compiler:optimize_max" ] |
| 311 } | 317 } |
| 312 } | 318 } |
| OLD | NEW |