added ability to specify extra options to the build line

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40473
This commit is contained in:
David Anderson 2007-02-12 05:13:53 +00:00
parent efff395182
commit c5e98f7dc2
3 changed files with 15 additions and 0 deletions

View File

@ -19,6 +19,7 @@ namespace builder
public string SVNVersion;
public string ProductVersion;
public string Compressor;
public string BuildOptions;
public builder.BasePlatform Platform;
public Config()
@ -99,6 +100,10 @@ namespace builder
else if (key.CompareTo("Compressor") == 0)
{
Compressor = val;
}
else if (key.CompareTo("BuildOptions") == 0)
{
BuildOptions = val;
}
}
}

View File

@ -29,6 +29,11 @@ namespace builder
info.Arguments = "zcvf \"" + name + "\" \"" + ltarget + "\"";
info.UseShellExecute = false;
if (cfg.BuildOptions != null)
{
info.Arguments += " " + cfg.BuildOptions;
}
Process p = Process.Start(info);
p.WaitForExit();

View File

@ -29,6 +29,11 @@ namespace builder
info.Arguments = "-r \"" + name + "\" \"" + ltarget + "\"";
info.UseShellExecute = false;
if (cfg.BuildOptions != null)
{
info.Arguments += " " + cfg.BuildOptions;
}
Process p = Process.Start(info);
p.WaitForExit();