| 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/sanitizers/sanitizers.gni") | 5 import("//build/config/sanitizers/sanitizers.gni") |
| 6 import("//build/config/win/visual_studio_version.gni") | 6 import("//build/config/win/visual_studio_version.gni") |
| 7 | 7 |
| 8 # Compiler setup for the Windows SDK. Applied to all targets. | 8 # Compiler setup for the Windows SDK. Applied to all targets. |
| 9 config("sdk") { | 9 config("sdk") { |
| 10 # The include path is the stuff returned by the script. | 10 # The include path is the stuff returned by the script. |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 | 173 |
| 174 # Nominmax -------------------------------------------------------------------- | 174 # Nominmax -------------------------------------------------------------------- |
| 175 | 175 |
| 176 # Some third party code defines NOMINMAX before including windows.h, which | 176 # Some third party code defines NOMINMAX before including windows.h, which |
| 177 # then causes warnings when it's been previously defined on the command line. | 177 # then causes warnings when it's been previously defined on the command line. |
| 178 # For such targets, this config can be removed. | 178 # For such targets, this config can be removed. |
| 179 | 179 |
| 180 config("nominmax") { | 180 config("nominmax") { |
| 181 defines = [ "NOMINMAX" ] | 181 defines = [ "NOMINMAX" ] |
| 182 } | 182 } |
| 183 |
| 184 # Target WinRT ---------------------------------------------------------------- |
| 185 |
| 186 # When targeting Windows Runtime, certain compiler/linker flags are necessary. |
| 187 |
| 188 config("target_winrt") { |
| 189 defines = [ |
| 190 "WINRT", |
| 191 "WINAPI_FAMILY=WINAPI_FAMILY_PC_APP", |
| 192 ] |
| 193 cflags_cc = [ |
| 194 "/ZW", |
| 195 "/EHsc", |
| 196 ] |
| 197 } |
| OLD | NEW |