|
Boost-Build : |
From: Christopher Currie (Christopher_at_[hidden])
Date: 2004-02-05 16:16:47
Rene Rivera wrote:
> When you are more confident in the format of the XML could do me the
> favor of doing a sample conversion of the HTML produced by the --help
> facility (one small module would be more than sufficient). Having that
> would make it very easy for me to add code to then generate the inline
> help in BoostBook XML format.
I've attached the original output of 'bjam --help-output html --help
stage', and a sample BoostBook conversion. There's lots of potential for
interpretation though; Docbook supports a lot of markup that I didn't
use for the sake of an easier conversion.
Christopher
--------------070903090803020800060505 Content-Type: text/html;
name="help.html"
Content-Transfer-Encoding: base64
Content-Disposition: inline;
filename="help.html"
PCFET0NUWVBFIGh0bWwgUFVCTElDICItLy9XM0MvL0RURCBIVE1MIDQuMDEgVHJhbnNpdGlv
bmFsLy9FTiI+CjxodG1sPgo8aGVhZD4KPC9oZWFkPgo8Ym9keSBsaW5rPSIjMDAwMGZmIiB2
bGluaz0iIzgwMDA4MCI+CjxoMz5Nb2R1bGUgJ3N0YWdlJzwvaDM+CjxwPgo8L3A+CjxwPgog
VGhpcyBtb2R1bGUgZGVmaW5lcyB0aGUgJ3N0YWdlJyBydWxlLCB1c2VkIHRvIGNvcHkgYSBz
ZXQgb2YgdGFyZ2V0cyB0bwogYSBzaW5nbGUgbG9jYXRpb24KPC9wPgo8cD4KIFR5cGljYWwg
dXNhZ2U6CjwvcD4KPHA+CiBzdGFnZSBkaXN0IDogaGVsbG9fd29ybGQgOiAmbHQ7bG9jYXRp
b24mZ3Q7L3Vzci9iaW4gOwo8L3A+CjxwPgogVGhlIHNvdXJjZSB0YXJnZXQgd2lsbCBiZSBj
b3BpZWQgdG8gdGhlIHNwZWNpZmllZCBsb2NhdGlvbi4gU29tZSB0YXJnZXRzIHdpbGwKIHdl
IHNwZWNpYWxseSBwcm9jZXNzZWQuIEluIHBhcnRpY3VsYXIsIGJpbmFyaWVzIHdpbGwgYmUg
cmVsaW5rZWQuIEZyZWUgcHJvcGVydGllcwogZnJvbSBzdGFnZSBkaXN0IHdpbGwgYmU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0cyBpdCBiYXNlZCBvbiB0
aGUgcHJvamVjdCBkYXRhLgo8L2xpPgo8L3VsPgo8L2JvZHk+CjwvaHRtbD4K
--------------070903090803020800060505 Content-Type: text/xml;
name="help.xml"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="help.xml"
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//Boost//DTD BoostBook XML V1.0//EN"
"http://www.boost.org/tools/boostbook/dtd/boostbook.dtd">
<article>
<!-- your html had no title, but it's required in Docbook -->
<title/>
<section>
<title>Module 'stage'</title>
<para>This module defines the 'stage' rule, used to copy a set of
targets to a single location</para>
<para>Typical usage:</para>
<para>stage dist : hello_world : <location>/usr/bin ;</para>
<para>The source target will be copied to the specified location.
Some targets will we specially processed. In particular, binaries
will be relinked. Free properties from stage dist will be
included to properties used for relinking. For example</para>
<para>stage dist : hello_world : <location>/usr/bin
<dll-path>/opt/lib ;</para>
<para>will cause 'hello_world' to be relinked to the new location,
and <dll-path> property will be added when relinking.</para>
<para>Two properties specifically control 'stage' rule.</para>
<para>- <location> tells where to put targets. If not
specified, directory with the same name as stage name will be
used.</para>
<para>- <name> tells the new name of the staged target. In
this case, only one target can be specified in sources.</para>
<para>The stage rule can also traverse dependencies, for example to
install a program an all required libraries. Two properties
affect this.</para>
<para>- <traverse-dependencies>on tells that dependencies
should be traversed. For each target in 'stage' sources, all
sources to that target and all dependency properties are
traversed. Sources and dependecy properties of those target are
traversed recursively.</para>
<para>- <include-type>SOME_TYPE tells that targets of
SOME_TYPE or a type derived from SOME_TYPE, should be included.
If no such property is specified, then all found targets will be
staged. Otherwise, only targets with types mentioned in
<include-type> property will be included.</para>
<para>Example usage:</para>
<!-- Most HTML entities (like &nsbp;) are not supported. Luckily,
<programlisting> has <pre>-like semantics, so is not
necessary -->
<programlisting>
stage dist : hello_world :
<traverse-dependencies>on <include-type>EXE <include-type>SHARED_LIB ;
</programlisting>
</section>
<section>
<title>Module 'stage' classes</title>
<para>Use --help stage.<class-name> to get more
information.</para>
<!-- listitem doesn't accept #CDATA, must be wrapped in a block
element (such as para or simpara) -->
<itemizedlist>
<listitem><simpara>stage-exe-generator:</simpara></listitem>
<listitem><simpara>stage-target-class:</simpara></listitem>
</itemizedlist>
</section>
<section>
<title>Module 'stage' rules</title>
<para>Use --help stage.<rule-name> to get more
information.</para>
<itemizedlist>
<listitem><simpara>check-for-unused-sources: Don't do nothing.</simpara></listitem>
<listitem><simpara>construct-regular-targets: Constructs the targets of types
for which there is no STAGED_* type.</simpara></listitem>
<listitem><simpara>construct-special-targets: Constructs the targets of types
for which a type exists with the form STAGED_*.</simpara></listitem>
<listitem><simpara>stage: Declares a stage target.</simpara></listitem>
<listitem><simpara>update-location: If <location> is not set, sets it
based on the project data.</simpara></listitem>
</itemizedlist>
</section>
</article>
--------------070903090803020800060505--
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