From c5e98f7dc2a57692a5ef31851ed959132f3266e6 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Mon, 12 Feb 2007 05:13:53 +0000 Subject: [PATCH] added ability to specify extra options to the build line --HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%40473 --- tools/builder/Config.cs | 5 +++++ tools/builder/LinuxBuilder.cs | 5 +++++ tools/builder/Win32Builder.cs | 5 +++++ 3 files changed, 15 insertions(+) diff --git a/tools/builder/Config.cs b/tools/builder/Config.cs index 4f7700e7..b46dc785 100644 --- a/tools/builder/Config.cs +++ b/tools/builder/Config.cs @@ -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; } } } diff --git a/tools/builder/LinuxBuilder.cs b/tools/builder/LinuxBuilder.cs index ccda2027..02532f6b 100644 --- a/tools/builder/LinuxBuilder.cs +++ b/tools/builder/LinuxBuilder.cs @@ -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(); diff --git a/tools/builder/Win32Builder.cs b/tools/builder/Win32Builder.cs index fda67bb2..cb758f44 100644 --- a/tools/builder/Win32Builder.cs +++ b/tools/builder/Win32Builder.cs @@ -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();