Skip to content

AddLibraryExtension

Adds appropriate extension to library name

Declaration

Source position: fpmkunit.pp line 1726

function AddLibraryExtension(const LibraryName: string; AOS: TOS)
                             : string;

Arguments

Name Description
LibraryName Base library name to extend
AOS Target operating system for extension

Function result

Library name with platform-appropriate extension

Description

AddLibraryExtension adds the platform-appropriate file extension to a library name. This function ensures proper library naming conventions for different operating systems.

The function appends extensions such as .dll for Windows, .so for Linux, or .dylib for macOS, ensuring correct library file naming for the target platform.