Skip to content

TPackageVariant

Package variant with specific build options

Declaration

Source position: fpmkunit.pp line 632

type

  TPackageVariant = class(TNamedItem)
  public
    constructor Create;
    destructor Destroy;
    procedure AddOption;
    property Options: TStrings; {r}
    property IncludePath: TConditionalStrings; {r}
    property SourcePath: TConditionalStrings; {r}
    property Targets: TTargets; {r}
  end;

Description

TPackageVariant represents a specific configuration variant of a package with custom build options and settings. This class allows packages to define multiple build configurations with different compiler options, target platforms, or conditional compilation settings.

Properties

Member Visibility Description
IncludePath read only public Include file search paths for this variant
Options read only public Compiler options for this variant
SourcePath read only public Source file search paths for this variant
Targets read only public Build targets associated with this variant
See all Properties

Methods

Member Visibility Description
AddOption public Adds a compiler option to the package variant
Create public Creates a new package variant configuration
Destroy public Destroys package variant and frees resources
See all Methods