Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 # Path to Visual Studio runtime libraries. |
| 16 # will be auto-filled. | 16 visual_studio_runtime_dirs = "" |
| 17 wdk_path = "" | |
| 18 | 17 |
| 19 # Full path to the Windows SDK, not including a backslash at the end. | 18 # 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 | 19 # This value is the default location, override if you have a different |
| 21 # installation location. | 20 # installation location. |
| 22 windows_sdk_path = "C:\Program Files (x86)\Windows Kits\10" | 21 windows_sdk_path = "C:\Program Files (x86)\Windows Kits\10" |
| 23 } | 22 } |
| 24 | 23 |
| 25 if (visual_studio_path == "") { | 24 if (visual_studio_path == "") { |
| 26 toolchain_data = | 25 toolchain_data = |
| 27 exec_script("../../vs_toolchain.py", [ "get_toolchain_dir" ], "scope") | 26 exec_script("../../vs_toolchain.py", [ "get_toolchain_dir" ], "scope") |
| 28 visual_studio_path = toolchain_data.vs_path | 27 visual_studio_path = toolchain_data.vs_path |
| 29 windows_sdk_path = toolchain_data.sdk_path | 28 windows_sdk_path = toolchain_data.sdk_path |
| 30 visual_studio_version = toolchain_data.vs_version | 29 visual_studio_version = toolchain_data.vs_version |
| 31 wdk_path = toolchain_data.wdk_dir | |
| 32 visual_studio_runtime_dirs = toolchain_data.runtime_dirs | 30 visual_studio_runtime_dirs = toolchain_data.runtime_dirs |
| 33 } else { | 31 } else { |
| 34 assert(visual_studio_version != "", | 32 assert(visual_studio_version != "", |
| 35 "You must set the visual_studio_version if you set the path") | 33 "You must set the visual_studio_version if you set the path") |
| 36 assert(wdk_path != "", | 34 assert(visual_studio_runtime_dirs != "", |
|
brucedawson
2016/07/07 23:31:38
It would be best to give an example of what to set
| |
| 37 "You must set the wdk_path if you set the visual studio path") | 35 "You must set the visual_studio_runtime_dirs if you set the visual " + |
| 38 visual_studio_runtime_dirs = [] | 36 "studio path") |
| 39 } | 37 } |
| OLD | NEW |