Boost logo

Boost-Build :

Subject: Re: [Boost-build] Can I force a property to be propagated?
From: John Maddock (john_at_[hidden])
Date: 2010-01-21 11:42:33


> Would it be possible to use some technique similar to this:
>
> ---
> project foobar ;
>
> exe test : main.cpp ;
>
> # NOTE: We need to specify location here in order to avoid
> # the "duplicate targets" problem.
> #
> alias test2 : test/<location>bin2/<define>FOOBAR=2 ; # or
> <xsl-param>something
>
> install bin
> :
> test2
> ;
> ---
>
> I know it's not literally what you're looking for, but you might be able
> to
> adapt it to your needs.

I tried adding:

alias date_time_docs : ../../libs/date_time/xmldoc//date_time/<location>bin2
:
        <format>pdf:<xsl:param>xep.extensions=1
        <format>pdf:<xsl:param>fop.extensions=0
        <format>pdf:<xsl:param>fop1.extensions=0

;

to doc/pdf/Jamfile.v2 but got a whole load of bbv2 errors:

D:/data/boost/branches/release/tools/build/v2/build\virtual-target.jam:1066:
in virtual-target.register-actual-name from module virtual-target
error: Duplicate name of actual target: <pbin2>date_time.docbook
error: previous virtual target {
boostbook%boostbook.boostbook-to-docbook-date_time.docbook.DOCBOOK {
date_time.xml.XML } }
error: created from ../../libs/date_time/xmldoc/date_time
error: another virtual target {
boostbook%boostbook.boostbook-to-docbook-date_time.docbook.DOCBOOK {
date_time.xml.XML } }
error: created from ../../libs/date_time/xmldoc/date_time
error: added properties: <format>pdf
<xsl:param>boost.url.prefix=http://www.boost.org/doc/libs/release/doc/html
error: removed properties: <format>html
D:/data/boost/branches/release/tools/build/v2/build\virtual-target.jam:490:
in actualize-no-scanner from module object(file-target)@2681
D:/data/boost/branches/release/tools/build/v2/build\virtual-target.jam:135:
in object(file-target)@2681.actualize from module object(file-target)@2681
D:/data/boost/branches/release/tools/build/v2/build\virtual-target.jam:798:
in actualize-source-type from module object(action)@2683
D:/data/boost/branches/release/tools/build/v2/build\virtual-target.jam:819:
in actualize-sources from module object(action)@2683
D:/data/boost/branches/release/tools/build/v2/build\virtual-target.jam:759:
in object(action)@2683.actualize from module object(action)@2683

// etc.

John.


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