OLD | NEW |
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 Loading... |
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 } |
OLD | NEW |