| 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/clang/clang.gni") | 5 import("//build/config/clang/clang.gni") |
| 6 import("//build/config/compiler/compiler.gni") | 6 import("//build/config/compiler/compiler.gni") |
| 7 import("//build/config/sanitizers/sanitizers.gni") | 7 import("//build/config/sanitizers/sanitizers.gni") |
| 8 import("//build/config/win/visual_studio_version.gni") | 8 import("//build/config/win/visual_studio_version.gni") |
| 9 import("//build/toolchain/toolchain.gni") | 9 import("//build/toolchain/toolchain.gni") |
| 10 | 10 |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 "_CRT_SECURE_NO_DEPRECATE", | 173 "_CRT_SECURE_NO_DEPRECATE", |
| 174 "_HAS_EXCEPTIONS=0", | 174 "_HAS_EXCEPTIONS=0", |
| 175 "_SCL_SECURE_NO_DEPRECATE", | 175 "_SCL_SECURE_NO_DEPRECATE", |
| 176 ] | 176 ] |
| 177 | 177 |
| 178 # Defines that set up the Windows SDK. | 178 # Defines that set up the Windows SDK. |
| 179 defines += [ | 179 defines += [ |
| 180 "_ATL_NO_OPENGL", | 180 "_ATL_NO_OPENGL", |
| 181 "_WINDOWS", | 181 "_WINDOWS", |
| 182 "CERT_CHAIN_PARA_HAS_EXTRA_FIELDS", | 182 "CERT_CHAIN_PARA_HAS_EXTRA_FIELDS", |
| 183 "NTDDI_VERSION=0x0A000000", | |
| 184 "PSAPI_VERSION=1", | 183 "PSAPI_VERSION=1", |
| 185 "WIN32", | 184 "WIN32", |
| 186 "_SECURE_ATL", | 185 "_SECURE_ATL", |
| 187 ] | 186 ] |
| 188 | 187 |
| 189 if (!use_vs_code_analysis) { | 188 if (!use_vs_code_analysis) { |
| 190 # This is required for ATL to use XP-safe versions of its functions. | 189 # This is required for ATL to use XP-safe versions of its functions. |
| 191 # However it is prohibited when using /analyze | 190 # However it is prohibited when using /analyze |
| 192 defines += [ "_USING_V110_SDK71_" ] | 191 defines += [ "_USING_V110_SDK71_" ] |
| 193 } | 192 } |
| (...skipping 23 matching lines...) Expand all Loading... |
| 217 cflags += [ "/MT" ] | 216 cflags += [ "/MT" ] |
| 218 } | 217 } |
| 219 } | 218 } |
| 220 } | 219 } |
| 221 } | 220 } |
| 222 | 221 |
| 223 # Sets the default Windows build version. This is separated because some | 222 # Sets the default Windows build version. This is separated because some |
| 224 # targets need to manually override it for their compiles. | 223 # targets need to manually override it for their compiles. |
| 225 config("winver") { | 224 config("winver") { |
| 226 defines = [ | 225 defines = [ |
| 226 "NTDDI_VERSION=0x0A000000", |
| 227 "_WIN32_WINNT=0x0A00", | 227 "_WIN32_WINNT=0x0A00", |
| 228 "WINVER=0x0A00", | 228 "WINVER=0x0A00", |
| 229 ] | 229 ] |
| 230 } | 230 } |
| 231 | 231 |
| 232 # Linker flags for Windows SDK setup, this is applied only to EXEs and DLLs. | 232 # Linker flags for Windows SDK setup, this is applied only to EXEs and DLLs. |
| 233 config("sdk_link") { | 233 config("sdk_link") { |
| 234 if (current_cpu == "x64") { | 234 if (current_cpu == "x64") { |
| 235 ldflags = [ "/MACHINE:X64" ] | 235 ldflags = [ "/MACHINE:X64" ] |
| 236 lib_dirs = [ | 236 lib_dirs = [ |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 399 | 399 |
| 400 # Internal stuff -------------------------------------------------------------- | 400 # Internal stuff -------------------------------------------------------------- |
| 401 | 401 |
| 402 # Config used by the MIDL template to disable warnings. | 402 # Config used by the MIDL template to disable warnings. |
| 403 config("midl_warnings") { | 403 config("midl_warnings") { |
| 404 if (is_clang) { | 404 if (is_clang) { |
| 405 # MIDL generates code like "#endif !_MIDL_USE_GUIDDEF_". | 405 # MIDL generates code like "#endif !_MIDL_USE_GUIDDEF_". |
| 406 cflags = [ "-Wno-extra-tokens" ] | 406 cflags = [ "-Wno-extra-tokens" ] |
| 407 } | 407 } |
| 408 } | 408 } |
| OLD | NEW |