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

TTargets

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

Collection class for managing build targets

Declaration

Source position: fpmkunit.pp line 836

type TTargets = class(TNamedCollection)

public

  function AddFPDoc();

  

Adds a documentation target to the collection

  function AddUnit();

  

Adds a unit target to the collection

  function AddImplicitUnit();

  

Adds an implicit unit target to the collection

  function AddProgram();

  

Adds a program target to the collection

  function AddLibrary();

  

Adds a library target to the collection

  function AddExampleUnit();

  

Adds an example unit target to the collection

  function AddExampleProgram();

  

Adds an example program target to the collection

  function GetEnumerator;

  

Gets enumerator for iterating build targets

  property Targets []: TTarget; default; [r]

  

Access to build target by name

  property TargetItems []: TTarget; [rw]

  

Indexed access to build targets in the collection

end;

Inheritance

TTargets

  

Collection class for managing build targets

|

TNamedCollection

  

Collection class for managing named items

|

TCollection

|

TPersistent

|

TObject,IFPObserved

Description

TTargets is a collection class that manages multiple TTarget instances within a package. It provides methods to add different types of targets such as units, programs, libraries, and documentation targets.

The collection supports various convenience methods for adding specific target types with optional CPU and OS restrictions, making it easy to create cross-platform build configurations.

See also

TTarget

  

Build target representation in the fpmake system

TTargetEnumerator

  

Enumerator for iterating through build targets

TPackage

  

Central class for package management and building


Documentation generated on: Dec 15 2025