Boost logo

Boost-Build :

From: Ren Zhi Zhang (icouldnotsee_at_[hidden])
Date: 2006-07-07 08:44:16


Hi all

In an effort to better organize my projects and prepare for the
possibilities of building my projects for different systems, I'm starting to
use Boost.Build to build my projects (since it already comes with the boost
library, which I'm already using inside Visual Studio). I've made a new
variant named "package" inside Jamroot with the following:

variant package : release ;

And I would like to copy all project related MEL scripts (*.mel) to a folder
named "package" after the "package" variant has been built:

install package : [ glob *.mel ] : <location>/package ;

So far so good but the trouble is that I only want the MEL scripts to be
copied when the "package" variant is built, so naturally I tried something
like this:

if $(package) # or something like if <variant>package = "package"
{
install package : [ glob *.mel ] : <location>/package ;
}

Of course the above didn't work and I'm wondering if anyone can help? I'm
not too familiar with the Jam language and syntax, and reading the html
files inside jam_src makes me even more confused. :-(

Thank you!

Ren Zhi


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