Sign in Join
FPDoc Onlineexperiment

TDependencies.AddUnit function

Member of TDependenciespublicIn unit fpMkUnit

Adds a unit dependency to the collection

Declaration

pascal
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

Arguments

Value

Unit name for the dependency

OSes

Set of operating systems for this unit dependency

CPUs

Set of CPU architectures for this unit dependency

Function result

Newly created unit dependency object

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

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