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

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

Issue 2770193005: build with MSVS will only need VS console environment set up
Patch Set: build with MSVS will need VS console environment set up Created 3 years, 9 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
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 # Currently always "2015". 12 # Currently always "2015".
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\10" 22 windows_sdk_path = "C:\Program Files (x86)\Windows Kits\10"
23 } 23 }
24 24
25 if (visual_studio_path == "") { 25 if (visual_studio_path == "") {
26 test1 = getenv("VSINSTALLDIR") != ""
27 assert(test1, "Please run from within a VS console (with ENV variables)")
28 test2 = getenv("VisualStudioVersion") != ""
29 assert(test1, "Please run from within a VS console (with ENV variables)")
26 toolchain_data = 30 toolchain_data =
27 exec_script("../../vs_toolchain.py", [ "get_toolchain_dir" ], "scope") 31 exec_script("../../vs_toolchain.py", [ "get_toolchain_dir" ], "scope")
28 visual_studio_path = toolchain_data.vs_path 32 visual_studio_path = toolchain_data.vs_path
29 windows_sdk_path = toolchain_data.sdk_path 33 windows_sdk_path = toolchain_data.sdk_path
30 visual_studio_version = toolchain_data.vs_version 34 visual_studio_version = toolchain_data.vs_version
31 wdk_path = toolchain_data.wdk_dir 35 wdk_path = toolchain_data.wdk_dir
32 visual_studio_runtime_dirs = toolchain_data.runtime_dirs 36 visual_studio_runtime_dirs = toolchain_data.runtime_dirs
33 } else { 37 } else {
34 assert(visual_studio_version != "", 38 assert(visual_studio_version != "",
35 "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")
36 assert(wdk_path != "", 40 assert(wdk_path != "",
37 "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")
38 visual_studio_runtime_dirs = [] 42 visual_studio_runtime_dirs = []
39 } 43 }
OLDNEW
« no previous file with comments | « AUTHORS ('k') | build/vs_toolchain.py » ('j') | build/vs_toolchain.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698