Build Events

From RAD Studio
Jump to: navigation, search

Go Up to Building


Project > Options > Building > Build Events

Use the Build Events dialog box to add events for the pre-build, pre-link and post-build stages. Results of the commands you specify in this dialog box are displayed in the Output pane. To control the level of output, choose Tools > Options > IDE > Compiling and Running and adjust the Verbosity level.

Note: Some of the build options are not available for some project types. For example, Pre-link events are available only for C++ projects.


Options Description

Target, Apply, Save

See Target Options.

Post-build events

  • Cancel on error
    Cancels the project build if a command returns a nonzero error code.
  • Commands
    Enter the commands that are to be performed after the build has successfully completed.
    To display the Build Event Commands dialog box for creating the command list, click the ellipsis [...] that pops up in the Commands field.
  • Execute when
    Executes the specified events either Always or only if the Target is out of date. This option is available only for Post-build events.

Pre-build events

  • Cancel on error
    Cancels the project build if a command returns a nonzero error code.
  • Commands
    Enter the commands that are to be performed before the build starts.
    To display the Build Event Commands dialog box for creating a command list, click the ellipsis [...] that pops up in the Commands field.

Pre-link events

Pre-link events are available for C++ only.

  • Cancel on error
    Cancels the project build if a command returns a nonzero error code.
  • Commands
    Enter the commands that are to be performed after the compile phase but before linking.
    To display the Build Event Commands dialog box for creating a command list, click the ellipsis [...] that pops up in the Commands field.

See Also