Skip to content

TTargetType

Classification of build target types

Declaration

Source position: fpmkunit.pp line 178

type
  TTargetType = (ttProgram,ttUnit,ttImplicitUnit,ttCleanOnlyUnit,
               ttExampleUnit,ttExampleProgram,ttFPDoc,ttSharedLibrary)

Values

Value Description
ttProgram Executable program target
ttUnit Regular Pascal unit target
ttImplicitUnit Unit with implicit compilation dependencies
ttCleanOnlyUnit Unit processed only during clean operations
ttExampleUnit Example unit for demonstration purposes
ttExampleProgram Example program for demonstration purposes
ttFPDoc FPDoc documentation generation target
ttSharedLibrary Dynamic shared library target

Description

TTargetType defines the different categories of build targets supported by the fpmake system:

ttProgram
represents a build target that produces an executable program file
ttUnit
represents a build target that produces a compiled Pascal unit. Unit targets generate .ppu files that can be used by other units and programs through the uses clause.
ttImplicitUnit
represents a unit target that is compiled automatically when needed by other targets, without being explicitly listed in the build process.
ttCleanOnlyUnit
represents a unit target that is only processed during clean operations to remove generated files. These units are not compiled during normal build processes but are included in cleanup operations.
ttExampleUnit
represents a unit target that serves as an example or demonstration. Example units are typically compiled separately from the main package and may have different installation rules.
ttExampleProgram
represents a program target that serves as an example or demonstration. Example programs showcase package functionality and are typically compiled separately from the main package components.
ttSharedLibrary
represents a build target that produces a dynamic shared library (.so on Unix, .dll on Windows).
ttFPDoc
represents a target that generates documentation using the FPDoc system. These targets documentation source code and XML documentation files.

See also

Name Description
TTarget Build target representation in the fpmake system
TTargetTypes Set of target types