I am looking to implement a continuous unit test running system, something I have heard called a \"smoketest\" or \"tinderbox\", (a build server that does clean version cont
Delphi 2010 uses MSBuild as it's main build engine. That means that the IDE and the command line both do exactly the same thing. It also means that you can easily build existing projects with the command line. In fact, we on the Delphi team do this exact thing all the time. You need not worry about switches for the compiler itself -- the DProj file created by the IDE will
On the Start Menu is a command line for using MSBuild with an existing Delphi project. It sets up the environment correctly so that you can simply call:
msbuild myproject.dproj
You can also call specific build configurations from the command line, using the IDE to easily create said configurations using command line parameters for MSBuild.
If you want to create the environment yourself, you can run the rsvars.bat batch file to set things up. That file can be found in your \bin directory, and should be available from a default command line.
The file contains the following:
@SET BDS=
@SET BDSCOMMONDIR=C:\Users\Public\Documents\RAD Studio\7.0
@SET FrameworkDir=C:\Windows\Microsoft.NET\Framework\v2.0.50727
@SET FrameworkVersion=v2.0.50727
@SET FrameworkSDKDir=
@SET PATH=%FrameworkDir%;%FrameworkSDKDir%;%PATH%
@SET LANGDIR=EN
Thus, if you want to create your own continuous integration build, you can easily manage your Delphi build using MSBuild.