[Lazarus] Build modes, macros and conditionals

Mattias Gaertner nc-gaertnma at netcologne.de
Thu Oct 28 00:47:04 CEST 2010


On Thu, 28 Oct 2010 00:23:04 +0300
patspiper <patspiper at yahoo.com> wrote:

> On 10/27/2010 08:32 PM, Mattias Gaertner wrote:
> >
> > Not yet. Same for the export/import load function.
> >
> > I'm not sure what is the best solution:
> > - change the option to save all build modes
> > - add another check box
> > - move the option to the existing import/export dialog
> > - your idea
> >
> >    
> Why not implement a project options profile, exactly like the IDE build 
> mode profiles that were implemented today? Each profile could store 
> compiler options including conditionals, and a default profile replaces 
> the project default options.

There is only one IDE with only a few options, but there are four
standard project default options plus a dozen others with lots of
options and files. There are myriad ideas what options should be
in the template, which ones should be set depending on some
environment options and which ones should be asked interactively.
I think the idea of Michael's package 'projecttemplates' is
right: cloning a directory. Maybe it needs some nicer dialogs/menu
items to fit the various tastes. 
For example for me it would be sufficient to select an existing project
and a dialog showing a few options what to clone. My set of 'few
options' will probably be insufficient for others.

In short:
Whatever someone will implement as 'default project options' will be
insufficient for others. So IMO it is best to put such a feature into a
package, like Michael did.


Mattias




More information about the Lazarus mailing list