| 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 "_WINDOWS", | 14 "_WINDOWS", |
| 15 "CERT_CHAIN_PARA_HAS_EXTRA_FIELDS", | 15 "CERT_CHAIN_PARA_HAS_EXTRA_FIELDS", |
| 16 "NTDDI_VERSION=0x06030000", | 16 "NTDDI_VERSION=0x06030000", |
| 17 "PSAPI_VERSION=1", | 17 "PSAPI_VERSION=1", |
| 18 "WIN32", | 18 "WIN32", |
| 19 "_SECURE_ATL", | 19 "_SECURE_ATL", |
| 20 |
| 21 # This is required for ATL to use XP-safe versions of its functions. |
| 22 "_USING_V110_SDK71_", |
| 20 ] | 23 ] |
| 21 } | 24 } |
| 22 | 25 |
| 23 # Sets the default Windows build version. This is separated because some | 26 # Sets the default Windows build version. This is separated because some |
| 24 # targets need to manually override it for their compiles. | 27 # targets need to manually override it for their compiles. |
| 25 config("winver") { | 28 config("winver") { |
| 26 defines = [ | 29 defines = [ |
| 27 "_WIN32_WINNT=0x0603", | 30 "_WIN32_WINNT=0x0603", |
| 28 "WINVER=0x0603", | 31 "WINVER=0x0603", |
| 29 ] | 32 ] |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 | 134 |
| 132 # Nominmax -------------------------------------------------------------------- | 135 # Nominmax -------------------------------------------------------------------- |
| 133 | 136 |
| 134 # Some third party code defines NOMINMAX before including windows.h, which | 137 # 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. | 138 # then causes warnings when it's been previously defined on the command line. |
| 136 # For such targets, this config can be removed. | 139 # For such targets, this config can be removed. |
| 137 | 140 |
| 138 config("nominmax") { | 141 config("nominmax") { |
| 139 defines = [ "NOMINMAX" ] | 142 defines = [ "NOMINMAX" ] |
| 140 } | 143 } |
| OLD | NEW |