Hello,
 
i have a similar folder structure
 
/... /Projects/<projectname>
 
And lots of libs folders
/.../Projects/libs/openGLLibs
/.../Projects/libs/GraphicLibs
/.../Projects/libs/DataLibs
...
If for some reason i need a project specific configuration in the lib i manage this via a .inc file that is included from the lib and is located in each project separatly (e.g. my math lib can be configured to be based on single (OpenGL-Compatible) or double or whatever needed) all my libs that need a .inc have a copy template in the comments .
 
As i do not use all libs in each project i add all the needed files manually into each project using the project inspector (this is a work of 1 minute on each project equals nothing to the benefit that is given when you use always up to date libs )
 
With this i am able to use my own tools ( https://www.corpsman.de/index.php?doc=projekte/project_collector ) to collect all project files into one folder and ( https://www.corpsman.de/index.php?doc=projekte/project_uncollector ) to "unpack" the folder on a second system.
 
So i am able to share a Project (or publish it on my homepage) with one click and all needed files. Or transfer them to a computer where my backups are stored and which has no acces to my SVN-Repository (Or simple to my windows virtual machine to create the windows binary).
=>
i have no redundant code
i can store my libs in separate locations (this is usefull to keep their unit tests out of my other projects)
i can share my code without worries of missing files
i can deploy with scripts (project collector is scriptable *g*)
 
 
 

 
-- 

Auf meiner Homepage www.Corpsman.de ist immer was los, ständig wird sie aktualisiert und erweitert. Da ist für jeden was dabei.
 
 
Gesendet: Montag, 28. Dezember 2020 um 22:51 Uhr
Von: "Bart via lazarus" <lazarus@lists.lazarus-ide.org>
An: bo.bergl...@gmail.com, "Lazarus mailing list" <lazarus@lists.lazarus-ide.org>
Cc: "Bart" <bartjun...@gmail.com>
Betreff: Re: [Lazarus] Creating packages - what to include?
On Mon, Dec 28, 2020 at 6:13 PM Bo Berglund via lazarus
<lazarus@lists.lazarus-ide.org> wrote:

> Could you please direct me to where in Lazarus this can be done?
It is in Complier options.
It has a checkbox "Set compiler options as default".

My folder layout is like:
\<username>\LazarusProjecten\
Each application's main lpi resides in a subfolder of this
My usefull unist are in a subfolder called MijnLib
So I have e.g.
\<username>\LazarusProjecten\MijnLib
\<username>\LazarusProjecten\EPlus
\<username>\LazarusProjecten\AdresBoek
\<username>\LazarusProjecten\sbp
etc.

In my default compiler options I have "..\MijnLib" as the first entry
in -Fu field.

This of course only works if you have a folder setup similar to mine:
a base folder in which you create new folders for each application you
write.

--
Bart
--
_______________________________________________
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus
-- 
_______________________________________________
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus

Reply via email to