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

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

Issue 11044024: Implement multi-core builds in MSVS (Closed) Base URL: http://nativeclient-sdk.googlecode.com/svn/trunk/src
Patch Set: Created 8 years, 2 months 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 using System; 1 using System;
2 using System.Collections.Generic; 2 using System.Collections.Generic;
3 using System.Linq; 3 using System.Linq;
4 using System.Text; 4 using System.Text;
5 5
6 using System.IO; 6 using System.IO;
7 7
8 namespace NaCl.Build.CPPTasks 8 namespace NaCl.Build.CPPTasks
9 { 9 {
10 class DependencyParser 10 class DependencyParser
(...skipping 26 matching lines...) Expand all
37 private void ParseLine(string line) 37 private void ParseLine(string line)
38 { 38 {
39 string[] paths = line.Split(elementEndings, StringSplitOptions.Remov eEmptyEntries); 39 string[] paths = line.Split(elementEndings, StringSplitOptions.Remov eEmptyEntries);
40 40
41 foreach (string path in paths) 41 foreach (string path in paths)
42 { 42 {
43 // ignore the source object file 43 // ignore the source object file
44 // assumes .o file is only possible file ending with 'o' 44 // assumes .o file is only possible file ending with 'o'
45 if (path.ElementAt(path.Length - 1) != 'o' && path.ElementAt(pat h.Length - 1) != ':') 45 if (path.ElementAt(path.Length - 1) != 'o' && path.ElementAt(pat h.Length - 1) != ':')
46 { 46 {
47 string newDependency = GCCUtilities.Convert_Path_Posix_To_Wi ndows(path); 47 string newDependency = GCCUtilities.ConvertPathPosixToWindow s(path);
48 m_dependencies.Add(newDependency); 48 m_dependencies.Add(newDependency);
49 } 49 }
50 } 50 }
51 } 51 }
52 } 52 }
53 } 53 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698