Subject: Re: [Boost-build] testing : run with dependencies
From: Guillaume Chatelet (gch_at_[hidden])
Date: 2009-04-16 13:42:58
Beautiful. It works like a charm. Thank you very much Steven.
Steven Watanabe-4 wrote:
> Guillaume Chatelet wrote:
>> Great ! Thanks a lot Steven for this fast and sharp response.
>> I'm running in a new issue now because BB wants to link my two programs
>>> run player main : --script test-tmp/datas.pb ;
>> First I thought it was because both player target and main.cpp have an
>> main(int, char**)" function.
>> Surprisingly enough, the link error is not a "already defined reference"
>> an "undefined reference to `WinMain_at_16'" ( I'm using MinGw under windows
>> Anyway, how can I prevent BB from wanting to link main.o against my
>> program ?
>> What I want is just to trigger the player.exe run *after* the main.exe
>>>>> From the signature of run :
>>>>> rule run ( sources + : args * : input-files * : requirements * :
>>>>> target-name ? : default-build *
> Add <dependency>main to the requirements of player instead of
> adding main to the desc
> run main.cpp : ... ;
> run player.cpp : ... : : <dependency>main ;
> In Christ,
> Steven Watanabe
> Unsubscribe & other changes:
-- View this message in context: http://www.nabble.com/testing-%3A-run-with-dependencies-tp23081600p23082998.html Sent from the Boost - Build mailing list archive at Nabble.com.
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