[Lazarus] Using packages for often used units across projects?

Mattias Gaertner nc-gaertnma at netcologne.de
Tue Feb 14 10:19:29 CET 2023

On Tue, 14 Feb 2023 10:06:50 +0100
Bo Berglund via lazarus <lazarus at lists.lazarus-ide.org> wrote:

> Suppose I make a package with about 10 non-GUI utility units and use
> the Package Manager to compile them so they will be known to new
> projects if I add a dependency to this package.
> Then in a new project I put a single one of the units into my uses
> clause, will then the compile include just that unit

Yes, that is the default.

> or will it grab
> all of the package content into the resulting binary?
> I hope that it will just compile the specified unit into the program
> and not the complete package, but want to check this in case I am not
> understanding how it works....


More information about the lazarus mailing list