TTargets.AddLibrary¶
Adds a library target to the collection
Declaration¶
Source position: fpmkunit.pp line 863
public
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;
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¶
| Name | Description |
|---|---|
| AddUnit | Adds a unit target to the collection |
| AddProgram | Adds a program target to the collection |
| ttSharedLibrary | Dynamic shared library target |