Boost logo

Boost-Build :

From: David Abrahams (david.abrahams_at_[hidden])
Date: 2002-02-26 09:34:34


Hi Thomas,

Hi Thomas,

your diffs don't appear to correspond to the current CVS state, so I can't
apply your patch.
I am wondering a bit why the "template" solution is superior to using global
variables which contain the dependencies. Also, have you considered how this
would interact with the proposed "project/subproject-as-target" feature? I
certainly would like to have documentation before committing something of
this magnitude.

Thanks for your work,
Dave

----- Original Message -----
From: "Thomas Witt" <witt_at_[hidden]>
To: <jamboost_at_[hidden]>
Sent: Tuesday, February 26, 2002 6:08 AM
Subject: [jamboost] patch boost-base.jam project wide settings

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
>
> Hi,
>
> The attached patch introduces a new rule template that can be used to
> conveniently define project wide requirements. Furthermore
> a change to the with-command-file rule is made to allow for
> additional prefix string that contains non-sources. I need this to
circumvent
> cmdline restrictions with long libpathes on windows.
>
> Here is an example of template usage.
>
> #
> # Defining requirements template
> #
> template TplBase
> :
> :
> # requirements
> <include>../myinclude
> <define>TEMPLATE
> # build not covered so far.
> ;
>
> #
> # Defining another requirements template
> # that inherits requirements
> #
> template TplDerived
> :
> # only <template> dependencies go here
> <template>TplBase
> :
> <include>../anotherinclude
> <define>DERIVED_TEMPLATE
> ;
>
> #
> # Exe that uses requirements from TplDerived
> #
> exe MyExe
> :
> main.cpp
> <template>TplDerived
> :
> :
> debug
> ;
>
> I am using template in two projects and it reduces the maintenance work
> by at least an order of magnitude. Currently template covers only
> requirements but I think it can be extended to cover build settings to.
The
> need for requirements was just more pressing :-). If this goes in I will
> happily update the documentation.
>
> Thomas
>
> - --
> Dipl.-Ing. Thomas Witt
> Institut fuer Verkehrswesen, Eisenbahnbau und -betrieb, Universitaet
Hannover
> voice: +49(0) 511 762 - 4273, fax: +49(0) 511 762-3001
> http://www.ive.uni-hannover.de
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.0.6 (GNU/Linux)
> Comment: For info see http://www.gnupg.org
>
> iD8DBQE8e2yg0ds/gS3XsBoRAlOtAKCGvE3yuhgpMiGQZf4voYt/YQr2CwCfWEoa
> fv8flr9IuLiXrrp6vlELgX0=
> =4NKn
> -----END PGP SIGNATURE-----
>
>
> To unsubscribe from this group, send an email to:
> jamboost-unsubscribe_at_[hidden]
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>

 


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk