OLD | NEW |
(Empty) | |
| 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 |
| 3 # found in the LICENSE file. |
| 4 |
| 5 declare_args() { |
| 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 |
| 8 # visual_studio_version and wdk_path. |
| 9 visual_studio_path = "" |
| 10 |
| 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. |
| 13 visual_studio_version = "" |
| 14 |
| 15 # Directory of the Windows driver kit. If visual_studio_path is empty, this |
| 16 # will be auto-filled. |
| 17 wdk_path = "" |
| 18 |
| 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 |
| 21 # installation location. |
| 22 windows_sdk_path = "C:\Program Files (x86)\Windows Kits\10" |
| 23 |
| 24 # Tell VS to create a PDB that references information in .obj files rather |
| 25 # than copying it all. This should improve linker performance. mspdbcmf.exe |
| 26 # can be used to convert a fastlink pdb to a normal one. |
| 27 is_win_fastlink = false |
| 28 } |
| 29 |
| 30 if (visual_studio_path == "") { |
| 31 toolchain_data = |
| 32 exec_script("../../vs_toolchain.py", [ "get_toolchain_dir" ], "scope") |
| 33 visual_studio_path = toolchain_data.vs_path |
| 34 windows_sdk_path = toolchain_data.sdk_path |
| 35 visual_studio_version = toolchain_data.vs_version |
| 36 wdk_path = toolchain_data.wdk_dir |
| 37 visual_studio_runtime_dirs = toolchain_data.runtime_dirs |
| 38 } else { |
| 39 assert(visual_studio_version != "", |
| 40 "You must set the visual_studio_version if you set the path") |
| 41 assert(wdk_path != "", |
| 42 "You must set the wdk_path if you set the visual studio path") |
| 43 visual_studio_runtime_dirs = [] |
| 44 } |
OLD | NEW |