|
Boost-Build : |
Subject: Re: [Boost-build] Can I force a property to be propagated?
From: Vladimir Prus (ghost_at_[hidden])
Date: 2010-01-21 12:54:17
On Thursday 21 January 2010 19:42:33 John Maddock wrote:
> > 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
Well, if you force target named 'date_time_docs' to be always generated to
directory 'bin2', regardless of properties, then you get clash between
pdf and non-pdf builds.
Could you let please pick one parameter you need to apply when building one
targets, and I'll try to adjust docs/pdf jamfile to do so, and then pass
it back to you for further adjustments?
- Volodya
> <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.
>
> _______________________________________________
> Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build
>
- Volodya
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