Skip to content

TBuildEngine.Compile

Compiles a specific target within a package

Declaration

Source position: fpmkunit.pp line 1459

public 
procedure Compile(APackage: TPackage; ATarget: TTarget);  virtual;

procedure Compile(APackage: TPackage);

procedure Compile(Packages: TPackages);

Description

Compiles the specified target within the given package. This method handles the actual compilation process, including dependency resolution, command-line generation, and execution of the Free Pascal Compiler.

See also

Name Description
MaybeCompile Compiles target if compilation is needed
CompileDependencies Compiles all dependencies for a target
TTarget Build target representation in the fpmake system
TPackage Central class for package management and building