Unit Command.Build

Uses
Classes, Interfaces, Objects and Records
Types
Constants
Variables

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
ABuilder
Command builder that will provide the output callback to print info about the command execution
procedure Registry(ABuilder: ICommandBuilder);

Registry a build command using the command builder from pascli, also sets. options and usage help info.

Parameters
ABuilder
Command builder of the main application that will be used to registry the command.
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
AProjectDir
Folder to find the lazarus project
AProjectFile
Project file specified.

Generated by PasDoc 0.16.0.