more fixes for build tool

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401886
This commit is contained in:
David Anderson 2008-02-22 14:32:08 +00:00
parent b66203259b
commit c733283b90

View File

@ -49,7 +49,7 @@ namespace builder
File.Delete(binpath); File.Delete(binpath);
} }
string makefile_args = null; string makefile_args = "";
if (lib.build_mode == BuildMode.BuildMode_Episode1) if (lib.build_mode == BuildMode.BuildMode_Episode1)
{ {
@ -58,10 +58,12 @@ namespace builder
else if (lib.build_mode == BuildMode.BuildMode_Episode2) else if (lib.build_mode == BuildMode.BuildMode_Episode2)
{ {
makefile_args = "ENGINE=\"orangebox\""; makefile_args = "ENGINE=\"orangebox\"";
binpath += ".orangebox";
} }
else if (lib.build_mode == BuildMode.BuildMode_OldMetamod) else if (lib.build_mode == BuildMode.BuildMode_OldMetamod)
{ {
makefile_args = "ENGINE=\"original\""; makefile_args = "ENGINE=\"original\"";
binpath += ".original";
} }
/* Clean the project first */ /* Clean the project first */
@ -77,7 +79,7 @@ namespace builder
/* Now build it */ /* Now build it */
info.WorkingDirectory = path; info.WorkingDirectory = path;
info.FileName = cfg.builder_path; info.FileName = cfg.builder_path;
info.Arguments = makefile_args + " clean"; info.Arguments = makefile_args;
info.UseShellExecute = false; info.UseShellExecute = false;
if (cfg.build_options != null) if (cfg.build_options != null)