[Lazarus] Build Mode: Packages vs Project

Mattias Gaertner nc-gaertnma at netcologne.de
Tue May 24 21:15:31 CEST 2011


On Tue, 24 May 2011 08:51:52 +0200
Graeme Geldenhuys <graemeg.lists at gmail.com> wrote:

> Hi,
> 
> My one project uses 5 packages. If I want to create a release version,
> must I set the Project + the 5 packages all to "release build profile"
> and then recompile each one?
> 
> Or is it sufficient to only change the Project's build mode to
> "release"? [leaving the 5 package's compiler settings as-is]

There are several possibilities.
You can define a macro which is appended to all your packages and/or
you can define for each package its own release mode.

http://wiki.lazarus.freepascal.org/Macros_and_Conditionals#A_release.2Fdebug_mode_for_your_project_and_all_your_packages

You need a current svn version for this.

Mattias




More information about the Lazarus mailing list