|
Boost-Build : |
Subject: Re: [Boost-build] How to use configuration files (site-config.jam and user-config.jam)?
From: Boris Schaeling (boris_at_[hidden])
Date: 2009-08-29 08:05:30
On Sat, 29 Aug 2009 13:26:12 +0200, Vladimir Prus <ghost_at_[hidden]> wrote:
Hi Vladimir,
> [...]It seems to me that it might be reasonable to pre-assign ids of
> 'user-config'
> to user-config.jam without requiring explicit 'project user-config' in
> there.
yes, exactly! If Boost.Build could do this (maybe checking if no explicit
project id is overridden) every project in the world using Boost.Build
could use standard names.
> It also seems reasonable to add some way of target inheritance, so you
> can
> define
>
> searched-lib expat : .... ;
>
> and then define
>
> searched-lib ICU : ... ;
>
> in project-config.jam and then every Jamfile could refer to expat or
> ICU without specifying exactly what config file the target is defined in.
This sounds perfect! But does searched-lib already exist? It seems though
although I can't find any documentation?
> But, I am not at all sure those ideas address your concerns above. Could
> you clarify?
I'm trying to decouple a project's Jamfiles from configuration files (as I
think that's the idea of site-config.jam and user-config.jam). That's why
I don't want the configuration files to define certain project ids as
another project might want to use other project ids later. As I never
heard of searched-lib I had to use a project id though to refer to rules
in configuration files. With searched-lib I don't need predefined project
ids anymore but they might still be handy.
Boris
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