[Lazarus] Project defined Macros?

Graeme Geldenhuys mailinglists at geldenhuys.co.uk
Thu Jun 18 14:20:53 CEST 2015


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.

I just updated my Lazarus to the latest Trunk, but it doesn't seem to
have such an option either. I remember trying out CodeTyphon a couple
weeks back, so not sure if that is maybe a feature they added, and it
modified my LPI in the process?

This project doesn't define dependency packages, so it seems to have
used the Project Macros instead to find the correct source code. The
Compiler Options -> Paths also use these macros. For example:


I'm a bit puzzled here. :-)

<?xml version="1.0"?>
    <Version Value="9"/>
        <MainUnitHasCreateFormStatements Value="False"/>
        <MainUnitHasTitleStatement Value="False"/>
      <SessionStorage Value="InProjectDir"/>
      <MainUnit Value="0"/>
      <UseAppBundle Value="False"/>
      <ResourceType Value="res"/>
      <EnableI18N LFM="False"/>
      <StringTable ProductVersion=""/>
    <MacroValues Count="4">
      <Macro1 Name="fpgui" Value="/data/devel/fpgui/"/>
      <Macro2 Name="tiopf" Value="/data/devel/tiopf/"/>
      <Macro3 Name="fblib" Value="/data/devel/opensource/FBLib/"/>
      <Macro4 Name="fptest" Value="/data/devel/fptest/"/>
    <BuildModes Count="1">
      <Item1 Name="Default" Default="True"/>

  - Graeme -

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

More information about the Lazarus mailing list