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

TDependencies.AddUnit

Adds a unit dependency to the collection

Declaration

Source position: fpmkunit.pp line 701

public function TDependencies.AddUnit(

  const Value: string

):TDependency;

function TDependencies.AddUnit(

  const Value: string;

  const OSes: TOSes

):TDependency;

function TDependencies.AddUnit(

  const Value: string;

  const CPUs: TCPUS;

  const OSes: TOSes

):TDependency;

Arguments

Value

  

Unit name for the dependency

Function result

Newly created unit dependency object

Arguments

Value

  

Unit name for the dependency

OSes

  

Set of operating systems for this unit dependency

Arguments

Value

  

Unit name for the dependency

CPUs

  

Set of CPU architectures for this unit dependency

OSes

  

Set of operating systems for this unit dependency

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

Add

  

Adds a new package dependency to the collection

AddInclude

  

Adds an include file dependency to the collection

depUnit

  

Dependency on a specific unit


Documentation generated on: Dec 15 2025