Skip to content

TConditionalDestStrings.Add

Adds conditional destination string with path mapping

Declaration

Source position: fpmkunit.pp line 520

public 
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;

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.