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. | 7 # automatic toolchain in depot_tools. |
8 visual_studio_path = "" | 8 visual_studio_path = "" |
9 | 9 |
10 # Full path to the Windows SDK, not including a backslash at the end. | 10 # Full path to the Windows SDK, not including a backslash at the end. |
11 # This value is the default location, override if you have a different | 11 # This value is the default location, override if you have a different |
12 # installation location. | 12 # installation location. |
13 windows_sdk_path = "C:\Program Files (x86)\Windows Kits\8.0" | 13 windows_sdk_path = "C:\Program Files (x86)\Windows Kits\8.0" |
14 } | 14 } |
15 | 15 |
16 if (visual_studio_path == "") { | 16 if (visual_studio_path == "") { |
17 toolchain_data = | 17 toolchain_data = |
18 exec_script("../../vs_toolchain.py", [ "get_toolchain_dir" ], "value") | 18 exec_script("../../vs_toolchain.py", [ "get_toolchain_dir" ], "value") |
19 visual_studio_path = toolchain_data[0] | 19 visual_studio_path = toolchain_data[0] |
20 windows_sdk_path = toolchain_data[1] | 20 windows_sdk_path = toolchain_data[1] |
21 } | 21 } |
22 | |
OLD | NEW |