Sign in Join
FPDoc Onlineexperiment

TTargets class

In unit fpMkUnit

Collection class for managing build targets

Declaration

pascal
TTargets = class(TNamedCollection)

Inheritance

  1. TTargets
  2. TNamedCollection
  3. TCollection
  4. TPersistent
  5. TObject

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

Properties

TargetspublicAccess to build target by name
TargetItemspublicIndexed access to build targets in the collection

Methods

AddFPDocpublicAdds a documentation target to the collection
AddUnitpublicAdds a unit target to the collection
AddImplicitUnitpublicAdds an implicit unit target to the collection
AddProgrampublicAdds a program target to the collection
AddLibrarypublicAdds a library target to the collection
AddExampleUnitpublicAdds an example unit target to the collection
AddExampleProgrampublicAdds an example program target to the collection
GetEnumeratorpublicGets enumerator for iterating build targets

Inherited

From TNamedCollection (4)

IndexOfName ItemByName Items UniqueNames

From TCollection (29)

Add Assign BeginUpdate Changed Clear Count Create Delete Destroy EndUpdate Exchange FindItemID GetAttr GetAttrCount GetItem GetItemAttr GetNamePath Insert ItemClass Move Notify Owner PropName SetItem SetItemName SetPropName Sort Update UpdateCount

From TPersistent (6)

AssignTo DefineProperties FPOAttachObserver FPODetachObserver FPONotifyObservers GetOwner

From TObject (40)

AfterConstruction BeforeDestruction CheckDisposed ClassInfo ClassName ClassNameIs ClassParent ClassType CleanupInstance DefaultHandler DefaultHandlerStr Dispatch DispatchStr Disposed DisposeOf Equals FieldAddress Free FreeInstance GetDisposed GetHashCode GetInterface GetInterfaceByStr GetInterfaceEntry GetInterfaceEntryByStr GetInterfaceTable GetInterfaceWeak GetLastCastErrorInfo InheritsFrom InitInstance InstanceSize MethodAddress MethodName newinstance QualifiedClassName SafeCallException StringMessageTable SystemHasExtendedRTTI ToString UnitName

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