Sign in Join
FPDoc Onlineexperiment

TTargets.AddLibrary function

Member of TTargetspublicIn unit fpMkUnit

Adds a library target to the collection

Declaration

pascal
function AddLibrary(const ALibraryName: string): TTarget
function AddLibrary(const ALibraryName: string; const OSes: TOSes)
: TTarget
function AddLibrary(const ALibraryName: string; const CPUs: TCPUS; 
 const OSes: TOSes): TTarget

Arguments

ALibraryName

Name of the library to add

OSes

Set of operating systems for this library

CPUs

Set of CPU architectures for this library

Function result

Newly created library target

Description

Creates and adds a new library target with the specified name to the target collection. The library will be compiled as a shared library and can optionally be restricted to specific CPU architectures and operating systems.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.