Skip to content

TPackages.AddPackage

Adds a new package to the collection

Declaration

Source position: fpmkunit.pp line 1157

public 
function TPackages.AddPackage(const AName: string) : TPackage;

Description

AddPackage creates and adds a new TPackage object to the collection with the specified name. The method returns the newly created package object for further configuration.

Each package in the collection must have a unique name. The created package can then be configured with targets, dependencies, and other package-specific settings.