[Lazarus] Shared project configuration

Xiangrong Fang xrfang at gmail.com
Tue Mar 25 10:26:27 CET 2014


Hi Mattias,

If I understood correctly, this method is binding the template to your IDE,
not your project.

In another word, if I create a project and add such a project.ini file in
the project, push it to github. You pull this project, and before you can
use the templetate, you must install my template "separately" (not by just
open the project.ini via lazarus), AND, after install the template you can
use the template OUTSIDE of the project context.  i.e. the template become
somewhat "standard", e.g. "Lazarus Project for Android" might be a custom
template?

What I want is not like this, but just to configure related projects to use
common units and output there executables in common directory.

Thanks,
Xiangrong





2014-03-25 17:11 GMT+08:00 Mattias Gaertner <nc-gaertnma at netcologne.de>:

> On Tue, 25 Mar 2014 15:53:37 +0800
> Xiangrong Fang <xrfang at gmail.com> wrote:
>
> > Hi All,
> >
> > Is it possible for lazarus to use "shared project configurations"? The
> > scenario is:
> >
> > 1. I have a project layout as below:
> >
> > <root>
> >   <src>
> >     <units>
> >     <demos>
> >   <bin>
> >   <doc>
> >
> > The core units I am writing will be put into <root>/<src>/<units>, while
> > <demos> sub-dir will contain demo project I use to test/debug the units.
> >
> > At present, I will have to configure any new project to let it look for
> > units under <root>/<src>/<units>.
> >
> > It will be useful to have a "project group configuration", such as
> > "projects.prg", which can be opened by lazarus to create a shared
> > configuration, and from that lazrus session, all new project I create
> will
> > by default "inherit" environment settings in the "project group" file
> > (which can be customized individually, of course).
> >
> > Another important reason to have such file is that I want to add it to
> > version control system.
> >
> > Is that possible?
>
> Yes.
> You can save the project options (including compiler options,
> excluding files) as a default:
>
> http://wiki.lazarus.freepascal.org/IDE_Window:_Project_Options#Use_these_settings_as_default_for_new_projects
>
> And you can create new project templates with files:
> http://wiki.lazarus.freepascal.org/Project_Templates
>
> And finally you can write an IDE addon to register project types, with
> their own setup dialogs, bells and whistles.
>
> Mattias
>
> --
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20140325/03883d00/attachment-0003.html>


More information about the Lazarus mailing list