Sign in Join
FPDoc Onlineexperiment

TConditionalDestStrings.Add function

Member of TConditionalDestStringspublicIn unit fpMkUnit

Adds conditional destination string with path mapping

Declaration

pascal
function Add(const Value: string; ADestPath: string)
: TConditionalDestString
function Add(const Value: string; const OSes: TOSes; ADestPath: string)
: TConditionalDestString
function Add(const Value: string; const CPUs: TCPUS; const OSes: TOSes; 
 ADestPath: string): TConditionalDestString

Arguments

Value

String value to add

ADestPath

Destination path for the string mapping

OSes

Set of operating systems for this conditional string

CPUs

Set of CPU architectures for this conditional string

Function result

Newly created conditional destination string item

Description

Add creates and adds a new conditional destination string with the specified value, destination path, and platform restrictions.

The string will only be used when the current build targets match the specified CPU architectures and operating systems.

This method enables platform-specific file installation paths and destination mapping in build configurations.

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