# Boost.Geometry (aka GGL, Generic Geometry Library)
#
# Copyright (c) 2007-2012 Barend Gehrels, Amsterdam, the Netherlands.
# Copyright (c) 2008-2012 Bruno Lalande, Paris, France.
# Copyright (c) 2009-2012 Mateusz Loskot, London, UK.

# Use, modification and distribution is subject to 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)

project geometry/doc ;

# Auto-index, experimental. Commented otherwise does not build without.
#using auto-index ; 
using quickbook ;

path-constant here : . ;
path-constant images_location : html ;

import testing ;
testing.make-test run-pyd :
    $(here)/make_qbk.py
    :
    <pythonpath>$(here)
    <dependency>src/docutils/tools/doxygen_xml2qbk//doxygen_xml2qbk
    <testing.arg>"--release-build --doxygen-xml2qbk"
    <testing.input-file>src/docutils/tools/doxygen_xml2qbk//doxygen_xml2qbk
    :
    make_qbk ;
explicit make_qbk ;

boostbook geometry 
    : geometry.qbk
    : <dependency>Jamfile
        <dependency>quickref.xml
#        <dependency>generated/point.qbk
        <xsl:param>chunk.section.depth=4
#    <auto-index>off
#    <auto-index-internal>on
#    <auto-index-verbose>off
#    <xsl:param>index.on.type=1
#       <format>html
       <xsl:param>chunk.first.sections=1
       <xsl:param>toc.section.depth=3
       <xsl:param>toc.max.depth=2
       <xsl:param>generate.section.toc.level=4
       <xsl:param>boost.root=../../../..
       <quickbook-define>enable_index
       <include>$(here)
       <format>pdf:<xsl:param>img.src.path=$(images_location)/    
       <dependency>make_qbk
;

install pdfinstall : geometry/<format>pdf : <location>. <name>geometry.pdf <install-type>PDF ;
explicit pdfinstall ;

###############################################################################
alias boostdoc ;
explicit boostdoc ;
alias boostrelease : geometry ;
explicit boostrelease ;
