Setting up a Delphi Build Machine
From Delphi Programming
Delphi 2006
- Install BDS 2006 onto the C: drive of main development box (SOURCE SYSTEM).
- Create folders on build machine (TARGET SYSTEM):
- C:\Program Files\Borland\BDS\4.0\
- C:\Program Files\Borland\BDS\4.0\Bin
- C:\Program Files\Borland\BDS\4.0\Lib
- Copy these files from the SOURCE SYSTEM:
- C:\Program Files\Borland\BDS\4.0\Bin\dcc32.cfg
- C:\Program Files\Borland\BDS\4.0\Bin\dcc32.exe
- C:\Program Files\Borland\BDS\4.0\Bin\lnkdfm90.dll
- C:\Program Files\Borland\BDS\4.0\Bin\rlink32.dll
- C:\Program Files\Borland\BDS\4.0\Lib\*.*
- Export registry from SOURCE SYSTEM:
- HKEY_CURRENT_USER\Software\Borland\BDS\4.0
- Import registry onto TARGET SYSTEM:
- HKEY_CURRENT_USER\Software\Borland\BDS\4.0
- Copy any directories that contain binaries (*.dcu, *.bpl, *.dcp, etc.) for third party components and libraries.
- Add "C:\Program Files\Borland\BDS\4.0\Bin" to the TARGET SYSTEM environment variables system path.
Delphi 2007
NOTE: Only tested on Delphi Win32 application compiled via DCC and via MSBUILD
- Install RAD Studio 2007/Delphi 2007 onto some machine (SOURCE SYSTEM). In this case, I'll assume it was RAD Studio 2007 installed into the default location of C:\Program Files\CodeGear\RAD Studio\5.0
- On the build machine (TARGET SYSTEM), create the following directories - base part can be modified, but the subdirectories are important.
- C:\Delphi\
- C:\Delphi\Bin
- C:\Delphi\Lib
- Copy the files from the SOURCE SYSTEM to the TARGET SYSTEM
- C:\Program Files\CodeGear\RAD Studio\5.0\Bin -> C:\Delphi\Bin
- C:\Program Files\CodeGear\RAD Studio\5.0\Lib -> C:\Delphi\Lib
- From the C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727 SOURCE SYSTEM to the corresponding directory on the TARGET SYSTEM
- Borland.Common.Targets
- Borland.Cpp.Targets
- Borland.Delphi.Targets
- Borland.Group.Targets
- Copy any directories that contain binaries (*.dcu, *.bpl, *.dcp, etc.) for third party components and libraries.
- Set the following environmental variables on the TARGET SYSTEM (adjust the path location as necessary)
- BDS=C:\Delphi
- Win32LibraryPath=C:\Delphi\Lib
- You should now be able to compile a Delphi Win32 application by calling DCC32 or by msbuild project.dproj.
