Build.cs now uses mono to invoke Prebuild.exe on Unix systems.

This commit is contained in:
the_fiddler 2007-06-30 07:01:04 +00:00
parent 65e9dd947e
commit f96aafdf75
3 changed files with 14 additions and 4 deletions

Binary file not shown.

View file

@ -29,7 +29,7 @@
<File>.\Instructions.txt</File>
</Files>
<Project name="OpenTK.Build" path=".\Source\Build" language="C#" type="Exe">
<Project name="Build" path=".\Source\Build" language="C#" type="Exe">
<Configuration name="Debug">
<Options>

View file

@ -158,6 +158,7 @@ namespace OpenTK.Build
ExecuteProcess(PrebuildPath, "/clean /yes /file " + PrebuildXml);
DeleteDirectories(RootPath, "obj");
DeleteDirectories(RootPath, "bin");
if (Directory.Exists(RootPath + "Binaries"))
Directory.Delete(RootPath + "Binaries", true);
break;
@ -209,8 +210,17 @@ namespace OpenTK.Build
static void ExecuteProcess(string path, string args)
{
Process p = new Process();
if (Environment.OSVersion.Platform == PlatformID.Unix)
{
p.StartInfo.FileName = "mono";
p.StartInfo.Arguments = path + " " + args;
}
else
{
p.StartInfo.FileName = path;
p.StartInfo.Arguments = args;
}
p.StartInfo.WorkingDirectory = RootPath;
p.StartInfo.CreateNoWindow = true;
p.StartInfo.RedirectStandardOutput = true;