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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 | 141 |
142 # Some third party code might not compile with WIN32_LEAN_AND_MEAN so we have | 142 # Some third party code might not compile with WIN32_LEAN_AND_MEAN so we have |
143 # to have a separate config for it. Remove this config from your target to | 143 # to have a separate config for it. Remove this config from your target to |
144 # get the "bloaty and accomodating" version of windows.h. | 144 # get the "bloaty and accomodating" version of windows.h. |
145 config("lean_and_mean") { | 145 config("lean_and_mean") { |
146 defines = [ | 146 defines = [ |
147 "WIN32_LEAN_AND_MEAN", | 147 "WIN32_LEAN_AND_MEAN", |
148 ] | 148 ] |
149 } | 149 } |
150 | 150 |
151 # Nominmax -------------------------------------------------------------------- | 151 # Nominmax --------------------------------------------------------------------- |
152 | 152 |
153 # Some third party code defines NOMINMAX before including windows.h, which | 153 # Some third party code defines NOMINMAX before including windows.h, which |
154 # then causes warnings when it's been previously defined on the command line. | 154 # then causes warnings when it's been previously defined on the command line. |
155 # For such targets, this config can be removed. | 155 # For such targets, this config can be removed. |
156 | 156 |
157 config("nominmax") { | 157 config("nominmax") { |
158 defines = [ | 158 defines = [ |
159 "NOMINMAX", | 159 "NOMINMAX", |
160 ] | 160 ] |
161 } | 161 } |
OLD | NEW |