[Lazarus] compiling lazarus packages with fpc only

Mattias Gaertner nc-gaertnma at netcologne.de
Thu Oct 6 08:52:28 CEST 2011


On Thu, 06 Oct 2011 07:59:03 +0200
Marc Santhoff <M.Santhoff at web.de> wrote:

> Hi to everyone,
> 
> I'd like to know:
> Is it possible to have fpc compile a source package that is created only
> as a lazarus package by using the .lpk-file, or do I have to make a
> second sort of building configuration e.g. for fpmake or fpcmake?

You can compile a lazarus package with the IDE or with lazbuild. They
create a .compiled file, which contains the command line parameters for
fpc. So, you can use that to compile the package directly with fpc.
The package editor allows to create a Makfefile, but this does not
support all specials.
There is currently no function to create a fpmake file, so you must
create it manually. 

 
> Secondly, does the generated .pas file corresponding to a package file
> (.lpk) have to be kept when checking in to a source versioning system or
> can it be deleted because it is recreated anyways?

It is recreated by the IDE and lazbuild, not by the Makefile and not
if the directory is readonly.
So it is better kept in the VCS.

Mattias




More information about the Lazarus mailing list