Skip to content

TDependencies.AddUnit

Adds a unit dependency to the collection

Declaration

Source position: fpmkunit.pp line 705

public 
function AddUnit(const Value: string) : TDependency;

function AddUnit(const Value: string; const OSes: TOSes) : TDependency;

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

Description

Creates and adds a new dependency on a specific unit within the same package, so that the installer can decide to compile the dependency first when determining the order of compilation. The dependency can be made conditional by specifying CPU architectures and operating systems where this dependency applies.

See also

Name Description
Add Adds a new package dependency to the collection
AddInclude Adds an include file dependency to the collection
depUnit Dependency on a specific unit