| 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/compiler/compiler.gni") | 5 import("//build/config/compiler/compiler.gni") |
| 6 import("//build/config/sanitizers/sanitizers.gni") | 6 import("//build/config/sanitizers/sanitizers.gni") |
| 7 import("//build/config/win/visual_studio_version.gni") | 7 import("//build/config/win/visual_studio_version.gni") |
| 8 | 8 |
| 9 assert(is_win) | 9 assert(is_win) |
| 10 | 10 |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 "_CRT_SECURE_NO_DEPRECATE", | 91 "_CRT_SECURE_NO_DEPRECATE", |
| 92 "_HAS_EXCEPTIONS=0", | 92 "_HAS_EXCEPTIONS=0", |
| 93 "_SCL_SECURE_NO_DEPRECATE", | 93 "_SCL_SECURE_NO_DEPRECATE", |
| 94 ] | 94 ] |
| 95 | 95 |
| 96 # Defines that set up the Windows SDK. | 96 # Defines that set up the Windows SDK. |
| 97 defines += [ | 97 defines += [ |
| 98 "_ATL_NO_OPENGL", | 98 "_ATL_NO_OPENGL", |
| 99 "_WINDOWS", | 99 "_WINDOWS", |
| 100 "CERT_CHAIN_PARA_HAS_EXTRA_FIELDS", | 100 "CERT_CHAIN_PARA_HAS_EXTRA_FIELDS", |
| 101 "NTDDI_VERSION=0x06030000", | 101 "NTDDI_VERSION=0x0A000000", |
| 102 "PSAPI_VERSION=1", | 102 "PSAPI_VERSION=1", |
| 103 "WIN32", | 103 "WIN32", |
| 104 "_SECURE_ATL", | 104 "_SECURE_ATL", |
| 105 | 105 |
| 106 # This is required for ATL to use XP-safe versions of its functions. | 106 # This is required for ATL to use XP-safe versions of its functions. |
| 107 "_USING_V110_SDK71_", | 107 "_USING_V110_SDK71_", |
| 108 ] | 108 ] |
| 109 | 109 |
| 110 if (is_component_build) { | 110 if (is_component_build) { |
| 111 # Component mode: dynamic CRT. Since the library is shared, it requires | 111 # Component mode: dynamic CRT. Since the library is shared, it requires |
| (...skipping 20 matching lines...) Expand all Loading... |
| 132 cflags += [ "/MT" ] | 132 cflags += [ "/MT" ] |
| 133 } | 133 } |
| 134 } | 134 } |
| 135 } | 135 } |
| 136 } | 136 } |
| 137 | 137 |
| 138 # Sets the default Windows build version. This is separated because some | 138 # Sets the default Windows build version. This is separated because some |
| 139 # targets need to manually override it for their compiles. | 139 # targets need to manually override it for their compiles. |
| 140 config("winver") { | 140 config("winver") { |
| 141 defines = [ | 141 defines = [ |
| 142 "_WIN32_WINNT=0x0603", | 142 "_WIN32_WINNT=0x0A00", |
| 143 "WINVER=0x0603", | 143 "WINVER=0x0A00", |
| 144 ] | 144 ] |
| 145 } | 145 } |
| 146 | 146 |
| 147 # Linker flags for Windows SDK setup, this is applied only to EXEs and DLLs. | 147 # Linker flags for Windows SDK setup, this is applied only to EXEs and DLLs. |
| 148 config("sdk_link") { | 148 config("sdk_link") { |
| 149 if (current_cpu == "x64") { | 149 if (current_cpu == "x64") { |
| 150 ldflags = [ "/MACHINE:X64" ] | 150 ldflags = [ "/MACHINE:X64" ] |
| 151 lib_dirs = [ | 151 lib_dirs = [ |
| 152 "$windows_sdk_path\Lib\winv6.3\um\x64", | 152 "$windows_sdk_path\Lib\winv6.3\um\x64", |
| 153 "$visual_studio_path\VC\lib\amd64", | 153 "$visual_studio_path\VC\lib\amd64", |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 309 | 309 |
| 310 # Internal stuff -------------------------------------------------------------- | 310 # Internal stuff -------------------------------------------------------------- |
| 311 | 311 |
| 312 # Config used by the MIDL template to disable warnings. | 312 # Config used by the MIDL template to disable warnings. |
| 313 config("midl_warnings") { | 313 config("midl_warnings") { |
| 314 if (is_clang) { | 314 if (is_clang) { |
| 315 # MIDL generates code like "#endif !_MIDL_USE_GUIDDEF_". | 315 # MIDL generates code like "#endif !_MIDL_USE_GUIDDEF_". |
| 316 cflags = [ "-Wno-extra-tokens" ] | 316 cflags = [ "-Wno-extra-tokens" ] |
| 317 } | 317 } |
| 318 } | 318 } |
| OLD | NEW |