This is a base to create your own build scripts for the Delphi 7 project groups. Typical example is an Application and its' Test. The task here is to build each project and check the Test result.
This scripts allow you to run build with CI servers,
e.g. Jenkins. Output goes to a console stdout
so you can check build details in the Console Output
.
- Create a system environment variable
Delphi7Bin
with path toDelphi 7/Bin
. Usually theDelphi 7/Bin
is located inc:\Program Files\Borland\Delphi7\Bin\
orc:\Program Files(x86)\Borland\Delphi7\Bin\
- Install madExcept exception handler.
It's requred to patch the compiled exe after build to allow madExcept debug
the application during execution.
Note: You can remove madExcept patching by deleting
:madExceptPatchBinary
block and madExcept paths fromINCLUDE_DIRS
inBuildMyApp.bat
.
- To build all targets exec
BuildAll.bat
- To build one project run relevant batch file, e.g.
BuildMyApp.bat
,TestMyApp.bat
. - To add new build target:
- Create a copy of
BuildMyApp.bat
. - Rename it as you need.
- Add created batch filename to the buildTargets variable in BuildAll.bat
- Try build.
- Create a copy of
To check the project is ready to be published run BuildMyAppDist.bat
.