Boost logo

Boost-Build :

Subject: Re: [Boost-build] how to add a dependency to a dependency
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2009-01-21 22:48:10


Stjepan Rajko wrote:
> Hello,
> I need to add a dependency to a library dependency. I have a GUI
> library that can support multiple underlying window managers, and in
> some cases, it is the task of the user of the GUI library to specify
> how to link/include the window manager files.
> For example, I might have a scenario like this:
> B: a window manager library
> G: a GUI library (can work with B, but knows nothing about the
> location of "B" include files on the system)
> Gplus: a library that is based on G
> E: an executable that wants to use Gplus with the B window manager
> The goal is to allow E to specify that G/Gplus should use B:
> exe E : ... : <library>Gplus<use_window_manager>B ;
> The desired effect is that B would get added to the requirements /
> usage-requirements of G.
> I've tried a bunch of things to get this or similar to work but keep
> getting nowhere. Can someone tell me how to do this?
> I can provide more information if it's not clear what I'm trying to
> do, or if you're interested in what I tried unsuccessfully.

Is <use_window_manager> a propagated feature?

If it is then this should work
  exe E : ... : <library>Gplus <use_window_manager>B ;

In Christ,
Steven Watanabe

Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at