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

AddLibraryExtension

Adds appropriate extension to library name

Declaration

Source position: fpmkunit.pp line 1702

function AddLibraryExtension(

  const LibraryName: string;

  AOS: TOS

):string;

Arguments

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.


Documentation generated on: Dec 15 2025