2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-15 13:02:11 +00:00

boostbook-base-style feature for boostbook.

[SVN r75928]
This commit is contained in:
Daniel James
2011-12-12 23:07:53 +00:00
parent 1ca8db235b
commit dadcde220e
2 changed files with 13 additions and 2 deletions

View File

@@ -15,7 +15,7 @@ boostbook userman : src/standalone.xml
<implicit-dependency>jam_docs
<dependency>jam_docs
<xsl:param>boost.root=../../../../..
<xsl:param>boost.defaults=Boost
<boostbook-base-style>Boost
;
xml jam_docs : bjam.qbk ;

View File

@@ -54,6 +54,11 @@ project boostbook ;
feature.feature format : html xhtml htmlhelp onehtml man pdf ps docbook fo tests
: incidental implicit composite propagated ;
# <boostbook-base-style> sets some default style parameters in
# the boostbook xsl stylesheets. Search for boost.defaults in
# the stylesheets for more info.
feature.feature boostbook-base-style : none Boost : incidental ;
type.register DTDXML : dtdxml ;
type.register XML : xml ;
type.register BOOSTBOOK : boostbook : XML ;
@@ -618,7 +623,13 @@ class boostbook-generator : generator
case ps : type = PS ;
case tests : type = TESTS ;
}
local style = [ $(property-set).get <boostbook-base-style> ] ;
if $(style) {
property-set = [ $(property-set).add-raw
<xsl:param>boost.defaults=$(style) ] ;
}
if $(manifest)
{
# Create DOCBOOK file from BOOSTBOOK sources.