Skip to content

TDependency

Represents a build dependency in the fpmake system

Declaration

Source position: fpmkunit.pp line 605

type

  TDependency = class(TConditionalString)
  public
    constructor Create;
    procedure Assign;
    destructor Destroy;
    property Target: TObject; {rw}
    property DependencyType: TDependencyType; {r}
    property TargetFileName: string; {rw}
    property Version: string; {rw}
    property RequireChecksum: Cardinal; {rw}
  end;

Description

TDependency represents a dependency relationship between build targets or packages. Dependencies can be on other packages, individual units, include files, or specific targets.

The dependency system ensures that required components are built before dependent targets, manages version requirements, and handles conditional dependencies based on CPU and OS targets.

Dependencies support version checking through the Version property and can be conditional on specific CPU architectures and operating systems inherited from TConditionalString.

Properties

Member Visibility Description
DependencyType read only public Type of dependency relationship
RequireChecksum public Controls checksum verification for the dependency
Target public Target name that this dependency references
TargetFileName public Specific filename for the dependency target
Version public Version requirement for the dependency
See all Properties

Methods

Member Visibility Description
Assign public Assigns properties from another dependency object
Create public Creates a new package dependency instance
Destroy public Destroys the dependency object and releases resources
See all Methods

See also

Name Description
TDependencies Collection of build dependencies
TDependencyType Types of dependencies supported by the build system
TConditionalString String value with CPU and OS conditions
TPackage Central class for package management and building
TTarget Build target representation in the fpmake system