Pre-Build |
Top Previous Next |
The "Pre-Build event" is the build event that is called before the building of the project is initiated.
When the Pre-Build event is triggered, the RTCU IDE will run the "PreBuild.bat" batch file if present. The RTCU IDE will look for the batch file - first in the project folder and then in the RTCU IDE install folder. The "PreBuild.bat" file has 2 parameters: <path to project> and <path to build file>.
<path to project> is the absolute path to the folder where the project is located. <path to build file> is the absolute path to the build file - including the file name (see Build file format for more info).
Note: any changes made to files in the project will not propagate to files opened in the RTCU IDE.
For example, the PreBuild.bat for the BuildEvent example project looks like this:
@ECHO OFF
IncBuild.exe %2 |