[Lazarus] lazbuild build IDE profiles
Mattias Gaertner
nc-gaertnma at netcologne.de
Tue Mar 20 09:26:51 CET 2012
On Mon, 19 Mar 2012 23:50:49 -0400
waldo kitty <wkitty42 at windstream.net> wrote:
>[...]
> echo compiling lazarus...
> cd %myLAZpath%
> echo * Debug IDE
> make clean lazbuild
> lazbuild.exe --build-ide="-gw -gl -godwarfsets -gh -gt -Co -Cr -Ci -Sa"
> build-mode="debug ide"
> copy /q lazarus.exe lazarus-debug.exe
> echo * Normal IDE
> make clean lazbuild
> lazbuild.exe --build-ide= build-mode="normal ide"
> copy /q lazarus.exe lazarus-normal.exe
> echo * Optimized IDE
> make clean lazbuild
> lazbuild --build-ide="-O2 -g- -Xs" build-mode="optimized ide"
> copy /q lazarus.exe lazarus-optimized.exe
> echo lazarus compilation complete...
>
> i assume that the build-mode takes into account the defines in the named build
> mode? and also the other widget type, target os, target cpu and etc??
yes
>[...]
> > Maybe you mean tools/svn2revisioninc.lpi or perhaps ide/revision.inc.
>
> yes... as i wrote before, it would be very nice to be able to have the "copy"
> lines above read as
>
> copy /q lazarus.exe lazarus-debug_r%svnversion%.exe
>
> where "svnversion" is an environment variable set by the make process that
> includes updating the above file(s)...
Maybe you can use the file ide\revision.inc to do that.
Mattias
More information about the Lazarus
mailing list