Re: [Boost-users] Extracting BOOST header only libraries

Hi,
Date: Tue, 02 Dec 2008 07:45:30 -0800 From: Steven Watanabe
Subject: Re: [Boost-users] Extracting BOOST header only libraries To: boost-users@lists.boost.org Message-ID: <4935581A.1050803@providere-consulting.com> 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!

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
participants (2)
-
dhruva
-
Steven Watanabe