| 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 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 # that is Windows-only. Please see that target for advice on what should go in | 164 # that is Windows-only. Please see that target for advice on what should go in |
| 165 # :runtime_library vs. :compiler. | 165 # :runtime_library vs. :compiler. |
| 166 config("runtime_library") { | 166 config("runtime_library") { |
| 167 cflags = [] | 167 cflags = [] |
| 168 | 168 |
| 169 # Defines that set up the CRT. | 169 # Defines that set up the CRT. |
| 170 defines = [ | 170 defines = [ |
| 171 "__STD_C", | 171 "__STD_C", |
| 172 "_CRT_RAND_S", | 172 "_CRT_RAND_S", |
| 173 "_CRT_SECURE_NO_DEPRECATE", | 173 "_CRT_SECURE_NO_DEPRECATE", |
| 174 "_HAS_EXCEPTIONS=0", | |
| 175 "_SCL_SECURE_NO_DEPRECATE", | 174 "_SCL_SECURE_NO_DEPRECATE", |
| 176 ] | 175 ] |
| 177 | 176 |
| 178 # Defines that set up the Windows SDK. | 177 # Defines that set up the Windows SDK. |
| 179 defines += [ | 178 defines += [ |
| 180 "_ATL_NO_OPENGL", | 179 "_ATL_NO_OPENGL", |
| 181 "_WINDOWS", | 180 "_WINDOWS", |
| 182 "CERT_CHAIN_PARA_HAS_EXTRA_FIELDS", | 181 "CERT_CHAIN_PARA_HAS_EXTRA_FIELDS", |
| 183 "NTDDI_VERSION=0x0A000000", | 182 "NTDDI_VERSION=0x0A000000", |
| 184 "PSAPI_VERSION=1", | 183 "PSAPI_VERSION=1", |
| (...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 399 | 398 |
| 400 # Internal stuff -------------------------------------------------------------- | 399 # Internal stuff -------------------------------------------------------------- |
| 401 | 400 |
| 402 # Config used by the MIDL template to disable warnings. | 401 # Config used by the MIDL template to disable warnings. |
| 403 config("midl_warnings") { | 402 config("midl_warnings") { |
| 404 if (is_clang) { | 403 if (is_clang) { |
| 405 # MIDL generates code like "#endif !_MIDL_USE_GUIDDEF_". | 404 # MIDL generates code like "#endif !_MIDL_USE_GUIDDEF_". |
| 406 cflags = [ "-Wno-extra-tokens" ] | 405 cflags = [ "-Wno-extra-tokens" ] |
| 407 } | 406 } |
| 408 } | 407 } |
| OLD | NEW |