Boost logo

Boost-Build :

From: David Abrahams (dave_at_[hidden])
Date: 2004-12-13 06:02:25

Toon Knapen wrote:
> Hash: SHA1
> TEMPLIE Cédric wrote:
> | I just want to know if it is possible to do a system call ( in my case
> | this is a perforce sync) before compiling files...
> |
> | ie:
> |
> | exe toto : toto.cpp ;
> |
> | before creating toto I want to do a perforce sync on toto.cpp
> | This is my problem.
> |
> No, bjamv2 IMO is not able to perform a user-defined system-call. BTW,
> how would you implement that in a portable way.

The same way that you implement portable build actions. Most of what
bjam does is invoke system calls, after all.

Unfortunately the structure of bjam doesn't currently allow dependencies
to be calculated after any build steps, so we could only arrange to
build files that were already on the client machine before bjam was invoked.

What we actually need is a portable popen4 implementation built into the
bjam core. Having looked at the one in Python, I think it would be
pretty easy to transplant.

Dave Abrahams
Boost Consulting

Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at