Boost logo

Boost-Build :

Subject: Re: [Boost-build] Tarball/archive support in bjam
From: Vladimir Prus (ghost_at_[hidden])
Date: 2009-08-29 07:19:32


On Tuesday 11 August 2009 John Bito wrote:

> In case you're interested, here is a tar.jam that will do the basic
> operation if you have gzip and tar commands in the path. First the
> jamfile:
>
> import tar : tarball ;
>
> tarball tarballname : [ glob-tree *.?pp ] : <compression>--best ;
>
> --- now tar.jam ---
>
> import type ;
> import targets ;
> import project ;
> import feature ;
> import generators ;
>
> type.register TAR : tar ;
> type.register GZIP_TAR : tgz ;
>
> feature.feature compression :
> # specify the list of valid compression options here
> : free incidental
> ;
>
> rule tarball ( target-name : sources * : requirements * : default-build * )
> {
> targets.create-typed-target GZIP_TAR : [ project.current ] : $(target-name) :
> $(sources) : $(requirements) : $(default-build) ;
> }
>
> generators.register-composing tar.tar.create : CPP HPP EXE LIB : TAR ;
> # not sure how to add generic source file types
> generators.register-standard tar.tgz.create : TAR : GZIP_TAR ;

A generator that has empty list of source types is considered as accepting
everything.

HTH,
Volodya


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