2016-01-07 12:50:26 -06:00
|
|
|
# Copyright Rene Rivera 2011-2016
|
2011-11-19 03:46:41 +00:00
|
|
|
# Distributed under the Boost Software License, Version 1.0.
|
|
|
|
|
# (See accompanying file LICENSE_1_0.txt or copy at
|
|
|
|
|
# http://www.boost.org/LICENSE_1_0.txt)
|
|
|
|
|
|
|
|
|
|
using quickbook ;
|
2014-05-30 22:14:44 -05:00
|
|
|
using boostbook ;
|
2012-07-15 03:37:23 +00:00
|
|
|
import path ;
|
2011-11-19 03:46:41 +00:00
|
|
|
|
|
|
|
|
if ! $(BOOST_ROOT)
|
|
|
|
|
{
|
|
|
|
|
BOOST_ROOT = [ modules.peek : BOOST_ROOT ] ;
|
|
|
|
|
}
|
|
|
|
|
|
2013-07-28 12:07:05 -05:00
|
|
|
if $(BOOST_PREDEF_ROOT)
|
|
|
|
|
{
|
|
|
|
|
path-constant BOOST_PREDEF_INCLUDE_ROOT : $(BOOST_PREDEF_ROOT)/include ;
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
path-constant BOOST_PREDEF_INCLUDE_ROOT : $(BOOST_ROOT) ;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
local BOOST_PREDEF_HEADERS = [ path.glob-tree $(BOOST_PREDEF_INCLUDE_ROOT)/boost/predef : *.h ] ;
|
2012-07-15 03:37:23 +00:00
|
|
|
|
2016-01-07 12:50:26 -06:00
|
|
|
# Intermediate targets..
|
|
|
|
|
|
|
|
|
|
# Quickbok to boostbook target.
|
2011-11-19 03:46:41 +00:00
|
|
|
xml predef
|
|
|
|
|
:
|
|
|
|
|
predef.qbk
|
2011-11-30 05:54:23 +00:00
|
|
|
:
|
2013-07-28 12:07:05 -05:00
|
|
|
<dependency>$(BOOST_PREDEF_INCLUDE_ROOT)/boost/predef.h
|
2012-07-15 03:37:23 +00:00
|
|
|
<dependency>$(BOOST_PREDEF_HEADERS)
|
2011-11-19 03:46:41 +00:00
|
|
|
;
|
|
|
|
|
explicit predef ;
|
|
|
|
|
|
2016-01-07 12:50:26 -06:00
|
|
|
# HTML dependencies for standalone docs.
|
|
|
|
|
install images : [ glob $(BOOST_ROOT)/doc/src/images/*.png ] : <location>html/images ;
|
|
|
|
|
explicit images ;
|
|
|
|
|
install callouts : [ glob $(BOOST_ROOT)/doc/src/images/callouts/*.png ] : <location>html/images/callouts ;
|
|
|
|
|
explicit callouts ;
|
|
|
|
|
install css : [ glob $(BOOST_ROOT)/doc/src/*.css ] : <location>html ;
|
|
|
|
|
explicit css ;
|
|
|
|
|
|
|
|
|
|
# Default target builds standalone docs.
|
2011-11-19 03:46:41 +00:00
|
|
|
boostbook standalone
|
|
|
|
|
:
|
|
|
|
|
predef
|
|
|
|
|
:
|
2016-03-03 10:23:22 -06:00
|
|
|
<xsl:param>boost.root=../../../..
|
2011-11-30 05:54:23 +00:00
|
|
|
#<xsl:param>generate.section.toc.level=3
|
2013-01-10 23:23:37 -06:00
|
|
|
<xsl:param>chunk.section.depth=2
|
2011-11-19 03:46:41 +00:00
|
|
|
<xsl:param>chunk.first.sections=1
|
|
|
|
|
|
|
|
|
|
<dependency>images
|
|
|
|
|
<dependency>callouts
|
|
|
|
|
<dependency>css
|
|
|
|
|
;
|
|
|
|
|
|
2016-07-19 10:29:25 -05:00
|
|
|
###############################################################################
|
|
|
|
|
### Targets for Boost release integration.
|
|
|
|
|
###############################################################################
|
|
|
|
|
|
2016-01-07 12:50:26 -06:00
|
|
|
# Target for Boost global documentation integration.
|
2016-07-19 10:29:25 -05:00
|
|
|
#
|
|
|
|
|
# For documentation that will be integrated into the global documentation
|
|
|
|
|
# this should be an alias similar to:
|
|
|
|
|
#
|
|
|
|
|
# alias boostdoc : my_lib : : : <implicit-dependency>my_lib_boostbook_xml ;
|
|
|
|
|
# explicit boostdoc ;
|
|
|
|
|
#
|
|
|
|
|
# For documentation that is not part of the global documentation, i.e.
|
|
|
|
|
# it has stadalone documentation, it should be an empty alias:
|
|
|
|
|
#
|
|
|
|
|
# alias boostdoc ;
|
|
|
|
|
# explicit boostdoc ;
|
|
|
|
|
#
|
2016-10-07 23:07:35 -05:00
|
|
|
alias boostdoc : predef ;
|
2016-01-07 12:50:26 -06:00
|
|
|
explicit boostdoc ;
|
2016-07-19 10:29:25 -05:00
|
|
|
|
|
|
|
|
# Target for Boost standalone release documentation building.
|
|
|
|
|
#
|
|
|
|
|
# For documentation that is not part of the global Boost documentation
|
|
|
|
|
# this should be an alias to building the "standalone" documentation.
|
|
|
|
|
# Usual this is just an alias to a "stadalone" target:
|
|
|
|
|
#
|
|
|
|
|
# alias boostrelease : stadalone ;
|
|
|
|
|
# explicit boostrelease ;
|
|
|
|
|
#
|
|
|
|
|
# For documentation that is part of the global Boost documentation this
|
|
|
|
|
# should be an empty alias:
|
|
|
|
|
#
|
|
|
|
|
# alias boostrelease ;
|
|
|
|
|
# explicit boostrelease ;
|
|
|
|
|
#
|
|
|
|
|
alias boostrelease ;
|
|
|
|
|
explicit boostrelease ;
|
|
|
|
|
|
|
|
|
|
###############################################################################
|