| 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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 defines = [ | 151 defines = [ |
| 152 "_UNICODE", | 152 "_UNICODE", |
| 153 "UNICODE", | 153 "UNICODE", |
| 154 ] | 154 ] |
| 155 } | 155 } |
| 156 | 156 |
| 157 # Lean and mean --------------------------------------------------------------- | 157 # Lean and mean --------------------------------------------------------------- |
| 158 | 158 |
| 159 # Some third party code might not compile with WIN32_LEAN_AND_MEAN so we have | 159 # Some third party code might not compile with WIN32_LEAN_AND_MEAN so we have |
| 160 # to have a separate config for it. Remove this config from your target to | 160 # to have a separate config for it. Remove this config from your target to |
| 161 # get the "bloaty and accomodating" version of windows.h. | 161 # get the "bloaty and accommodating" version of windows.h. |
| 162 config("lean_and_mean") { | 162 config("lean_and_mean") { |
| 163 defines = [ "WIN32_LEAN_AND_MEAN" ] | 163 defines = [ "WIN32_LEAN_AND_MEAN" ] |
| 164 } | 164 } |
| 165 | 165 |
| 166 # Nominmax -------------------------------------------------------------------- | 166 # Nominmax -------------------------------------------------------------------- |
| 167 | 167 |
| 168 # Some third party code defines NOMINMAX before including windows.h, which | 168 # Some third party code defines NOMINMAX before including windows.h, which |
| 169 # then causes warnings when it's been previously defined on the command line. | 169 # then causes warnings when it's been previously defined on the command line. |
| 170 # For such targets, this config can be removed. | 170 # For such targets, this config can be removed. |
| 171 | 171 |
| 172 config("nominmax") { | 172 config("nominmax") { |
| 173 defines = [ "NOMINMAX" ] | 173 defines = [ "NOMINMAX" ] |
| 174 } | 174 } |
| OLD | NEW |