Unit 'fpmkunit' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#fcl]

TBuildEngine.CheckExternalPackage

Checks if external package is available

Declaration

Source position: fpmkunit.pp line 1472

public function TBuildEngine.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.


Documentation generated on: Dec 15 2025