[Lazarus] How would you organize build directories for different versions?

Graeme Geldenhuys graemeg.lists at gmail.com
Thu Jul 14 11:56:51 CEST 2011


On 07/14/2011 11:43 AM, Mattias Gaertner wrote:
>> I thought they would all
>> be dumped into a single directory.
>  
> That would be a Delphi mess. Separate output directories is one of the key
> features of the Lazarus package system. 


And that can cause it's own set of headaches. Yes it saves on disk space
because all projects using a package, use the same set of *.ppu files.
But changing a compiler parameter or compiler define in a project
doesn't apply to any of the packages - so you can get very undesirable
results.

The other problem being that sometimes Lazarus doesn't detect unit
changes and doesn't "auto" recompile those related packages. Also
causing huge frustration.

I use to be a huge proponent for Lazarus Packages, but lately use macros
(for defining differing paths on various systems), and more importantly,
use a single output path for each project target. This solving all the
problems listed above.


Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/





More information about the Lazarus mailing list