https://github.com/r3code/delphi7-batch-build-scripts
A base set of scripts to build and test your Delphi 7 projects from the Console or CI server.
https://github.com/r3code/delphi7-batch-build-scripts
build build-automation delphi delphi7 delphi7-batch pascal windows-batch
Last synced: 5 months ago
JSON representation
A base set of scripts to build and test your Delphi 7 projects from the Console or CI server.
- Host: GitHub
- URL: https://github.com/r3code/delphi7-batch-build-scripts
- Owner: r3code
- Created: 2016-01-11T07:05:22.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2018-04-05T14:31:00.000Z (over 7 years ago)
- Last Synced: 2025-03-24T18:28:28.862Z (9 months ago)
- Topics: build, build-automation, delphi, delphi7, delphi7-batch, pascal, windows-batch
- Language: Batchfile
- Size: 22.5 KB
- Stars: 4
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: ReadMe.md
Awesome Lists containing this project
README
# Delphi7 Batch Build Scripts
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](https://jenkins-ci.org/). Output goes to a console stdout
so you can check build details in the `Console Output`.
## Pre-conditions
1. Create a system environment variable `Delphi7Bin` with path to `Delphi 7/Bin`.
Usually the `Delphi 7/Bin` is located in `c:\Program Files\Borland\Delphi7\Bin\`
or `c:\Program Files(x86)\Borland\Delphi7\Bin\`
2. Install [madExcept](http://madshi.net/madCollection.exe) 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 from `INCLUDE_DIRS` in `BuildMyApp.bat` .
## Usage
* 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:
1. Create a copy of `BuildMyApp.bat`.
2. Rename it as you need.
3. Add created batch filename to the buildTargets variable in BuildAll.bat
4. Try build.
To check the project is ready to be published run `BuildMyAppDist.bat`.