Boost logo

Boost-Build :

Subject: [Boost-build] bcp rule
From: Matthew Chambers (matthew.chambers_at_[hidden])
Date: 2009-08-18 18:55:35


Hi,

In additional to tarball capability, I'd like the ability to build and
run bcp by calling a rule with a list of targets and/or files to scan
for boost dependencies and a destination path for the dependencies to be
copied to. A calling syntax as simple as:
[ bcp
    : # sources
         some-lib-target
         some-exe-target
         /path/to/some-file.cpp
    : # requirements
         <location>/path/in/which/to/put/dependencies
] ;
would be excellent. This capability would synergize with a tarball rule
like mine or John Bito's suggestion.

Since bcp is simple to build but has some boost dependencies
(filesystem, regex, and prg_exec_monitor), I found it expedient to put a
prototype bcp rule in the boost.jam extension written by grafik:
https://svn.boost.org/trac/boost/browser/sandbox/tools/build_extensions/ext/boost.jam
We're already using boost.jam in our project to set up and build our
project's boost dependencies, and I've added support for a few extra
libraries as well. I just added support for the test library to get bcp
to build.

Has anybody else using boost-build land done something similar? Is
bcp.jam already out there and I missed it? If not, I figure this will be
a great addition to grafik's boost.jam, or possibly a corollary to it.

Thanks,
Matt


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk