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. |
11 | 11 |
12 defines = [ | 12 defines = [ |
13 "_ATL_NO_OPENGL", | 13 "_ATL_NO_OPENGL", |
14 "_SECURE_ATL", | 14 "_SECURE_ATL", |
15 "_WIN32_WINNT=0x0602", | 15 "_WIN32_WINNT=0x0602", |
16 "_WINDOWS", | 16 "_WINDOWS", |
17 "CERT_CHAIN_PARA_HAS_EXTRA_FIELDS", | 17 "CERT_CHAIN_PARA_HAS_EXTRA_FIELDS", |
18 "NOMINMAX", | |
19 "NTDDI_VERSION=0x06020000", | 18 "NTDDI_VERSION=0x06020000", |
20 "PSAPI_VERSION=1", | 19 "PSAPI_VERSION=1", |
21 "WIN32", | 20 "WIN32", |
22 "WINVER=0x0602", | 21 "WINVER=0x0602", |
23 ] | 22 ] |
24 | 23 |
25 # The Windows SDK include directories must be first. They both have a sal.h, | 24 # The Windows SDK include directories must be first. They both have a sal.h, |
26 # and the SDK one is newer and the SDK uses some newer features from it not | 25 # and the SDK one is newer and the SDK uses some newer features from it not |
27 # present in the Visual Studio one. | 26 # present in the Visual Studio one. |
28 include_dirs = [ | 27 include_dirs = [ |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 # Lean and mean ---------------------------------------------------------------- | 121 # Lean and mean ---------------------------------------------------------------- |
123 | 122 |
124 # Some third party code might not compile with WIN32_LEAN_AND_MEAN so we have | 123 # Some third party code might not compile with WIN32_LEAN_AND_MEAN so we have |
125 # to have a separate config for it. Remove this config from your target to | 124 # to have a separate config for it. Remove this config from your target to |
126 # get the "bloaty and accomodating" version of windows.h. | 125 # get the "bloaty and accomodating" version of windows.h. |
127 config("lean_and_mean") { | 126 config("lean_and_mean") { |
128 defines = [ | 127 defines = [ |
129 "WIN32_LEAN_AND_MEAN", | 128 "WIN32_LEAN_AND_MEAN", |
130 ] | 129 ] |
131 } | 130 } |
| 131 |
| 132 # Nominmax -------------------------------------------------------------------- |
| 133 |
| 134 # Some third party code defines NOMINMAX before including windows.h, which |
| 135 # then causes warnings when it's been previously defined on the command line. |
| 136 # For such targets, this config can be removed. |
| 137 |
| 138 config("nominmax") { |
| 139 defines = [ |
| 140 "NOMINMAX", |
| 141 ] |
| 142 } |
OLD | NEW |