OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 namespace NaCl.Build.CPPTasks | 5 namespace NaCl.Build.CPPTasks |
6 { | 6 { |
7 using System; | 7 using System; |
8 using System.IO; | 8 using System.IO; |
9 using System.Collections.Generic; | 9 using System.Collections.Generic; |
10 | 10 |
11 /// <summary> | 11 /// <summary> |
12 /// TODO: Update summary. | 12 /// TODO: Update summary. |
13 /// </summary> | 13 /// </summary> |
14 public class SDKUtilities | 14 public class SDKUtilities |
15 { | 15 { |
16 public const int MinPNaCLSDKVersion = 164956; | 16 // No known SDK version has working PNaC toolchain yet |
| 17 // TODO(sbc): update this value once we release one. |
| 18 public const int MinPNaCLSDKVersion = 999999; |
17 | 19 |
18 /// <summary> | 20 /// <summary> |
19 /// Find python executable in user's PATH. | 21 /// Find python executable in user's PATH. |
20 /// </summary> | 22 /// </summary> |
21 public static bool FindPython() | 23 public static bool FindPython() |
22 { | 24 { |
23 string envvar = Environment.GetEnvironmentVariable("Path", Environme
ntVariableTarget.Process); | 25 string envvar = Environment.GetEnvironmentVariable("Path", Environme
ntVariableTarget.Process); |
24 List<string> pathList = new List<string>(envvar.Split(';')); | 26 List<string> pathList = new List<string>(envvar.Split(';')); |
25 foreach (string path in pathList) | 27 foreach (string path in pathList) |
26 { | 28 { |
(...skipping 26 matching lines...) Expand all Loading... |
53 { | 55 { |
54 if (line.StartsWith("Revision")) | 56 if (line.StartsWith("Revision")) |
55 revision = Convert.ToInt32(line.Split(':')[1]); | 57 revision = Convert.ToInt32(line.Split(':')[1]); |
56 if (line.StartsWith("Version")) | 58 if (line.StartsWith("Version")) |
57 version = Convert.ToInt32(line.Split(':')[1]); | 59 version = Convert.ToInt32(line.Split(':')[1]); |
58 } | 60 } |
59 return version; | 61 return version; |
60 } | 62 } |
61 } | 63 } |
62 } | 64 } |
OLD | NEW |