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 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
186 "PSAPI_VERSION=1", | 186 "PSAPI_VERSION=1", |
187 "WIN32", | 187 "WIN32", |
188 "_SECURE_ATL", | 188 "_SECURE_ATL", |
189 ] | 189 ] |
190 | 190 |
191 if (!use_vs_code_analysis) { | 191 if (!use_vs_code_analysis) { |
192 # This is required for ATL to use XP-safe versions of its functions. | 192 # This is required for ATL to use XP-safe versions of its functions. |
193 # However it is prohibited when using /analyze | 193 # However it is prohibited when using /analyze |
194 defines += [ "_USING_V110_SDK71_" ] | 194 defines += [ "_USING_V110_SDK71_" ] |
195 } | 195 } |
196 } | |
196 | 197 |
198 # Configures how the runtime library (CRT) is going to be used. | |
199 # See https://msdn.microsoft.com/en-us/library/2kzt1wy3.aspx for a reference of | |
200 # what each value does. | |
201 config("crt") { | |
brettw
2016/09/28 17:22:02
If we're going to be changing this, I think a bett
| |
197 if (is_component_build) { | 202 if (is_component_build) { |
198 # Component mode: dynamic CRT. Since the library is shared, it requires | 203 # Component mode: dynamic CRT. Since the library is shared, it requires |
199 # exceptions or will give errors about things not matching, so keep | 204 # exceptions or will give errors about things not matching, so keep |
200 # exceptions on. | 205 # exceptions on. |
201 if (is_debug) { | 206 if (is_debug) { |
202 cflags += [ "/MDd" ] | 207 cflags += [ "/MDd" ] |
203 } else { | 208 } else { |
204 cflags += [ "/MD" ] | 209 cflags += [ "/MD" ] |
205 } | 210 } |
206 } else { | 211 } else { |
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
396 | 401 |
397 # Internal stuff -------------------------------------------------------------- | 402 # Internal stuff -------------------------------------------------------------- |
398 | 403 |
399 # Config used by the MIDL template to disable warnings. | 404 # Config used by the MIDL template to disable warnings. |
400 config("midl_warnings") { | 405 config("midl_warnings") { |
401 if (is_clang) { | 406 if (is_clang) { |
402 # MIDL generates code like "#endif !_MIDL_USE_GUIDDEF_". | 407 # MIDL generates code like "#endif !_MIDL_USE_GUIDDEF_". |
403 cflags = [ "-Wno-extra-tokens" ] | 408 cflags = [ "-Wno-extra-tokens" ] |
404 } | 409 } |
405 } | 410 } |
OLD | NEW |