[Lazarus] Compile project release with LCL custom optimization

Graeme Geldenhuys graeme at geldenhuys.co.uk
Tue Mar 19 16:38:58 CET 2013


On 2013-03-19 11:21, Zaher Dirkey wrote:
> 
> I already have mode "Release" with that options, but not sure it take
> over LCL sourcecode too.

No, that is the really annoying thing about Lazarus Packages. Settings
do not resonate up the hierarchy. So if you have settings in your
Project, it is only for your project files, and not for any dependant
packages.

Mattias once mentioned there is a possibility of having settings
resonate up the package hierarchy, but that meant Macros and other
trickery - thus modifying all packages that get pulled in by your project.

Lately I find simply not using Lazarus Packages much easier. I setup a
project template with all the correct search paths for my most used
components (you can do that in fpc.cfg too). Project compiler settings
then apply to ALL source code. This is how I roll these days. YMMV


Regards,
  - Graeme -

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





More information about the Lazarus mailing list