Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(789)

Side by Side Diff: visual_studio/NativeClientVSAddIn/NaCl.Build.CPPTasks/SDKUtilities.cs

Issue 11375004: [NaCl Addin] Fix to PNaCl lib creation from MSVS (Closed) Base URL: http://nativeclient-sdk.googlecode.com/svn/trunk/src
Patch Set: Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 // No known SDK version has working PNaC toolchain yet 16 // The first version of pepper with a known working PNaCl toolchain
17 // TODO(sbc): update this value once we release one. 17 public const int MinPNaCLSDKVersion = 166868;
18 public const int MinPNaCLSDKVersion = 999999;
19 18
20 /// <summary> 19 /// <summary>
21 /// Find python executable in user's PATH. 20 /// Find python executable in user's PATH.
22 /// </summary> 21 /// </summary>
23 public static bool FindPython() 22 public static bool FindPython()
24 { 23 {
25 string envvar = Environment.GetEnvironmentVariable("Path", Environme ntVariableTarget.Process); 24 string envvar = Environment.GetEnvironmentVariable("Path", Environme ntVariableTarget.Process);
26 List<string> pathList = new List<string>(envvar.Split(';')); 25 List<string> pathList = new List<string>(envvar.Split(';'));
27 foreach (string path in pathList) 26 foreach (string path in pathList)
28 { 27 {
(...skipping 26 matching lines...) Expand all
55 { 54 {
56 if (line.StartsWith("Revision")) 55 if (line.StartsWith("Revision"))
57 revision = Convert.ToInt32(line.Split(':')[1]); 56 revision = Convert.ToInt32(line.Split(':')[1]);
58 if (line.StartsWith("Version")) 57 if (line.StartsWith("Version"))
59 version = Convert.ToInt32(line.Split(':')[1]); 58 version = Convert.ToInt32(line.Split(':')[1]);
60 } 59 }
61 return version; 60 return version;
62 } 61 }
63 } 62 }
64 } 63 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698