Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(38)

Side by Side Diff: base/allocator/BUILD.gn

Issue 774353003: gn format // (the rest) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase net Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ash/BUILD.gn ('k') | breakpad/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 12 matching lines...) Expand all
23 config("nocmt") { 23 config("nocmt") {
24 ldflags = [ 24 ldflags = [
25 "/NODEFAULTLIB:libcmt", 25 "/NODEFAULTLIB:libcmt",
26 "/NODEFAULTLIB:libcmtd", 26 "/NODEFAULTLIB:libcmtd",
27 ] 27 ]
28 libs = [ rebase_path("$target_gen_dir/allocator/libcmt.lib") ] 28 libs = [ rebase_path("$target_gen_dir/allocator/libcmt.lib") ]
29 } 29 }
30 30
31 action("prep_libc") { 31 action("prep_libc") {
32 script = "prep_libc.py" 32 script = "prep_libc.py"
33 outputs = [ "$target_gen_dir/allocator/libcmt.lib" ] 33 outputs = [
34 "$target_gen_dir/allocator/libcmt.lib",
35 ]
34 args = [ 36 args = [
35 visual_studio_path + "/vc/lib", 37 visual_studio_path + "/vc/lib",
36 rebase_path("$target_gen_dir/allocator"), 38 rebase_path("$target_gen_dir/allocator"),
37 cpu_arch, 39 cpu_arch,
38 ] 40 ]
39 } 41 }
40 } 42 }
41 43
42 if (use_allocator == "tcmalloc") { 44 if (use_allocator == "tcmalloc") {
43 # tcmalloc currently won't compile on Android. 45 # tcmalloc currently won't compile on Android.
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 visibility = [ "//base/*" ] 246 visibility = [ "//base/*" ]
245 sources = [ 247 sources = [
246 "allocator_extension_thunks.cc", 248 "allocator_extension_thunks.cc",
247 "allocator_extension_thunks.h", 249 "allocator_extension_thunks.h",
248 ] 250 ]
249 if (is_android && !is_debug) { 251 if (is_android && !is_debug) {
250 configs -= [ "//build/config/compiler:optimize" ] 252 configs -= [ "//build/config/compiler:optimize" ]
251 configs += [ "//build/config/compiler:optimize_max" ] 253 configs += [ "//build/config/compiler:optimize_max" ]
252 } 254 }
253 } 255 }
OLDNEW
« no previous file with comments | « ash/BUILD.gn ('k') | breakpad/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698