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

Side by Side Diff: build/config/BUILD.gn

Issue 288203003: Hook up base unit tests and allocator to GN build. (Closed) Base URL: https://chromium.googlesource.com/chromium/src
Patch Set: tweak Created 6 years, 7 months 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
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/crypto.gni") 6 import("//build/config/crypto.gni")
6 import("//build/config/features.gni") 7 import("//build/config/features.gni")
7 import("//build/config/ui.gni") 8 import("//build/config/ui.gni")
8 9
9 declare_args() { 10 declare_args() {
10 # When set, turns off the (normally-on) iterator debugging and related stuff 11 # When set, turns off the (normally-on) iterator debugging and related stuff
11 # that is normally turned on for Debug builds. These are generally useful for 12 # that is normally turned on for Debug builds. These are generally useful for
12 # catching bugs but in some cases may cause conflicts or excessive slowness. 13 # catching bugs but in some cases may cause conflicts or excessive slowness.
13 disable_iterator_debugging = false 14 disable_iterator_debugging = false
14 } 15 }
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 } 114 }
114 if (use_ozone) { 115 if (use_ozone) {
115 defines += [ "USE_OZONE=1" ] 116 defines += [ "USE_OZONE=1" ]
116 } 117 }
117 if (use_x11) { 118 if (use_x11) {
118 defines += [ "USE_X11=1" ] 119 defines += [ "USE_X11=1" ]
119 if (use_xi2_mt > 0) { 120 if (use_xi2_mt > 0) {
120 defines += [ "USE_XI2_MT=$use_xi2_mt" ] 121 defines += [ "USE_XI2_MT=$use_xi2_mt" ]
121 } 122 }
122 } 123 }
124 if (use_allocator != "tcmalloc") {
125 defines += [ "NO_TCMALLOC" ]
126 }
123 } 127 }
124 128
125 # Debug/release ---------------------------------------------------------------- 129 # Debug/release ----------------------------------------------------------------
126 130
127 config("debug") { 131 config("debug") {
128 defines = [ 132 defines = [
129 "_DEBUG", 133 "_DEBUG",
130 "DYNAMIC_ANNOTATIONS_ENABLED=1", 134 "DYNAMIC_ANNOTATIONS_ENABLED=1",
131 "WTF_USE_DYNAMIC_ANNOTATIONS=1", 135 "WTF_USE_DYNAMIC_ANNOTATIONS=1",
132 ] 136 ]
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 "CoreText.framework", 220 "CoreText.framework",
217 "Foundation.framework", 221 "Foundation.framework",
218 "UIKit.framework", 222 "UIKit.framework",
219 ] 223 ]
220 } else if (is_linux) { 224 } else if (is_linux) {
221 libs = [ 225 libs = [
222 "dl", 226 "dl",
223 ] 227 ]
224 } 228 }
225 } 229 }
OLDNEW
« base/BUILD.gn ('K') | « base/test/BUILD.gn ('k') | build/config/allocator.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698