Boost logo

Boost Users :

Subject: Re: [Boost-users] Extracting BOOST header only libraries
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2008-12-02 22:27:37


AMDG

dhruva wrote:
>> Is there a particular reason that you can't just install all the headers
>> and just ignore the libraries that need to be built?
>>
>
> I could do that but an accidental inclusion of a header file that
> tries to implicitly link to a boost library would fail. I will know
> the reason but my fellow developers will start analyzing the problem
> that I want to avoid.
>

In that case, you can just add an appropriate #error directive to
boost/config/auto_link.hpp

> I chatted on #boost and decided to use the following batch file to get
> the header only part from BOOST (it can be a shell script too):
>
> I put the following lines in a batch file (M$) and pass the bjam build
> options like prefix or layout:
>
> @SET BOPT=
> @FOR /F "skip=1 tokens=2" %%a in ('bjam --show-libraries') do @SET
> BOPT=!BOPT! --without-%%a
> @ECHO bjam %* %BOPT%
>
> The output (with install appended) is the command to extract and
> install the header only part.
>

This copies all the headers including those for non-header only libraries.

In Christ,
Steven Watanabe


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net