Boost logo

Boost-Build :

Subject: Re: [Boost-build] glob-tree question
From: Rene Rivera (grafikrobot_at_[hidden])
Date: 2015-05-21 10:35:16

On Thu, May 21, 2015 at 8:37 AM, Stefan Seefeld <stefan_at_[hidden]> wrote:

> Hi,
> I'm looking at the boost-install rule in Boost's Jamroot file.

Wow.. Just looked.. The code under that has gotten way more complicated
since the time I first wrote this :-\

For Boost.Python I'd like to use a modified version of that which
> installs the headers itself, rather than doing it via a dependency. (I
> was searching for "install-proper-headers" but couldn't find it. Any
> hints ?)

I couldn't find it, or decipher where it comes from either :-(

> So, I define
> headers = [ path.glob-tree $(SELF)/include/boost : *.hpp ] ;

> error: The patterns to 'glob-tree' may not include directory
> which I don't understand, as the glob-tree rule appears to be defined to
> take a 'roots' argument which is a (directory) location.
> What am I missing ?

Try just the project level versions of glob:

headers = [ glob-tree $(SELF)/include/boost : *.hpp ] ;


headers = [ glob-tree-ex $(SELF)/include/boost : *.hpp ] ;

> What is the suggested way to install headers, while preserving their
> directory structure (relative to some common prefix) ?

Well.. The install target has an option to preserve directory structure.
But I can't decipher what the current boost-install code does (I know I
should be able to.. but man that jam code is even hard for me).

-- Rene Rivera
-- Grafik - Don't Assume Anything
-- Robot Dreams -
-- rrivera/ (msn) - grafikrobot/aim,yahoo,skype,efnet,gmail

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