# Copyright (c) 2008 John Maddock
#
# 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)

import boostbook ;
import os ;
import common ;
import doxygen ;
import quickbook ;

project : requirements <include>../../libs/geometry/doc ;






boostbook array_docs 
	: ../../libs/array/doc/array.xml 
	:
        <format>pdf:<xsl:param>boost.url.prefix=http://www.boost.org/doc/libs/release/doc/html
        <format>pdf
	;

boostbook any_docs 
	: ../../libs/any/doc/any.xml 
	:
        <format>pdf:<xsl:param>boost.url.prefix=http://www.boost.org/doc/libs/release/doc/html
        <format>pdf
	;

install pdf-install 
  : 
    array_docs
    any_docs
    ../../libs/align/doc//standalone
    ../../libs/atomic/doc//standalone
    ../../libs/accumulators/doc//standalone 
    ../../libs/algorithm/string/doc//string_algo 
    ../../libs/algorithm/doc//standalone
    ../../libs/bimap/doc//standalone 
    ../../libs/bind/doc//ref-doc 
    ../../libs/chrono/doc//standalone
    ../../libs/concept_check/doc//concepts 
    ../../libs/config/doc//standalone 
    ../../libs/context/doc//context
    ../../libs/core/doc//standalone
    ../../libs/date_time/xmldoc//date_time
    ../../libs/dll/doc//dll-doc 
    ../../libs/foreach/doc//standalone 
    ../../libs/function/doc//function-doc 
#    ../../libs/functional/overloaded_function/doc//doc
    ../../libs/fusion/doc//quickbook
    #../../libs/geometry/doc//geometry
    ../../libs/heap/doc//standalone
    ../../libs/icl/doc//standalone
    ../../libs/integer/doc//standalone
    ../../libs/iterator/doc//standalone
    ../../libs/lambda/doc//lambda-doc
    ../../libs/lockfree/doc//standalone
    ../../libs/lexical_cast/doc//standalone
#    ../../libs/local_function/doc//doc
    ../../libs/logic/doc//tribool
    ../../libs/move/doc//standalone
    ../../libs/mpi/doc//standalone
    ../../libs/numeric/conversion/doc//standalone
#    ../../libs/numeric/odeint/doc//standalone
    ../../libs/optional/doc//standalone
    ../../libs/phoenix/doc//phoenix-doc
    ../../libs/program_options/doc//program_option
    ../../libs/property_tree/doc//standalone
    ../../libs/proto/doc//standalone
    # Invalid Jamfile, doesn't use Boostbook anyway??
    #../../libs/ptr_container/doc//standalone
    ../../libs/ratio/doc//standalone
    ../../libs/random/doc//standalone
    ../../libs/regex/doc//standalone
    ../../libs/spirit/repository/doc//spirit2_repository
    ../../libs/static_assert/doc//standalone
    ../../libs/thread/doc//standalone
    ../../libs/tr1/doc//standalone
    ../../libs/type_index/doc//standalone
    ../../libs/type_traits/doc//pdfinstall
    ../../libs/typeof/doc//standalone
    ../../libs/units/doc//standalone
#    ../../libs/utility/identity_type/doc//doc
    ../../libs/unordered/doc//standalone
    ../../libs/variant/doc//variant-doc
    ../../libs/xpressive/doc//standalone
    ../../libs/utility/doc//standalone_base_from_member
    ../../libs/utility/doc//standalone_compressed_pair
    ../../libs/utility/doc//standalone_declval
    ../../libs/utility/doc//standalone_string_ref

    ../../tools/boostbook/doc//boostbook
    ../../tools/build/doc//jam_docs
    ../../tools/quickbook/doc//standalone
    ../../tools/bcp/doc//standalone
  :
    <location>.
    <install-type>PDF
    <format>pdf
  ;


install python-tutorial-install
  :
    ../../libs/python/doc/tutorial/doc//tutorial
  :
    <location>.
    <install-type>PDF
    <format>pdf
    <name>python_tutorial.pdf
  ;

install asio-install
  :
    ../../libs/asio/doc//asio 
  :
    <location>.
    <install-type>PDF
    <format>pdf
    <name>asio.pdf
  ;

install boost-build-install
  :
    ../../tools/build/doc//userman
  :
    <location>.
    <install-type>PDF
    <format>pdf
    <name>boost_build.pdf
  ;

install signals2-install
  :
    ../../libs/signals2/doc//standalone
  :
    <location>.
    <install-type>PDF
    <format>pdf
    <name>signals2.pdf
    <dependency>../../libs/signals2/doc//hello_world_def_code_snippet.xml
  ;

install range-install
  :
    ../../libs/range/doc//quickbook
  :
    <location>.
    <install-type>PDF
    <format>pdf
    <name>range.pdf
  ;

# Just copy the MSM PDF over:
install msm_install : ../../libs/msm/doc/pdf/msm.pdf : <location>. ;

install spirit-install
   :
      ../../libs/spirit/doc//spirit2
   :
    <location>.
    <install-type>PDF
    <format>pdf
    <name>spirit2.pdf
;

install scope_exit_install
   :
       ../../libs/scope_exit/doc//doc
   :
    <location>.
    <install-type>PDF
    <format>pdf
    <name>scope_exit.pdf
;

install math_install
   :
       ../../libs/math/doc//standalone
   :
    <location>.
    <install-type>PDF
    <format>pdf
    <name>math.pdf
;

install multiprecision_install
   :
       ../../libs/multiprecision/doc//standalone
   :
    <location>.
    <install-type>PDF
    <format>pdf
    <name>multiprecision.pdf
;

install tti_install
   :
           ../../libs/tti/doc//standalone
   :
    <location>.
    <install-type>PDF
    <format>pdf
    <name>TypeTraitsIntrospection.pdf
;

install circular_buffer_install
   :
           ../../libs/circular_buffer/doc//standalone
   :
    <location>.
    <install-type>PDF
    <format>pdf
    <name>circular_buffer.pdf
;


install coroutine_install
   :
               ../../libs/coroutine/doc//coro
   :
    <location>.
    <install-type>PDF
    <format>pdf
    <name>coroutine.pdf
;

install pool_install
   :
               ../../libs/pool/doc//standalone
   :
    <location>.
    <install-type>PDF
    <format>pdf
    <name>pool.pdf
;

install multi_array_install
   :
        ../../libs/multi_array/doc/xml//multi_array-doc
   :
    <location>.
    <install-type>PDF
    <format>pdf
    <name>multi_array.pdf
;

install factory_install
   :
      ../../libs/functional/factory/doc//standalone
   :
    <location>.
    <install-type>PDF
    <format>pdf
    <name>functional_factory.pdf
;

install forward_install
   :
      ../../libs/functional/forward/doc//standalone
   :
    <location>.
    <install-type>PDF
    <format>pdf
    <name>functional_forward.pdf
;

install hash_install
   :
    ../../libs/functional/hash/doc//standalone
   :
    <location>.
    <install-type>PDF
    <format>pdf
    <name>functional_hash.pdf
;

install log_install
   :
    ../../libs/log/doc//log
   :
    <location>.
    <install-type>PDF
    <format>pdf
    <name>log.pdf
;


