File tree Expand file tree Collapse file tree 1 file changed +6
-13
lines changed
Expand file tree Collapse file tree 1 file changed +6
-13
lines changed Original file line number Diff line number Diff line change @@ -52,8 +52,6 @@ public MonoNativeInfo (Harness harness, MonoNativeFlavor flavor)
5252
5353 public void Convert ( )
5454 {
55- return ;
56-
5755 var inputProject = new XmlDocument ( ) ;
5856
5957 var xml = File . ReadAllText ( TemplatePath ) ;
@@ -62,18 +60,13 @@ public void Convert ()
6260 inputProject . SetIntermediateOutputPath ( "obj\\ $(Platform)\\ $(Configuration)" + FlavorSuffix ) ;
6361 inputProject . SetAssemblyName ( inputProject . GetAssemblyName ( ) + FlavorSuffix ) ;
6462
65- switch ( Flavor ) {
66- case MonoNativeFlavor . Compat :
67- inputProject . AddAdditionalDefines ( "MONO_NATIVE_COMPAT" ) ;
68- break ;
69- case MonoNativeFlavor . Unified :
70- inputProject . AddAdditionalDefines ( "MONO_NATIVE_UNIFIED" ) ;
71- break ;
72- default :
73- throw new Exception ( $ "Unknown MonoNativeFlavor: { Flavor } ") ;
74- }
63+ AddProjectDefines ( inputProject ) ;
7564
76- // Harness.Save (inputProject, ProjectPath);
65+ Harness . Save ( inputProject , ProjectPath ) ;
66+ }
67+
68+ protected virtual void Convert ( XmlDocument inputProject )
69+ {
7770 }
7871
7972 public void AddProjectDefines ( XmlDocument project )
You can’t perform that action at this time.
0 commit comments