Skip to content

Commit

Permalink
X
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Baulig committed Oct 30, 2018
1 parent b4185d8 commit 08c1eb4
Showing 1 changed file with 6 additions and 13 deletions.
19 changes: 6 additions & 13 deletions tests/xharness/MonoNativeInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,6 @@ public MonoNativeInfo (Harness harness, MonoNativeFlavor flavor)

public void Convert ()
{
return;

var inputProject = new XmlDocument ();

var xml = File.ReadAllText (TemplatePath);
Expand All @@ -62,18 +60,13 @@ public void Convert ()
inputProject.SetIntermediateOutputPath ("obj\\$(Platform)\\$(Configuration)" + FlavorSuffix);
inputProject.SetAssemblyName (inputProject.GetAssemblyName () + FlavorSuffix);

switch (Flavor) {
case MonoNativeFlavor.Compat:
inputProject.AddAdditionalDefines ("MONO_NATIVE_COMPAT");
break;
case MonoNativeFlavor.Unified:
inputProject.AddAdditionalDefines ("MONO_NATIVE_UNIFIED");
break;
default:
throw new Exception ($"Unknown MonoNativeFlavor: {Flavor}");
}
AddProjectDefines (inputProject);

// Harness.Save (inputProject, ProjectPath);
Harness.Save (inputProject, ProjectPath);
}

protected virtual void Convert (XmlDocument inputProject)
{
}

public void AddProjectDefines (XmlDocument project)
Expand Down

0 comments on commit 08c1eb4

Please sign in to comment.