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

TCustomInstaller.AddPackageVariant

Adds package variant to installer

Declaration

Source position: fpmkunit.pp line 1540

public function TCustomInstaller.AddPackageVariant(

  AName: string;

  AIsInheritable: Boolean;

  AutoAddToPackage: Boolean = False

):TPackageVariants;

Arguments

AName

  

Name of package variant to add

AIsInheritable

  

Whether package variant can be inherited

AutoAddToPackage

  

Whether to automatically add to package

Function result

Added package variant instance

Description

AddPackageVariant creates and adds a package variant that provides alternative build configurations. Package variants enable different compilation options, target platforms, or feature sets within the same package.

Variants can be inheritable, allowing derived packages to inherit variant settings, and can be automatically added to packages for convenient configuration management.


Documentation generated on: Dec 15 2025