Boost logo

Boost Users :

Subject: Re: [Boost-users] Extracting BOOST header only libraries
From: dhruva (dhruvakm_at_[hidden])
Date: 2008-12-02 22:17:22


Hi,

> Date: Tue, 02 Dec 2008 07:45:30 -0800
> From: Steven Watanabe <watanabesj_at_[hidden]>
> Subject: Re: [Boost-users] Extracting BOOST header only libraries
> To: boost-users_at_[hidden]
> Message-ID: <4935581A.1050803_at_[hidden]>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> AMDG
>
> dhruva wrote:
>> I would like to extract the header only libraries of BOOST for
>> internal use. Though I would like to build and install complete BOOST,
>> I will have to integrate that into our build system. Due to lack of
>> time, I would just like to pull subset of BOOST that does not require
>> any build (exclude regex, system, filesyste...). It there a simple way
>> to do it.
>>
>
> 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.

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.

-dhruva

-- 
Contents reflect my personal views only!

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