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

TTargets.AddLibrary

Adds a library target to the collection

Declaration

Source position: fpmkunit.pp line 859

public function TTargets.AddLibrary(

  const ALibraryName: string

):TTarget;

function TTargets.AddLibrary(

  const ALibraryName: string;

  const OSes: TOSes

):TTarget;

function TTargets.AddLibrary(

  const ALibraryName: string;

  const CPUs: TCPUS;

  const OSes: TOSes

):TTarget;

Arguments

ALibraryName

  

Name of the library to add

Function result

Newly created library target

Arguments

ALibraryName

  

Name of the library to add

OSes

  

Set of operating systems for this library

Arguments

ALibraryName

  

Name of the library to add

CPUs

  

Set of CPU architectures for this library

OSes

  

Set of operating systems for this library

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

AddUnit

  

Adds a unit target to the collection

AddProgram

  

Adds a program target to the collection

ttSharedLibrary

  

Dynamic shared library target


Documentation generated on: Dec 15 2025