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? >> > > 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. 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. > 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 > > -- > _______________________________________________ > Lazarus mailing list > [email protected] > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus > -- Frank Church ======================= http://devblog.brahmancreations.com
-- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
