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

Bart bartjunk64 at gmail.com
Thu Jul 14 17:49:31 CEST 2011


I read the wiki article but I'm a little puzzled.

I can define build modes (Debug/Release) with different
compiler/linker options, and this seems to work. It just builds my
project with the altered settings, and leaves the packages as is.

However I have to repeat these steps for every project I have or make.

I would however like to have these two nuild modes available in every project.

What I gather from the wiki article is that if I make build macro's
the all the options I have in them will be passed to all packages and
all packages are re-build with that option as well?

To make clear what I want:
In all projects I have available a Debug and Release mode, these modes
are the same for all projects I make/open.
The options I set in these modes do not force installed packages to be
re-build with my options (-gl -gh etc).

Is such a thing even possible (and is fo, how)?

Bart


On 7/14/11, Marcos Douglas <md at delfire.net> wrote:
> On Thu, Jul 14, 2011 at 12:20 PM, Mattias Gaertner
> <nc-gaertnma at netcologne.de> wrote:
>> On Thu, 14 Jul 2011 11:13:53 -0300
>> Marcos Douglas <md at delfire.net> wrote:
>>
>>> On Thu, Jul 14, 2011 at 9:54 AM, Marcos Douglas <md at delfire.net> wrote:
>>> >
>>> > 2011/7/14 Mattias Gaertner <nc-gaertnma at netcologne.de>:
>>> > > You can define a project macro and use that in each package custom
>>> > > options.
>>> > >
>>> > > See here
>>> > >
>>> > > http://wiki.lazarus.freepascal.org/Macros_and_Conditionals#Add_a_release.2Fdebug_mode
>>> > >
>>> > > Using build modes you get a button in the IDE tool bar, so switching
>>> > > release/debug mode is just a mouse click away.
>>> > >
>>> > > The -B option is automatically applied by the IDE as well.
>>> >
>>> > Hi Mattias,
>>> > I tried this (see attachment) but didn't worked. The IDE ignored the
>>> > parameters.
>>> >
>>> > My environment is Lazarus 0.9.30.1 r31020 FPC 2.4.5
>>> > i386-win32-win32/win64
>>>
>>> These macros do not works in Lazarus [0.9.30.1] only from the version
>>> [0.9.31]?
>>
>> Yes.
>
> So, why they are there and what is the forecast to be operational in
> fixes_2_4?
>
> Thanks,
> Marcos Douglas
>
> --
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
>




More information about the Lazarus mailing list