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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
122 "_WINDOWS", | 122 "_WINDOWS", |
123 "CERT_CHAIN_PARA_HAS_EXTRA_FIELDS", | 123 "CERT_CHAIN_PARA_HAS_EXTRA_FIELDS", |
124 "NTDDI_VERSION=0x06030000", | 124 "NTDDI_VERSION=0x06030000", |
125 "PSAPI_VERSION=1", | 125 "PSAPI_VERSION=1", |
126 "WIN32", | 126 "WIN32", |
127 "_SECURE_ATL", | 127 "_SECURE_ATL", |
128 | 128 |
129 # This is required for ATL to use XP-safe versions of its functions. | 129 # This is required for ATL to use XP-safe versions of its functions. |
130 "_USING_V110_SDK71_", | 130 "_USING_V110_SDK71_", |
131 ] | 131 ] |
132 | |
133 asmflags = [ | |
134 # When /SAFESEH is specified, the linker will only produce an image if it | |
135 # can also produce a table of the image's safe exception handlers. This | |
136 # table specifies for the operating system which exception handlers are | |
137 # valid for the image. | |
138 "/SAFESEH", | |
brettw
2015/09/28 19:44:52
This didn't seem to come from anywhere else. I'm a
Bons
2015/09/28 20:15:39
It came from the windows toolchain config where it
| |
139 ] | |
132 } | 140 } |
133 | 141 |
134 # Sets the default Windows build version. This is separated because some | 142 # Sets the default Windows build version. This is separated because some |
135 # targets need to manually override it for their compiles. | 143 # targets need to manually override it for their compiles. |
136 config("winver") { | 144 config("winver") { |
137 defines = [ | 145 defines = [ |
138 "_WIN32_WINNT=0x0603", | 146 "_WIN32_WINNT=0x0603", |
139 "WINVER=0x0603", | 147 "WINVER=0x0603", |
140 ] | 148 ] |
141 } | 149 } |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
305 | 313 |
306 # Internal stuff -------------------------------------------------------------- | 314 # Internal stuff -------------------------------------------------------------- |
307 | 315 |
308 # Config used by the MIDL template to disable warnings. | 316 # Config used by the MIDL template to disable warnings. |
309 config("midl_warnings") { | 317 config("midl_warnings") { |
310 if (is_clang) { | 318 if (is_clang) { |
311 # MIDL generates code like "#endif !_MIDL_USE_GUIDDEF_". | 319 # MIDL generates code like "#endif !_MIDL_USE_GUIDDEF_". |
312 cflags = [ "-Wno-extra-tokens" ] | 320 cflags = [ "-Wno-extra-tokens" ] |
313 } | 321 } |
314 } | 322 } |
OLD | NEW |