|
Boost-Build : |
From: Joao Abecasis (jpabecasis_at_[hidden])
Date: 2005-01-28 08:43:19
Vladimir Prus wrote:
> Hi Joao,
>
>
>>Since I didn't get any answers on my previous post, I hereby reiterate
>>my questions.
>
>
> Sorry that it took so long!
No hurries! I was beginning to think maybe this is not exactly a BB
issue... More of a boostbook one. Maybe the documentation list would
have been more appropriate (?).
Anyway I have to say I have been trying out BBv2 and I like what I've seen!
>>I wrote a quickbook toolset to generate boostbook documentation from
>>quickbook sources. The toolset is attached to the original post. I would
>>like to propose the addition of the toolset to BB v2, under the tools
>>directory. Is this ok?
Since no one has objected and since quickbook now lives in the tools
directory I guess that somehow grants me the right to add the toolset to
BB... ;)
>>>boostbook.jam defines the BOOSTBOOK type. However, it's generators
>>>are defined as XML -> <something>. Given this I found 2 ways to make
>>>quickbook work:
>>> a) define generator QUICKBOOK -> XML, which leaves me with the
>>> feeling that the generator is not sufficiently "typed"...
>>>
>>> b) define generators BOOSTBOOK -> DOCBOOK (and BOOSTBOOK -> TESTS)
>>> and QUICKBOOK -> BOOSTBOOK. This seems better, but I shouldn't
>>> be messing with boostbook within the quickbook toolset.
>
>
> That's right. I suggest that you take the same approach that doxygen.jam uses:
> you declare QUICKBOOK -> BOOSTBOOK generator, but do not define any other
> generator. Instead, you add "import bookbook ; " so that the declaration of
> BOOSTBOOK type is seen.
If you look at the toolset I posted initially you'll see that the
"import boostbook ;" call is there, so the BOOSTBOOK type should be
visible. But I don't think that's the issue.
I tried to define only the QUICKBOOK -> BOOSTBOOK generator, figuring BB
would see BOOSTBOOK as an XML type anyway. But, it turns out it doesn't
work that way (attached are the error messages I got trying this approach).
I also took a quick peek at doxygen.jam but it seems to work a bit
differently from what I wanted to do for quickbook. Since quickbook
sources map directly to a single boostbook file, my intent is to have
quickbook files work *as if* they were boostbook files:
boostbook my_docs : source.qbk ;
or (just an alias)
quickbook my_docs : source.qbk ;
QUICKBOOK -> BOOSTBOOK/XML is automatically handled behind the scenes.
>>>Are there other alternatives I am missing? How bad could it be to define
>>>the generator as QUICKBOOK -> XML?
>
>
> I don't think that's all that bad. I suggested another variant only because
> it's consistent with doxygen.jam.
I can settle for QUICKBOOK -> XML. Anyway, I'll give doxygen.jam a
closer look.
BTW, is there a way for the build process to generate the quickbook
executable once with a single compiler and always use that executable,
regardless of the number of compiler toolsets available?
Thanks for your input!
Best regards,
João
--------------030706080908050907060808 Content-Type: text/plain;
name="error-log"
Content-Transfer-Encoding: base64
Content-Disposition: inline;
filename="error-log"
e0JCdjItY3ZzfS90b29scy9ib29zdGJvb2suamFtOjMxNDogaW4gb2JqZWN0KGJvb3N0Ym9v
ay1nZW5lcmF0b3IpQDEucnVuCndhcm5pbmc6IHJ1bGVuYW1lICQoYmFzZS10YXJnZXQpLmRl
cGVuZHMgZXhwYW5kcyB0byBlbXB0eSBzdHJpbmcKe0JCdjItY3ZzfS9idWlsZC9nZW5lcmF0
b3JzLmphbTo4Mjk6IGluIHRyeS1vbmUtZ2VuZXJhdG9yLXJlYWxseQp7QkJ2Mi1jdnN9L2J1
aWxkL2dlbmVyYXRvcnMuamFtOjkwODogaW4gdHJ5LW9uZS1nZW5lcmF0b3IKe0JCdjItY3Zz
fS9idWlsZC9nZW5lcmF0b3JzLmphbToxMTQ3OiBpbiBjb25zdHJ1Y3QtcmVhbGx5CntCQnYy
LWN2c30vYnVpbGQvZ2VuZXJhdG9ycy5qYW06MTIyMTogaW4gZ2VuZXJhdG9ycy5jb25zdHJ1
Y3QKe0JCdjItY3ZzfS9idWlsZC90YXJnZXRzLmphbToxMjMyOiBpbiBjb25zdHJ1Y3QKe0JC
djItY3ZzfS9idWlsZC90YXJnZXRzLmphbToxMTE4OiBpbiBvYmplY3QodHlwZWQtdGFyZ2V0
KUAxLmdlbmVyYXRlCntCQnYyLWN2c30vYnVpbGQvdGFyZ2V0cy5qYW06NzUwOiBpbiBnZW5l
cmF0ZS1yZWFsbHkKe0JCdjItY3ZzfS9idWlsZC90YXJnZXRzLmphbTo3MjM6IGluIG9iam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biBib29zdC1idWlsZAp7QkJ2Mi1jdnN9Ly9ib29zdC1idWlsZC5qYW06
MjogaW4gbW9kdWxlIHNjb3BlCg==
--------------030706080908050907060808--
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