[Lazarus] How to configure IDE for my own libraries?

Sven Barth pascaldragon at googlemail.com
Mon Aug 30 09:50:28 CEST 2010


Am 30.08.2010 09:41, schrieb Frank Church:
>
> I have now begun using some of my own files regularly in my projects and
> I need to store them in one place rather than copy them to every
> project's folder.
>
> I have created a folder called m:\lazaruslibs\mylib with the source in
> ..\sources and units in ..\units.
> In the Compiler Options for the project, on the Paths tab I have added
> m:\lazaruslibs\mylib\units to the Other Unit Files (-Fu) box and added
> m:\lazaruslibs\mylib\units to the Other Sources (.pp/.pas, only used by
> IDE,not by compiler) box.
>
> It is working fine but I is there a way to configure things in such a
> way that it is present in every project without having to add it
> everytime, like it is automatically present in the IDE?

In trunk version you can set your project settings as default ones, thus 
you add your paths and save your settings so that they are used for 
every new project.

Another possibility (preferred by me) is to add your units to a package 
and to include your package with every project. To simplify this you 
might create a new project template which includes your package by 
default (I don't know how to do that, though. You might search in the 
Wiki or look at the fpGUI project which includes such templates)

Regards,
Sven




More information about the Lazarus mailing list