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

TDependencies.Add

Adds a new package dependency to the collection

Declaration

Source position: fpmkunit.pp line 695

public function TDependencies.Add(

  const Value: string

):TDependency;

function TDependencies.Add(

  const Value: string;

  const OSes: TOSes

):TDependency;

function TDependencies.Add(

  const Value: string;

  const CPUs: TCPUS;

  const OSes: TOSes

):TDependency;

Arguments

Value

  

Target name for the dependency

Function result

Newly created dependency object

Arguments

Value

  

Target name for the dependency

OSes

  

Set of operating systems for this dependency

Arguments

Value

  

Target name for the dependency

CPUs

  

Set of CPU architectures for this dependency

OSes

  

Set of operating systems for this dependency

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.


Documentation generated on: Dec 15 2025