[Lazarus] Project defined Macros?

Graeme Geldenhuys mailinglists at geldenhuys.co.uk
Thu Jun 18 14:46:58 CEST 2015

On 2015-06-18 13:20, Graeme Geldenhuys wrote:
> I've come across a relatively recent project of mine that has project
> defined macros in the LPI file, but for the life of me I can't see where
> in the Project Options dialog that is defined. See the <MacroValues>
> shown below. The Wiki also doesn't mention it.

Ah... The mystery is solved!  The wiki is well out of date (another
reason Lazarus IDE needs versioned help!).

Contratry to so many screenshots and text in the wiki, the "Build Modes"
node doesn't exist any more in Compiler Options.

I found similar functionality well hidden in "Additions and Overrides".
Open that sceen, then you have to click on the down arrow next to "Add",
then select "IDE Macros". New macro entries are then created under the
odd looking grid under "Stored in project (.lpi)". Define your
Name=Value pairs there, and they generate the <MacroValues> seen in the
LPI file.

So, how old is the wiki text and screenshots then? I just checked, and
the release Lazarus v1.4 doesn't have the "Build modes" under Compiler
Options, and obviously neither does v1.5 (trunk).

Feature Request:
Please, please add versioned documentation (docs per release) as a
priority for Lazarus. The wiki is currently a mess, and from what I
experienced, definitely not very helpful at all.

  - Graeme -

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal

More information about the Lazarus mailing list