Sign in Join
FPDoc Onlineexperiment

TBuildEngine.CheckExternalPackage function

Member of TBuildEnginepublicIn unit fpMkUnit

Checks if external package is available

Declaration

pascal
function CheckExternalPackage(const APackageName: string; 
 const ForPackageName: string; 
 ErrorOnFailure: Boolean): TPackage

Arguments

APackageName

Name of external package to check

ForPackageName

Name of requesting package

ErrorOnFailure

Whether to raise error if package not found

Function result

True if external package is available

Description

CheckExternalPackage verifies the availability and accessibility of external packages required by the build. This function checks for system packages, third-party libraries, and external dependencies not managed by fpmake.

The method returns True if the external package is found and accessible, enabling the build to proceed with confidence that external dependencies are satisfied.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.