[Lazarus] Build modes, macros and conditionals

Marco van de Voort marcov at stack.nl
Sun Oct 24 23:15:31 CEST 2010


On Sun, Oct 24, 2010 at 10:49:11PM +0200, Mattias Gaertner wrote:
> There are some new options to create 
> * sets of compiler options - called "Build modes",
> * project and package macros - called "Build macros"
> * and rules to set macros, paths and options automatically depending on
> target platform - called "Conditionals".
> 
> See here for details and examples:
> 
> http://wiki.lazarus.freepascal.org/IDE_Window:_Compiler_Options#Build_modes
> http://wiki.lazarus.freepascal.org/Macros_and_Conditionals
> 
> Please test.
> 
> Important compatibility note:
> When opening a new project with an old IDE, you will only see the
> default mode. If you save the project with the old IDE you will loose
> all other modes, all macros and conditionals. 

Looks nice. One small interesting aspect: it might be worthwhile to set
environment variables from the scripts.

These values can then be included into the source (e.g. for an about box)
using {$I %envvar%} syntax. 

See also the "Getting a program's "true name" thread.




More information about the Lazarus mailing list