|
Boost-Build : |
From: Rene Rivera (grafik.list_at_[hidden])
Date: 2004-12-20 17:40:31
Robert Ramey wrote:
> I'm trying to use the template target facility as described in
> http://www.boost.org/tools/build/v1/build_system.htm and am having
> difficluties.
>
> Specifically the document indicates that the syntax is:
>
> target-type name : sources
> [ : requirements [ : default-BUILD ] ] ;
The rule *is* defined that way in the code (from boost-base.jam):
rule template ( target : sources * : requirements * : default-build * )
> which doesn't seem to work for me.
How does it not work?
> Looking to the build/Jamfile for
> boost.test I find syntax such as the following:
>
> template boost_test_lib
> ## sources ##
> :
> ## requirements ##
> ## default build ##
> : <threading>single/multi <runtime-link>static/dynamic
> ;
I'd say that's a bug, and it's specifying the requirements and not the
default build.
> lib boost_prg_exec_monitor : <template>boost_test_lib
> ../src/$(PRG_EXEC_MON_SOURCES).cpp ;
>
> Note the absence of the colon (":") character before ##sources. At the very
> least it seems that that the documentation is out of sync with the
> definition of template rule.
Or that particular example is buggy ;-) The templates defined for
building Boost.Threads is correct though. So perhaps you should look at
those.
> If I locate to the test/build directory and invoke bjam I get:
>
> $ bjam -d5 -sTOOLS=vc-7_1 debug >bjam.log
[snip]
> made+ nofind debug
> ...found 1 target...
> ...can't find 1 target...
> $
>
> That is, it doesn't seem to work either.
Because of the above mentioned bug.
> Adjusting my Jamfile in accordance with example illustrated by
> boost.test/build fails to make my build function.
ditto :-)
> Anyone is free to offer advice.
Look at Boost.Threads.
-- -- Grafik - Don't Assume Anything -- Redshift Software, Inc. - http://redshift-software.com -- rrivera/acm.org - grafik/redshift-software.com - 102708583/icq
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