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 declare_args() { |
| 6 # When set, turns off the definition of _GLIBCXX_DEBUG when it would |
| 7 # otherwise be set. Setting _GLIBCXX_DEBUG adds iterator debugging stuff |
| 8 # that is usually helpful in debugging, but can cause problems in some |
| 9 # contexts. |
| 10 disable_glibcxx_debug = false |
| 11 } |
| 12 |
5 config("my_msvs") { | 13 config("my_msvs") { |
6 defines = [ | 14 defines = [ |
7 "CHROMIUM_BUILD", | 15 "CHROMIUM_BUILD", |
8 "TOOLKIT_VIEWS=1", | 16 "TOOLKIT_VIEWS=1", |
9 "USE_LIBJPEG_TURBO=1", | 17 "USE_LIBJPEG_TURBO=1", |
10 "ENABLE_ONE_CLICK_SIGNIN", | 18 "ENABLE_ONE_CLICK_SIGNIN", |
11 "ENABLE_REMOTING=1", | 19 "ENABLE_REMOTING=1", |
12 "ENABLE_WEBRTC=1", | 20 "ENABLE_WEBRTC=1", |
13 "ENABLE_CONFIGURATION_POLICY", | 21 "ENABLE_CONFIGURATION_POLICY", |
14 "ENABLE_INPUT_SPEECH", | 22 "ENABLE_INPUT_SPEECH", |
(...skipping 26 matching lines...) Expand all Loading... |
41 #defines = | 49 #defines = |
42 } | 50 } |
43 | 51 |
44 config("debug") { | 52 config("debug") { |
45 defines = [ | 53 defines = [ |
46 "_DEBUG", | 54 "_DEBUG", |
47 "DYNAMIC_ANNOTATIONS_ENABLED=1", | 55 "DYNAMIC_ANNOTATIONS_ENABLED=1", |
48 "WTF_USE_DYNAMIC_ANNOTATIONS=1", | 56 "WTF_USE_DYNAMIC_ANNOTATIONS=1", |
49 ] | 57 ] |
50 | 58 |
51 if (is_linux && !is_android && cpu_arch == "x64") { | 59 if (is_linux && !is_android && cpu_arch == "x64" && !disable_glibcxx_debug) { |
52 # Enable libstdc++ debugging facilities to help catch problems early, see | 60 # Enable libstdc++ debugging facilities to help catch problems early, see |
53 # http://crbug.com/65151 . | 61 # http://crbug.com/65151 . |
54 # TODO(phajdan.jr): Should we enable this for all of POSIX? | 62 # TODO(phajdan.jr): Should we enable this for all of POSIX? |
55 defines += [ "_GLIBCXX_DEBUG=1" ] | 63 defines += [ "_GLIBCXX_DEBUG=1" ] |
56 } | 64 } |
57 } | 65 } |
58 | 66 |
59 config("release") { | 67 config("release") { |
60 | 68 |
61 } | 69 } |
OLD | NEW |