attempt at getting the build tool to use the new makefiles

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401885
This commit is contained in:
David Anderson 2008-02-22 14:20:02 +00:00
parent 5398db729c
commit b66203259b

View File

@ -49,25 +49,25 @@ namespace builder
File.Delete(binpath); File.Delete(binpath);
} }
string makefile_name = "Makefile"; string makefile_args = null;
if (lib.build_mode == BuildMode.BuildMode_Episode1) if (lib.build_mode == BuildMode.BuildMode_Episode1)
{ {
makefile_name = "Makefile.ep1"; makefile_args = null;
} }
else if (lib.build_mode == BuildMode.BuildMode_Episode2) else if (lib.build_mode == BuildMode.BuildMode_Episode2)
{ {
makefile_name = "Makefile.ep2"; makefile_args = "ENGINE=\"orangebox\"";
} }
else if (lib.build_mode == BuildMode.BuildMode_OldMetamod) else if (lib.build_mode == BuildMode.BuildMode_OldMetamod)
{ {
makefile_name = "Makefile.orig"; makefile_args = "ENGINE=\"original\"";
} }
/* Clean the project first */ /* Clean the project first */
info.WorkingDirectory = path; info.WorkingDirectory = path;
info.FileName = cfg.builder_path; info.FileName = cfg.builder_path;
info.Arguments = "-f " + makefile_name + " clean"; info.Arguments = makefile_args + " clean";
info.UseShellExecute = false; info.UseShellExecute = false;
Process p = Process.Start(info); Process p = Process.Start(info);
@ -77,7 +77,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 = "-f " + makefile_name; info.Arguments = makefile_args + " clean";
info.UseShellExecute = false; info.UseShellExecute = false;
if (cfg.build_options != null) if (cfg.build_options != null)