Sign in Join
FPDoc Onlineexperiment

AddLibraryExtension function

In unit fpMkUnit

Adds appropriate extension to library name

Declaration

pascal
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.

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