Adds a unit target to the collection
Source position: fpmkunit.pp line 843
public function TTargets.AddUnit( |
const AUnitName: string |
const AUnitName: string; |
const OSes: TOSes |
const AUnitName: string; |
const CPUs: TCPUS; |
const OSes: TOSes |
):TTarget; |
AUnitName |
|
Name of the unit to add |
Newly created unit target
AUnitName |
|
Name of the unit to add |
OSes |
|
Set of operating systems for which this unit should be compiled |
AUnitName |
|
Name of the unit to add |
CPUs |
|
Set of CPU architectures for which this unit should be compiled |
OSes |
|
Set of operating systems for which this unit should be compiled |
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.
|
Adds a program target to the collection |
|
|
Adds a library target to the collection |
|
|
Adds an implicit unit target to the collection |