TTargets.AddUnit function
Adds a unit target to the collection
Declaration
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): TTargetArguments
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.
