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