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 import("//build/config/crypto.gni") | 6 import("//build/config/crypto.gni") |
7 import("//build/config/features.gni") | 7 import("//build/config/features.gni") |
8 import("//build/config/ui.gni") | 8 import("//build/config/ui.gni") |
9 | 9 |
10 declare_args() { | 10 declare_args() { |
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
203 } else if (is_linux && !is_android && cpu_arch == "x64" && | 203 } else if (is_linux && !is_android && cpu_arch == "x64" && |
204 !disable_iterator_debugging) { | 204 !disable_iterator_debugging) { |
205 # Enable libstdc++ debugging facilities to help catch problems early, see | 205 # Enable libstdc++ debugging facilities to help catch problems early, see |
206 # http://crbug.com/65151 . | 206 # http://crbug.com/65151 . |
207 # TODO(phajdan.jr): Should we enable this for all of POSIX? | 207 # TODO(phajdan.jr): Should we enable this for all of POSIX? |
208 defines += [ "_GLIBCXX_DEBUG=1" ] | 208 defines += [ "_GLIBCXX_DEBUG=1" ] |
209 } | 209 } |
210 } | 210 } |
211 | 211 |
212 config("release") { | 212 config("release") { |
| 213 defines = [ |
| 214 "NDEBUG", |
| 215 ] |
213 } | 216 } |
214 | 217 |
215 # Default libraries ------------------------------------------------------------ | 218 # Default libraries ------------------------------------------------------------ |
216 | 219 |
217 # This config defines the default libraries applied to all targets. | 220 # This config defines the default libraries applied to all targets. |
218 config("default_libs") { | 221 config("default_libs") { |
219 if (is_win) { | 222 if (is_win) { |
220 # TODO(brettw) this list of defaults should probably be smaller, and | 223 # TODO(brettw) this list of defaults should probably be smaller, and |
221 # instead the targets that use the less common ones (e.g. wininet or | 224 # instead the targets that use the less common ones (e.g. wininet or |
222 # winspool) should include those explicitly. | 225 # winspool) should include those explicitly. |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
279 "CoreText.framework", | 282 "CoreText.framework", |
280 "Foundation.framework", | 283 "Foundation.framework", |
281 "UIKit.framework", | 284 "UIKit.framework", |
282 ] | 285 ] |
283 } else if (is_linux) { | 286 } else if (is_linux) { |
284 libs = [ | 287 libs = [ |
285 "dl", | 288 "dl", |
286 ] | 289 ] |
287 } | 290 } |
288 } | 291 } |
OLD | NEW |