Chromium Code Reviews| 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() { | 5 declare_args() { |
| 6 # When set, turns off the definition of _GLIBCXX_DEBUG when it would | 6 # When set, turns off the (normally-on) iterator debugging and related stuff |
| 7 # otherwise be set. Setting _GLIBCXX_DEBUG adds iterator debugging stuff | 7 # that is normall turned on for Debug builds. These are generally useful for |
|
scottmg
2014/01/17 23:52:25
normally
| |
| 8 # that is usually helpful in debugging, but can cause problems in some | 8 # catching bugs but in some cases may cause conflicts or excessive slowness. |
| 9 # contexts. | 9 disable_iterator_debugging = false |
| 10 disable_glibcxx_debug = false | |
| 11 } | 10 } |
| 12 | 11 |
| 13 config("my_msvs") { | 12 config("my_msvs") { |
| 14 defines = [ | 13 defines = [ |
| 15 "CHROMIUM_BUILD", | 14 "CHROMIUM_BUILD", |
| 16 "TOOLKIT_VIEWS=1", | 15 "TOOLKIT_VIEWS=1", |
| 17 "USE_LIBJPEG_TURBO=1", | 16 "USE_LIBJPEG_TURBO=1", |
| 18 "ENABLE_ONE_CLICK_SIGNIN", | 17 "ENABLE_ONE_CLICK_SIGNIN", |
| 19 "ENABLE_REMOTING=1", | 18 "ENABLE_REMOTING=1", |
| 20 "ENABLE_WEBRTC=1", | 19 "ENABLE_WEBRTC=1", |
| (...skipping 18 matching lines...) Expand all Loading... | |
| 39 "ENABLE_SETTINGS_APP=1", | 38 "ENABLE_SETTINGS_APP=1", |
| 40 "ENABLE_MANAGED_USERS=1", | 39 "ENABLE_MANAGED_USERS=1", |
| 41 ] | 40 ] |
| 42 | 41 |
| 43 if (use_aura) { | 42 if (use_aura) { |
| 44 defines += [ "USE_AURA=1" ] | 43 defines += [ "USE_AURA=1" ] |
| 45 } | 44 } |
| 46 } | 45 } |
| 47 | 46 |
| 48 config("feature_flags") { | 47 config("feature_flags") { |
| 49 #defines = | |
| 50 } | 48 } |
| 51 | 49 |
| 52 config("debug") { | 50 config("debug") { |
| 53 defines = [ | 51 defines = [ |
| 54 "_DEBUG", | 52 "_DEBUG", |
| 55 "DYNAMIC_ANNOTATIONS_ENABLED=1", | 53 "DYNAMIC_ANNOTATIONS_ENABLED=1", |
| 56 "WTF_USE_DYNAMIC_ANNOTATIONS=1", | 54 "WTF_USE_DYNAMIC_ANNOTATIONS=1", |
| 57 ] | 55 ] |
| 58 | 56 |
| 59 if (is_linux && !is_android && cpu_arch == "x64" && !disable_glibcxx_debug) { | 57 if (is_win) { |
| 58 if (disable_iterator_debugging) { | |
| 59 # Iterator debugging is enabled by the compiler on debug builds, and we | |
| 60 # have to tell it to turn it off. | |
| 61 defines += [ "_HAS_ITERATOR_DEBUGGING=0" ] | |
| 62 } | |
| 63 } else if (is_linux && !is_android && cpu_arch == "x64" && | |
| 64 !disable_iterator_debugging) { | |
| 60 # Enable libstdc++ debugging facilities to help catch problems early, see | 65 # Enable libstdc++ debugging facilities to help catch problems early, see |
| 61 # http://crbug.com/65151 . | 66 # http://crbug.com/65151 . |
| 62 # TODO(phajdan.jr): Should we enable this for all of POSIX? | 67 # TODO(phajdan.jr): Should we enable this for all of POSIX? |
| 63 defines += [ "_GLIBCXX_DEBUG=1" ] | 68 defines += [ "_GLIBCXX_DEBUG=1" ] |
| 64 } | 69 } |
| 65 } | 70 } |
| 66 | 71 |
| 67 config("release") { | 72 config("release") { |
| 68 | 73 |
| 69 } | 74 } |
| OLD | NEW |