| 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/win/visual_studio_version.gni") | 5 import("//build/config/win/visual_studio_version.gni") |
| 6 | 6 |
| 7 # Compiler setup for the Windows SDK. Applied to all targets. | 7 # Compiler setup for the Windows SDK. Applied to all targets. |
| 8 config("sdk") { | 8 config("sdk") { |
| 9 # The include path is the stuff returned by the script. | 9 # The include path is the stuff returned by the script. |
| 10 #include_dirs = msvc_config[0] TODO(brettw) make this work. | 10 #include_dirs = msvc_config[0] TODO(brettw) make this work. |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 ldflags = incremental_linking_on_switch | 134 ldflags = incremental_linking_on_switch |
| 135 } | 135 } |
| 136 config("no_incremental_linking") { | 136 config("no_incremental_linking") { |
| 137 ldflags = incremental_linking_off_switch | 137 ldflags = incremental_linking_off_switch |
| 138 } | 138 } |
| 139 | 139 |
| 140 # Some large modules can't handle incremental linking in some situations. This | 140 # Some large modules can't handle incremental linking in some situations. This |
| 141 # config should be applied to large modules to turn off incremental linking | 141 # config should be applied to large modules to turn off incremental linking |
| 142 # when it won't work. | 142 # when it won't work. |
| 143 config("default_large_module_incremental_linking") { | 143 config("default_large_module_incremental_linking") { |
| 144 if (symbol_level > 0 && (current_cpu == "x86" || !is_component_build)) { | 144 if (current_cpu == "x86" || !is_component_build) { |
| 145 # When symbols are on, things get so large that the tools fail due to the | 145 # When symbols are on, things get so large that the tools fail due to the |
| 146 # size of the .ilk files. | 146 # size of the .ilk files. |
| 147 ldflags = incremental_linking_off_switch | 147 ldflags = incremental_linking_off_switch |
| 148 } else { | 148 } else { |
| 149 # Otherwise just do the default incremental linking for this build type. | 149 # Otherwise just do the default incremental linking for this build type. |
| 150 ldflags = default_incremental_linking_switch | 150 ldflags = default_incremental_linking_switch |
| 151 } | 151 } |
| 152 } | 152 } |
| 153 | 153 |
| 154 # Character set ---------------------------------------------------------------- | 154 # Character set ---------------------------------------------------------------- |
| (...skipping 17 matching lines...) Expand all Loading... |
| 172 | 172 |
| 173 # Nominmax -------------------------------------------------------------------- | 173 # Nominmax -------------------------------------------------------------------- |
| 174 | 174 |
| 175 # Some third party code defines NOMINMAX before including windows.h, which | 175 # Some third party code defines NOMINMAX before including windows.h, which |
| 176 # then causes warnings when it's been previously defined on the command line. | 176 # then causes warnings when it's been previously defined on the command line. |
| 177 # For such targets, this config can be removed. | 177 # For such targets, this config can be removed. |
| 178 | 178 |
| 179 config("nominmax") { | 179 config("nominmax") { |
| 180 defines = [ "NOMINMAX" ] | 180 defines = [ "NOMINMAX" ] |
| 181 } | 181 } |
| OLD | NEW |