|
Boost-Build : |
Subject: Re: [Boost-build] Can I force a property to be propagated?
From: Johan Nilsson (r.johan.nilsson_at_[hidden])
Date: 2010-01-22 03:54:12
Vladimir Prus wrote:
> 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.
Without checking the actual jamfiles; isn't it possible to request a
pdf-only build by somthing along the style of e.g. "bjam pdf" or "bjam
boost-docs format=pdf"?
/ Johan
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