Sign in Join
FPDoc Onlineexperiment

TTargets.AddUnit function

Member of TTargetspublicIn unit fpMkUnit

Adds a unit target to the collection

Declaration

pascal
function AddUnit(const AUnitName: string): TTarget
function AddUnit(const AUnitName: string; const OSes: TOSes): TTarget
function AddUnit(const AUnitName: string; const CPUs: TCPUS; 
 const OSes: TOSes): TTarget

Arguments

AUnitName

Name of the unit to add

OSes

Set of operating systems for which this unit should be compiled

CPUs

Set of CPU architectures for which this unit should be compiled

Function result

Newly created unit target

Description

Creates and adds a new unit target with the specified name to the target collection. The unit will be compiled as a regular Pascal unit and can optionally be restricted to specific CPU architectures and operating systems.

See also

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