From: Khassapov, Alex (Alex.Khassapov_at_[hidden])
Date: 2008-02-11 22:53:06
I think I should really change the subject of the thread.
Do you have any suggestion on how to make bjam checkout the dependencies without building? I.e. do "bjam checkout" first?
From: boost-build-bounces_at_[hidden] [mailto:boost-build-bounces_at_[hidden]] On Behalf Of Jurko Gospodnetic
Sent: Tuesday, 12 February 2008 12:48 PM
Subject: Re: [Boost-build] path.exists caching?
> I want bjam to automatically checkout missing dependancies. I created a wrapper rule for 'exe' and 'lib' which checks if sources include libraries from a list of our libs and then checks if the directory exists and if not - checks it out from cvs.
Hmmm, nice goal, and wiser developers might correct me if I am wrong,
but I do not believe Boost Build (or Boost Jam, or make for that matter)
was intended to be used in such a way that dynamically modifies its own
scripts/rules while it works based on the very environment it changes.
My choice would be to split this into two separate tools - one for
checking out all the needed files, and another one for building.
What still remains as an open issue here is whether to implement
those two tools using Boost Build or some other scripting language and
how to remove code duplication between them. My first idea is to prepare
one Boost Build script assuming all files are already available and run
that same script but with it just listing all the targets it wants to
build and not actually building them to get the list of sources I would
need to checkout. Someone else might have a better idea...
Another idea would be to do something akin to what you are already
doing and run your script once to do the necessary checkouts and then
again to do the actual build.
Hope this helps.
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build
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