[Lazarus] Creating packages - what to include?

Bo Berglund bo.berglund at gmail.com
Mon Dec 28 18:13:41 CET 2020


On Mon, 28 Dec 2020 16:39:32 +0100, Bart via lazarus
<lazarus at lists.lazarus-ide.org> wrote:

>On Mon, Dec 28, 2020 at 4:24 PM Bo Berglund via lazarus
><lazarus at lists.lazarus-ide.org> wrote:
>
>> >I have created a number of classes that are useful in multiple
>> >projects.
>
>I have all my usefull units in one folder (you can use multiple
>folders if so desired).
>This folder is in the -Fu path of all my projects.
>This can be easily achieved by having the Lazarus IDE create a default
>compiler settings for you.

Could you please direct me to where in Lazarus this can be done?
I looked in the Tools menu but found nothing I thought could be it.

If I look at the Project menu then items there presumably are for the
current project only, which is not what I want here.

I use Project/ProjectOptions/CompilerOptions/Paths/OtherUnitFiles to
set a relative path for my bigger projects, which have several
different programs which re-use some units which are not in the same
dir as the program itself but are relevant just for this family of
programs. Usually a path of type ../somedir...

But this will not be a global option active for a newly created
project...

>The only advantage I can see in a package is that you can drop the
>controls on a form and use OI to set it's properties.
>If you don't really need that, then the solution I use will suffice.

Exactly, whatever is handled in RAD fashion in the Lazarus IDE must
have been stuffed into a package that get installed into the Lazarus
program itself.

But I am talking about non-visual things that are used in many
different projects.


-- 
Bo Berglund
Developer in Sweden



More information about the lazarus mailing list