On Fri, 09 Dec 2005 15:27:41 +0100
Micha Nelissen <[EMAIL PROTECTED]> wrote:
> Mattias Gaertner wrote:
> > You can add units to the lazarus project and remove them from the .lpr
> > file. Or IFDEF them. They are still part of the project (.lpi).
> > Normally when you add a unit to the project, the IDE will add it to the
> > .lpr file once. As with every automatism, this may be unwanted. Just
> > edit the .lpr file. It is a normal source file.
>
> Mattias, can we parse the fpc output and if we ever see a unit coming by
> that's being compiled by fpc, but is not part of the project,
> automatically add it to the project ?
Yes. Although I suggest doing it only semi automatically.
There should be a QuestionDlg explaining, when this is a bad idea. see
below.
> (Seperate question is of course whether this is always wanted).
For ported Delphi applications this can mean trouble.
It is common under Delphi to put some often used units into a directory and
add this directory to the unit path of all projects and packages.
Sharing a source directory by multiple projects and packages is a bad thing,
but many programmers don't know.
So, yes, it will give new trouble, but I think the advantages will be bigger
than the trouble.
Mattias
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives