2010/8/30 Frank Church <[email protected]>: > > > On 30 August 2010 08:50, Sven Barth <[email protected]> wrote: >> >> 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? >> >> Another possibility (preferred by me) is to add your units to a package >> and to include your package with every project. > > I am thinking along this line but I don't know how to go about. I usually > drag a component onto a project form for the components unit to be added to > the file I am working on. My units are source units only, not components. > What is the right way to add a non visual package to a project, no > components, visual or otherwise, just plain source code? I am yet to build a > Lazarus package.
Add the package as requirement in the project inspector. Vincent -- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
