Sign in Join
FPDoc Onlineexperiment

TDependencies.Add function

Member of TDependenciespublicIn unit fpMkUnit

Adds a new package dependency to the collection

Declaration

pascal
function Add(const Value: string): TDependency
function Add(const Value: string; const OSes: TOSes): TDependency
function Add(const Value: string; const CPUs: TCPUS; const OSes: TOSes)
: TDependency

Arguments

Value

Target name for the dependency

OSes

Set of operating systems for this dependency

CPUs

Set of CPU architectures for this dependency

Function result

Newly created dependency object

Description

Creates and adds a new dependency with the specified package name to the collection. The dependency can be made platform-specific by providing CPU and OS restrictions.

Dependencies ensure that the required package is available before compilation of the dependent target begins.

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