OLD | NEW |
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2013 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 import errno | 5 import errno |
| 6 import glob |
6 import os | 7 import os |
7 import re | 8 import re |
8 import subprocess | 9 import subprocess |
9 import sys | 10 import sys |
10 | 11 |
11 """ | 12 """ |
12 This script searches for Visual Studio versions on the current system. | 13 This script searches for Visual Studio versions on the current system. |
13 | 14 |
14 Pass in the preferred VS version on the command line, or pass "auto" for | 15 Pass in the preferred VS version on the command line, or pass "auto" for |
15 autodetect. | 16 autodetect. |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 requested_version = sys.argv[1] | 167 requested_version = sys.argv[1] |
167 vs_path = _DetectVisualStudioVersion(version_map[requested_version], | 168 vs_path = _DetectVisualStudioVersion(version_map[requested_version], |
168 'e' in requested_version) | 169 'e' in requested_version) |
169 if not vs_path: | 170 if not vs_path: |
170 # No Visual Studio version detected. | 171 # No Visual Studio version detected. |
171 print '""' # Return empty string to .gn file. | 172 print '""' # Return empty string to .gn file. |
172 sys.exit(1); | 173 sys.exit(1); |
173 | 174 |
174 # Return Visual Studio path to the .gn file. | 175 # Return Visual Studio path to the .gn file. |
175 print '"%s"' % vs_path | 176 print '"%s"' % vs_path |
OLD | NEW |