| 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 import("//build/module_args/v8.gni") | 9 import("//build/module_args/v8.gni") |
| 10 | 10 |
| 11 declare_args() { | 11 declare_args() { |
| 12 # When set, turns off the (normally-on) iterator debugging and related stuff | 12 # When set, turns off the (normally-on) iterator debugging and related stuff |
| 13 # that is normally turned on for Debug builds. These are generally useful for | 13 # that is normally turned on for Debug builds. These are generally useful for |
| 14 # catching bugs but in some cases may cause conflicts or excessive slowness. | 14 # catching bugs but in some cases may cause conflicts or excessive slowness. |
| 15 disable_iterator_debugging = false | 15 disable_iterator_debugging = false |
| 16 | 16 |
| 17 # Set to true to not store any build metadata (this isn't working yet but | 17 # Set to true to not store any build metadata, e.g. ifdef out all __DATE__ |
| 18 # this flag will help us to get there). See http://crbug.com/314403. | 18 # and __TIME__. Set to 0 to reenable the use of these macros in the code |
| 19 # TODO(sebmarchand): Update this comment once this flag guarantee that | 19 # base. See http://crbug.com/314403. |
| 20 # there's no build metadata in the build artifacts. | 20 # |
| 21 dont_embed_build_metadata = false | 21 # Continue to embed build meta data in Official builds, basically the |
| 22 # time it was built. |
| 23 # TODO(maruel): This decision should be revisited because having an |
| 24 # official deterministic build has high value too but MSVC toolset can't |
| 25 # generate anything deterministic with WPO enabled AFAIK. |
| 26 dont_embed_build_metadata = is_official_build |
| 22 | 27 |
| 23 # Set to true to enable dcheck in Release builds. | 28 # Set to true to enable dcheck in Release builds. |
| 24 dcheck_always_on = false | 29 dcheck_always_on = false |
| 25 } | 30 } |
| 26 | 31 |
| 27 # TODO(brettw) Most of these should be removed. Instead of global feature | 32 # TODO(brettw) Most of these should be removed. Instead of global feature |
| 28 # flags, we should have more modular flags that apply only to a target and its | 33 # flags, we should have more modular flags that apply only to a target and its |
| 29 # dependents. For example, depending on the "x11" meta-target should define | 34 # dependents. For example, depending on the "x11" meta-target should define |
| 30 # USE_X11 for all dependents so that everything that could use X11 gets the | 35 # USE_X11 for all dependents so that everything that could use X11 gets the |
| 31 # define, but anything that doesn't depend on X11 doesn't see it. | 36 # define, but anything that doesn't depend on X11 doesn't see it. |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 207 } | 212 } |
| 208 if (proprietary_codecs) { | 213 if (proprietary_codecs) { |
| 209 defines += [ "USE_PROPRIETARY_CODECS" ] | 214 defines += [ "USE_PROPRIETARY_CODECS" ] |
| 210 } | 215 } |
| 211 if (enable_hangout_services_extension) { | 216 if (enable_hangout_services_extension) { |
| 212 defines += [ "ENABLE_HANGOUT_SERVICES_EXTENSION=1" ] | 217 defines += [ "ENABLE_HANGOUT_SERVICES_EXTENSION=1" ] |
| 213 } | 218 } |
| 214 if (v8_use_external_startup_data) { | 219 if (v8_use_external_startup_data) { |
| 215 defines += [ "V8_USE_EXTERNAL_STARTUP_DATA" ] | 220 defines += [ "V8_USE_EXTERNAL_STARTUP_DATA" ] |
| 216 } | 221 } |
| 222 if (enable_background) { |
| 223 defines += [ "ENABLE_BACKGROUND=1" ] |
| 224 } |
| 225 if (enable_pre_sync_backup) { |
| 226 defines += [ "ENABLE_PRE_SYNC_BACKUP" ] |
| 227 } |
| 217 } | 228 } |
| 218 | 229 |
| 219 # Debug/release ---------------------------------------------------------------- | 230 # Debug/release ---------------------------------------------------------------- |
| 220 | 231 |
| 221 config("debug") { | 232 config("debug") { |
| 222 defines = [ | 233 defines = [ |
| 223 "_DEBUG", | 234 "_DEBUG", |
| 224 "DYNAMIC_ANNOTATIONS_ENABLED=1", | 235 "DYNAMIC_ANNOTATIONS_ENABLED=1", |
| 225 "WTF_USE_DYNAMIC_ANNOTATIONS=1", | 236 "WTF_USE_DYNAMIC_ANNOTATIONS=1", |
| 226 ] | 237 ] |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 310 "CoreFoundation.framework", | 321 "CoreFoundation.framework", |
| 311 "CoreGraphics.framework", | 322 "CoreGraphics.framework", |
| 312 "CoreText.framework", | 323 "CoreText.framework", |
| 313 "Foundation.framework", | 324 "Foundation.framework", |
| 314 "UIKit.framework", | 325 "UIKit.framework", |
| 315 ] | 326 ] |
| 316 } else if (is_linux) { | 327 } else if (is_linux) { |
| 317 libs = [ "dl" ] | 328 libs = [ "dl" ] |
| 318 } | 329 } |
| 319 } | 330 } |
| OLD | NEW |