Index: visual_studio/NativeClientVSAddIn/NaCl.Build.CPPTasks/XamlParser.cs |
diff --git a/visual_studio/NativeClientVSAddIn/NaCl.Build.CPPTasks/XamlParser.cs b/visual_studio/NativeClientVSAddIn/NaCl.Build.CPPTasks/XamlParser.cs |
index 652cab92bd0f3291c5e56c65cbf8d50b6f51a06b..8358c3788b23ded259b085232122f38d4d5eec05 100644 |
--- a/visual_studio/NativeClientVSAddIn/NaCl.Build.CPPTasks/XamlParser.cs |
+++ b/visual_studio/NativeClientVSAddIn/NaCl.Build.CPPTasks/XamlParser.cs |
@@ -49,13 +49,17 @@ namespace NaCl.Build.CPPTasks |
}; |
} |
- public string Parse(ITaskItem taskItem, bool fullOutputName) |
+ public string Parse(ITaskItem taskItem, bool fullOutputName, string extension) |
binji
2013/11/19 21:57:16
this looks like it only changes the output file's
Sam Clegg
2013/11/19 23:21:24
Done.
|
{ |
CommandLineBuilder builder = new CommandLineBuilder(); |
foreach (string name in taskItem.MetadataNames) |
{ |
string value = taskItem.GetMetadata(name); |
+ if (extension != null && name == "OutputFile") |
+ { |
+ value = Path.ChangeExtension(value, extension); |
+ } |
if (fullOutputName && name == "ObjectFileName") |
{ |
if ((File.GetAttributes(value) & FileAttributes.Directory) != 0) |