|
Boost-Build : |
From: Marc Boris Dürner (BDuerner_at_[hidden])
Date: 2006-04-21 12:43:55
Hi,
I successfully used bjam to build a previous jam project by renaming bjam to
xjam. Except for one rule (FDefines) and using the right JAM_TOOLSET no
changes were neccesary. It would be nice if bjam could be kept compatible to
classic-jam in the future.
I am now trying the enhanced syntax of bjam like module etc. IT seems that I
can declare modules but not call rules in it from the global space, even
when qualified.
Example:
module X
{
rule greet ( x ) { Echo x ; }
}
module Y
{
rule salute { greet ; }
}
# this deoes not work, but is an unknown rule
X.greet ;
Any ideas why?
Surprisingly, when I IMPORT X : greet : : greet ; then I can call greet like
a global rule.
regards,
Marc
> > Is Boost.Jam backwards compatible with regular jam?
>
> Not exactly. They forked at some point long ago.
>
> > I have a jam based project here that I want to convert to
> > Boost.Jam. When I use bjam to build the old jam project I get an
> > error message that boost-build.jam and bootstrap.jam are missing. I
> > created an empty bootstrap.jam and cretaed a boost-build.jam that
> > contains only the boost-build rule:
> >
> > boost-build ;
> >
> > This seems to satisfy bjam, however my Jamrules/Jamfiles from the
> previous
> > jam project are not used. What else do I need to add?
>
> I don't know what it would take. We are probably not going to support
> the use of Boost.Jam as a pure build engine, without the Boost.Build
> v2 build system, but if you want to try it on your own, it will probably
> work if you just rename "bjam" to something else (e.g. "jam") and
> don't have BOOST_ROOT set in your environment. See the Jambase file
> in the Boost.Jam source for the reasons why that might work for you.
-- GMX Produkte empfehlen und ganz einfach Geld verdienen! Satte Provisionen für GMX Partner: http://www.gmx.net/de/go/partner
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