Boost logo

Boost-Build :

From: Vladimir Prus (ghost_at_[hidden])
Date: 2008-07-24 11:22:33


On Thursday 24 July 2008 18:14:12 Sébastien Fortier wrote:
> I need to specify a build dependency for a library, an executable or a
> unit test that is a plugin.
> This plugin is an .so library but I do not want it to link with the
> target that is being built, I just want it to compile a new version if
> there was a change. Maybe I'm doing something wrong here...
>
> ex.:
>
> unit-test my_tests
> :
> $(test_sources)
> /base/foo//foo
> *$(PLUGIN_LIST)* # I want this to be rebuilt if needed, but I do
> not want it to link - in this variable are contained the target names in
> the form /base/$(target_name)//$(target_name)
> $(PROJECT_ROOT)//boost_thread
> $(PROJECT_ROOT)//boost_date_time
> $(PROJECT_ROOT)//dl
> :
> ;

How about:

 unit-test my_tests
     :
       $(test_sources)
       /base/foo//foo
     : <dependency>/some/project//plugin
     ;

?

>


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