Unit Command.Build
Description
This unit contains procedures to configure and execute a command to build the specified project or to build the first project found on current dir.
Overview
Functions and Procedures
procedure BuildCommand(ABuilder: ICommandBuilder); |
procedure Registry(ABuilder: ICommandBuilder); |
function FindProject(const AProjectDir, AProjectFile: string): string; |
Description
Functions and Procedures
procedure BuildCommand(ABuilder: ICommandBuilder); |
This command uses the lazbuild tool to build the specified project. If one was not provided, try to find one on current directory and builds it. The purpose of this command is to automate the build process along with the watch command. The command accepts two build options –debug or –release. The project file must have both modes with these respective names. If no option is passed, the lazbuild tool will run in default mode.
Parameters
|
procedure Registry(ABuilder: ICommandBuilder); |
Registry a build command using the command builder from pascli, also sets. options and usage help info.
Parameters
|
function FindProject(const AProjectDir, AProjectFile: string): string; |
Checks if specified project exists, if a project file is not provided try to find one on current directory. Returns complete file name if a project is found.
Parameters
|
Generated by PasDoc 0.16.0.