| 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", | 18 "NOMINMAX", |
| 19 "NTDDI_VERSION=0x06020000", | 19 "NTDDI_VERSION=0x06020000", |
| 20 "PSAPI_VERSION=1", | 20 "PSAPI_VERSION=1", |
| 21 "WIN32", | 21 "WIN32", |
| 22 "WIN32_LEAN_AND_MEAN", | |
| 23 "WINVER=0x0602", | 22 "WINVER=0x0602", |
| 24 ] | 23 ] |
| 25 | 24 |
| 26 # The Windows SDK include directories must be first. They both have a sal.h, | 25 # The Windows SDK include directories must be first. They both have a sal.h, |
| 27 # and the SDK one is newer and the SDK uses some newer features from it not | 26 # and the SDK one is newer and the SDK uses some newer features from it not |
| 28 # present in the Visual Studio one. | 27 # present in the Visual Studio one. |
| 29 include_dirs = [ | 28 include_dirs = [ |
| 30 "$windows_sdk_path\Include\shared", | 29 "$windows_sdk_path\Include\shared", |
| 31 "$windows_sdk_path\Include\um", | 30 "$windows_sdk_path\Include\um", |
| 32 "$windows_sdk_path\Include\winrt", | 31 "$windows_sdk_path\Include\winrt", |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 } | 101 } |
| 103 | 102 |
| 104 # Incremental linking ---------------------------------------------------------- | 103 # Incremental linking ---------------------------------------------------------- |
| 105 | 104 |
| 106 config("incremental_linking") { | 105 config("incremental_linking") { |
| 107 ldflags = [ "/INCREMENTAL" ] | 106 ldflags = [ "/INCREMENTAL" ] |
| 108 } | 107 } |
| 109 config("no_incremental_linking") { | 108 config("no_incremental_linking") { |
| 110 ldflags = [ "/INCREMENTAL:NO" ] | 109 ldflags = [ "/INCREMENTAL:NO" ] |
| 111 } | 110 } |
| 111 |
| 112 # Character set ---------------------------------------------------------------- |
| 113 |
| 114 # Not including this config means "ansi" (8-bit system codepage). |
| 115 config("unicode") { |
| 116 defines = [ |
| 117 "_UNICODE", |
| 118 "UNICODE", |
| 119 ] |
| 120 } |
| 121 |
| 122 # Lean and mean ---------------------------------------------------------------- |
| 123 |
| 124 # 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 |
| 126 # get the "bloaty and accomodating" version of windows.h. |
| 127 config("lean_and_mean") { |
| 128 defines = [ |
| 129 "WIN32_LEAN_AND_MEAN", |
| 130 ] |
| 131 } |
| OLD | NEW |