Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(682)

Side by Side Diff: build/config/win/visual_studio_version.gni

Issue 423263002: gn win: Add system include directories to midl template (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « build/config/win/BUILD.gn ('k') | build/toolchain/win/midl.gni » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 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 declare_args() { 5 declare_args() {
6 # Path to Visual Studio. If empty, the default is used which is to use the 6 # Path to Visual Studio. If empty, the default is used which is to use the
7 # automatic toolchain in depot_tools. If set, you must also set the 7 # automatic toolchain in depot_tools. If set, you must also set the
8 # visual_studio_version and wdk_path. 8 # visual_studio_version and wdk_path.
9 visual_studio_path = "" 9 visual_studio_path = ""
10 10
11 # Version of Visual Studio pointed to by the visual_studio_path. 11 # Version of Visual Studio pointed to by the visual_studio_path.
12 # Use "2013" for Visual Studio 2013, or "2013e" for the Express version. 12 # Use "2013" for Visual Studio 2013, or "2013e" for the Express version.
13 visual_studio_version = "" 13 visual_studio_version = ""
14 14
15 # Directory of the Windows driver kit. If visual_studio_path is empty, this 15 # Directory of the Windows driver kit. If visual_studio_path is empty, this
16 # will be auto-filled. 16 # will be auto-filled.
17 wdk_path = "" 17 wdk_path = ""
18 18
19 # Full path to the Windows SDK, not including a backslash at the end. 19 # Full path to the Windows SDK, not including a backslash at the end.
20 # This value is the default location, override if you have a different 20 # This value is the default location, override if you have a different
21 # installation location. 21 # installation location.
22 windows_sdk_path = "C:\Program Files (x86)\Windows Kits\8.0" 22 windows_sdk_path = "C:\Program Files (x86)\Windows Kits\8.0"
23
24 # The list of include directories that are treated as "system" include
25 # directories. TODO(scottmg): These are incorrectly put on the command line
26 # in GN, they should really be stored into %INCLUDE%.
27 system_include_dirs = []
23 } 28 }
24 29
25 if (visual_studio_path == "") { 30 if (visual_studio_path == "") {
26 toolchain_data = 31 toolchain_data =
27 exec_script("../../vs_toolchain.py", [ "get_toolchain_dir" ], "scope") 32 exec_script("../../vs_toolchain.py", [ "get_toolchain_dir" ], "scope")
28 visual_studio_path = toolchain_data.vs_path 33 visual_studio_path = toolchain_data.vs_path
29 windows_sdk_path = toolchain_data.sdk_path 34 windows_sdk_path = toolchain_data.sdk_path
30 visual_studio_version = toolchain_data.vs_version 35 visual_studio_version = toolchain_data.vs_version
31 wdk_path = toolchain_data.wdk_dir 36 wdk_path = toolchain_data.wdk_dir
32 } else { 37 } else {
33 assert(visual_studio_version != "", 38 assert(visual_studio_version != "",
34 "You must set the visual_studio_version if you set the path") 39 "You must set the visual_studio_version if you set the path")
35 assert(wdk_path != "", 40 assert(wdk_path != "",
36 "You must set the wdk_path if you set the visual studio path") 41 "You must set the wdk_path if you set the visual studio path")
37 } 42 }
38 43
39 # Set when using the "Express" version of a Visual Studio version we support. 44 # Set when using the "Express" version of a Visual Studio version we support.
40 is_visual_studio_express = (visual_studio_version == "2013e") 45 is_visual_studio_express = (visual_studio_version == "2013e")
46
47
48 # The Windows SDK include directories must be first. They both have a sal.h,
49 # and the SDK one is newer and the SDK uses some newer features from it not
50 # present in the Visual Studio one.
51 system_include_dirs = [
52 "$windows_sdk_path\Include\shared",
53 "$windows_sdk_path\Include\um",
54 "$windows_sdk_path\Include\winrt",
55 "$visual_studio_path\VC\include",
56 "$visual_studio_path\VC\atlmfc\include",
57 ]
58
59 if (is_visual_studio_express) {
60 system_include_dirs += [
61 "$wdk_path/inc/atl71",
62 "$wdk_path/inc/mfc42",
63 ]
64 }
OLDNEW
« no previous file with comments | « build/config/win/BUILD.gn ('k') | build/toolchain/win/midl.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698