[Lazarus] unit on relative path is not recompile

Mattias Gaertner nc-gaertnma at netcologne.de
Mon Sep 30 18:53:07 CEST 2013


On Mon, 30 Sep 2013 19:10:54 +0300
patspiper <patspiper at gmail.com> wrote:

>[...]
> Should lfm's be added to projects and packages?

You don't need to add lfm files to projects.
Add them to packages.
You can add a feature request to let the IDE check lfm files for
packages.

 
> Is it OK if include files are added by several packages and projects 
> using these packages?

Add the include file to the package and remove it from all
packages/projects using that package.
Each file should have only one owner at a time. 


> >> I tried even to include the lfm with the project but the IDE neglected that.
> > The compiler ignores changes to lfm. That means if you only change the
> > lfm and not the pas, the IDE will call the compiler, but the compiler
> > does not check resources and will not update the lfm in the exe. You
> > have to change the pas file too.
> 
> Does the compiler check include files (added and not added to the 
> project/package)?

Yes, unless a unit was compiled with -Ur.

 
> Finally, does adding defines to the project (-d) or to an include file 
> ($DEFINE) trigger the necessary rebuild?

Yes, the IDE compiles with -B.

Mattias




More information about the Lazarus mailing list