Skip to content

TDependencies.Add

Adds a new package dependency to the collection

Declaration

Source position: fpmkunit.pp line 699

public 
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;

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.