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:
parent
efff395182
commit
c5e98f7dc2
@ -19,6 +19,7 @@ namespace builder
|
|||||||
public string SVNVersion;
|
public string SVNVersion;
|
||||||
public string ProductVersion;
|
public string ProductVersion;
|
||||||
public string Compressor;
|
public string Compressor;
|
||||||
|
public string BuildOptions;
|
||||||
public builder.BasePlatform Platform;
|
public builder.BasePlatform Platform;
|
||||||
|
|
||||||
public Config()
|
public Config()
|
||||||
@ -100,6 +101,10 @@ namespace builder
|
|||||||
{
|
{
|
||||||
Compressor = val;
|
Compressor = val;
|
||||||
}
|
}
|
||||||
|
else if (key.CompareTo("BuildOptions") == 0)
|
||||||
|
{
|
||||||
|
BuildOptions = val;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -29,6 +29,11 @@ namespace builder
|
|||||||
info.Arguments = "zcvf \"" + name + "\" \"" + ltarget + "\"";
|
info.Arguments = "zcvf \"" + name + "\" \"" + ltarget + "\"";
|
||||||
info.UseShellExecute = false;
|
info.UseShellExecute = false;
|
||||||
|
|
||||||
|
if (cfg.BuildOptions != null)
|
||||||
|
{
|
||||||
|
info.Arguments += " " + cfg.BuildOptions;
|
||||||
|
}
|
||||||
|
|
||||||
Process p = Process.Start(info);
|
Process p = Process.Start(info);
|
||||||
p.WaitForExit();
|
p.WaitForExit();
|
||||||
|
|
||||||
|
@ -29,6 +29,11 @@ namespace builder
|
|||||||
info.Arguments = "-r \"" + name + "\" \"" + ltarget + "\"";
|
info.Arguments = "-r \"" + name + "\" \"" + ltarget + "\"";
|
||||||
info.UseShellExecute = false;
|
info.UseShellExecute = false;
|
||||||
|
|
||||||
|
if (cfg.BuildOptions != null)
|
||||||
|
{
|
||||||
|
info.Arguments += " " + cfg.BuildOptions;
|
||||||
|
}
|
||||||
|
|
||||||
Process p = Process.Start(info);
|
Process p = Process.Start(info);
|
||||||
p.WaitForExit();
|
p.WaitForExit();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user