RAD Studio (Common)
ContentsIndex
PreviousUpNext
Compiler directives for libraries or shared objects (Delphi)
Type  
Parameter  
Syntax  
$LIBPREFIX 'string'
$LIBSUFFIX 'string'
$LIBVERSION 'string'
 
 
 
Defaults  
$LIBPREFIX 'lib' or $SOPREFIX 'bpl'
$LIBSUFFIX ' '
$LIBVERSION ' '  
 
 
Scope  
Global  

Remarks 

$LIBPREFIX overrides the default 'lib' or 'bpl' prefix in the output file name. For example, you could specify  

{$LIBPREFIX 'dcl'}  

for a design-time package, or use the following directive to eliminate the prefix entirely: 

{$LIBPREFIX ' '}  

$LIBSUFFIX adds a specified suffix to the output file name before the extension.  

For example, use 

{$LIBSUFFIX '-2.1.3'}  

in something.pas to generate  

something-2.1.3.dll 

$LIBVERSION adds a second extension to the output file name after the extension. For example, use 

{$LIBVERSION '-2.1.3'}  

in something.pas to generate  

libsomething.dll.2.1.3 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!