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

Bo Berglund bo.berglund at gmail.com
Tue Feb 14 10:06:50 CET 2023

On Sun, 12 Feb 2023 15:35:27 +0100, Luca Olivetti via lazarus
<lazarus at lists.lazarus-ide.org> wrote:


Follow-up question:
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 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

Bo Berglund
Developer in Sweden

More information about the lazarus mailing list