Build.cs now uses mono to invoke Prebuild.exe on Unix systems.
This commit is contained in:
parent
65e9dd947e
commit
f96aafdf75
3 changed files with 14 additions and 4 deletions
BIN
Build/Build.exe
BIN
Build/Build.exe
Binary file not shown.
|
@ -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>
|
||||
|
|
|
@ -158,7 +158,8 @@ namespace OpenTK.Build
|
|||
ExecuteProcess(PrebuildPath, "/clean /yes /file " + PrebuildXml);
|
||||
DeleteDirectories(RootPath, "obj");
|
||||
DeleteDirectories(RootPath, "bin");
|
||||
Directory.Delete(RootPath + "Binaries", true);
|
||||
if (Directory.Exists(RootPath + "Binaries"))
|
||||
Directory.Delete(RootPath + "Binaries", true);
|
||||
break;
|
||||
|
||||
case BuildTarget.SVNClean:
|
||||
|
@ -209,8 +210,17 @@ namespace OpenTK.Build
|
|||
static void ExecuteProcess(string path, string args)
|
||||
{
|
||||
Process p = new Process();
|
||||
p.StartInfo.FileName = path;
|
||||
p.StartInfo.Arguments = args;
|
||||
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;
|
||||
|
|
Loading…
Reference in a new issue