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

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

Issue 11266051: Add PNaCl support for VS addin. (Closed) Base URL: http://nativeclient-sdk.googlecode.com/svn/trunk/src
Patch Set: Add pnacl-translate phase 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 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 using System.IO; 5 using System.IO;
6 6
7 using Microsoft.Build.Framework; 7 using Microsoft.Build.Framework;
8 using System.Xaml; 8 using System.Xaml;
9 using Microsoft.Build.Framework.XamlTypes; 9 using Microsoft.Build.Framework.XamlTypes;
10 using Microsoft.Build.Utilities; 10 using Microsoft.Build.Utilities;
11 11
12 namespace NaCl.Build.CPPTasks 12 namespace NaCl.Build.CPPTasks
13 { 13 {
14 class XamlParser 14 public class XamlParser
15 { 15 {
16 public XamlParser(string path) 16 public XamlParser(string path)
17 { 17 {
18 // load and store properties from xaml file 18 // load and store properties from xaml file
19 m_parsedBuildRule = (Rule)XamlServices.Load(path); 19 m_parsedBuildRule = (Rule)XamlServices.Load(path);
20 20
21 // NOTE: 21 // NOTE:
22 // There are MSBuild classes which support command line building, 22 // There are MSBuild classes which support command line building,
23 // argument switch encapsulation and more. Code within VCToolTask, 23 // argument switch encapsulation and more. Code within VCToolTask,
24 // a hidden interface, uses some these classes to generate command l ine 24 // a hidden interface, uses some these classes to generate command l ine
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 } // class 166 } // class
167 167
168 private Rule m_parsedBuildRule; 168 private Rule m_parsedBuildRule;
169 private Dictionary<string, PropertyWrapper> ToolProperties { get; set; } 169 private Dictionary<string, PropertyWrapper> ToolProperties { get; set; }
170 170
171 // function mapping for easy property function calling 171 // function mapping for easy property function calling
172 private Dictionary<Type, Action<CommandLineBuilder, BaseProperty, string >> m_typeFunctionMap; 172 private Dictionary<Type, Action<CommandLineBuilder, BaseProperty, string >> m_typeFunctionMap;
173 } // XamlParser 173 } // XamlParser
174 } // namespace NaCl.Build.CPPTasks 174 } // namespace NaCl.Build.CPPTasks
175 175
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698