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,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;
|
||||
|
|
Loading…
Reference in a new issue