[Lazarus] Lazbuild search path

Leonardo M. Ramé l.rame at griensu.com
Fri Feb 17 21:28:13 CET 2012


On 2012-02-17 19:57:47 +0100, Mattias Gaertner wrote:
> On Fri, 17 Feb 2012 15:29:45 -0300
> Leonardo M. Ramé <l.rame at griensu.com> wrote:
> 
> > Hi, I'm trying to use Lazbuild from a cron job in a server to create
> > nightly builds. Our projects are developed on machines with different
> > paths for libraries, and I would like to know how to force Lazbuild to
> > ignore the search-path specified in the .lpi file, and use a new one.
> > 
> > How can I do that?
> 
> Why does you lpi contain wrong search paths?
> 
> Make the search paths relative. 
> 
> Put the platform specific parts into packages.
> 
> Use macros.
> http://wiki.lazarus.freepascal.org/IDE_Macros_in_paths_and_filenames
> 
> Use environment options and the macro env.
> 
> Otherwise:
> Copy the lpi and change the search paths there.
> 

Thanks Mattias, the lpi contains correct search path for the develpment
PC, but the library directories are organized differently on the build machine.

Is there a way to pass a Macro as an Lazbuild parameter?.

-- 
Leonardo M. Ramé
http://leonardorame.blogspot.com




More information about the Lazarus mailing list