Boost logo

Boost-Build :

Subject: [Boost-build] testing : run with dependencies
From: Guillaume Chatelet (gch_at_[hidden])
Date: 2009-04-16 12:30:37


I'd like to execute several run command with a specific order between them.

For instance :
> exe player : ... ;
> run main.cpp : test-tmp/datas.pb ;
> run player : --script test-tmp/datas.pb ;

I have an exe target used to generate a player.exe (win32 platform).
Then I'd like to generate dummy data to test my player : I'm using the run
rule to compile main.cpp and run it with "test-tmp/datas.pb" as argument.
Next I run the player with "--script test-tmp/datas.pb" as argument.

However this doesn't work because the "run player" line is executed before
the "run main.cpp" line ( I'm compiling with -j4 option ).

> From the signature of run :
> rule run ( sources + : args * : input-files * : requirements * :
> target-name ? : default-build * )

I see no name so I can't chain run rule like I would chain lib and exe
targets for instance.
Do you have any ideas of how I can ensure that my "run main.cpp" rule is
executed before the "run player" ?

Best regards,

View this message in context:
Sent from the Boost - Build mailing list archive at

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