#
# Copyright (c) 2003 Boost.Test contributors
#
# 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 ;
using doxygen ;
using boostbook ;

########################################################################
# Standalone HTML documentation

import doxygen ;

doxygen doxygen_reference_generated_doc
    :
      $(BOOST_ROOT)/libs/test/include/boost/test/debug_config.hpp
      $(BOOST_ROOT)/libs/test/include/boost/test/detail/global_typedef.hpp      
      $(BOOST_ROOT)/libs/test/include/boost/test/debug.hpp
      $(BOOST_ROOT)/libs/test/include/boost/test/execution_monitor.hpp
      $(BOOST_ROOT)/libs/test/include/boost/test/framework.hpp
      $(BOOST_ROOT)/libs/test/include/boost/test/tools/assertion_result.hpp
      $(BOOST_ROOT)/libs/test/include/boost/test/unit_test.hpp
      $(BOOST_ROOT)/libs/test/include/boost/test/tree/observer.hpp

      # logs and formatters
      $(BOOST_ROOT)/libs/test/include/boost/test/unit_test_log.hpp
      $(BOOST_ROOT)/libs/test/include/boost/test/output/xml_log_formatter.hpp
      $(BOOST_ROOT)/libs/test/include/boost/test/output/plain_report_formatter.hpp
      $(BOOST_ROOT)/libs/test/include/boost/test/output/compiler_log_formatter.hpp

      # reports
      $(BOOST_ROOT)/libs/test/include/boost/test/output/xml_report_formatter.hpp
      $(BOOST_ROOT)/libs/test/include/boost/test/unit_test_log_formatter.hpp
      $(BOOST_ROOT)/libs/test/include/boost/test/results_reporter.hpp
      $(BOOST_ROOT)/libs/test/include/boost/test/results_collector.hpp

      # progress monitor
      $(BOOST_ROOT)/libs/test/include/boost/test/progress_monitor.hpp

      # test cases and suites
      $(BOOST_ROOT)/libs/test/include/boost/test/tree/test_unit.hpp
      $(BOOST_ROOT)/libs/test/include/boost/test/parameterized_test.hpp

      # execution monitor source files
      $(BOOST_ROOT)/libs/test/include/boost/test/execution_monitor.hpp

      # output test stream
      $(BOOST_ROOT)/libs/test/include/boost/test/tools/output_test_stream.hpp

      # datasets
      $(BOOST_ROOT)/libs/test/include/boost/test/data/monomorphic/fwd.hpp
      $(BOOST_ROOT)/libs/test/include/boost/test/data/test_case.hpp
      $(BOOST_ROOT)/libs/test/include/boost/test/data/for_each_sample.hpp
      $(BOOST_ROOT)/libs/test/include/boost/test/data/size.hpp
      $(BOOST_ROOT)/libs/test/include/boost/test/data/monomorphic/delayed.hpp
      $(BOOST_ROOT)/libs/test/include/boost/test/data/monomorphic/initializer_list.hpp
      $(BOOST_ROOT)/libs/test/include/boost/test/data/monomorphic/array.hpp
      $(BOOST_ROOT)/libs/test/include/boost/test/data/monomorphic/collection.hpp
      $(BOOST_ROOT)/libs/test/include/boost/test/data/monomorphic/generate.hpp


      $(BOOST_ROOT)/libs/test/include/boost/test/data/monomorphic/grid.hpp
      $(BOOST_ROOT)/libs/test/include/boost/test/data/monomorphic/join.hpp
      $(BOOST_ROOT)/libs/test/include/boost/test/data/monomorphic/singleton.hpp
      $(BOOST_ROOT)/libs/test/include/boost/test/data/monomorphic/zip.hpp

      # datasets generators
      $(BOOST_ROOT)/libs/test/include/boost/test/data/config.hpp
      $(BOOST_ROOT)/libs/test/include/boost/test/data/monomorphic/generators.hpp
      $(BOOST_ROOT)/libs/test/include/boost/test/data/monomorphic/generators/keywords.hpp
      $(BOOST_ROOT)/libs/test/include/boost/test/data/monomorphic/generators/random.hpp
      $(BOOST_ROOT)/libs/test/include/boost/test/data/monomorphic/generators/xrange.hpp

      # utils
      $(BOOST_ROOT)/libs/test/include/boost/test/utils/algorithm.hpp
      $(BOOST_ROOT)/libs/test/include/boost/test/utils/named_params.hpp
      $(BOOST_ROOT)/libs/test/include/boost/test/tools/floating_point_comparison.hpp
      $(BOOST_ROOT)/libs/test/include/boost/test/utils/is_forward_iterable.hpp

      # BOOST_TEST related functions
      $(BOOST_ROOT)/libs/test/include/boost/test/tools/detail/bitwise_manip.hpp
      $(BOOST_ROOT)/libs/test/include/boost/test/tools/detail/lexicographic_manip.hpp
      $(BOOST_ROOT)/libs/test/include/boost/test/tools/detail/per_element_manip.hpp
      $(BOOST_ROOT)/libs/test/include/boost/test/tools/detail/tolerance_manip.hpp

      # others
      $(BOOST_ROOT)/libs/test/include/boost/test/unit_test_parameters.hpp
    :
        <doxygen:param>EXTRACT_ALL=YES
        <doxygen:param>"PREDEFINED=\"BOOST_TEST_DECL=\" \\
                                   \"BOOST_TEST_DOXYGEN_DOC__=1\"
                                   "
        <doxygen:param>HIDE_UNDOC_MEMBERS=NO
        <doxygen:param>AUTOLINK_SUPPORT=YES
        <doxygen:param>HIDE_UNDOC_CLASSES=NO
        <doxygen:param>INLINE_INHERITED_MEMB=YES
        <doxygen:param>EXTRACT_PRIVATE=NO
        <doxygen:param>ENABLE_PREPROCESSING=YES
        <doxygen:param>MACRO_EXPANSION=YES
        <doxygen:param>EXPAND_ONLY_PREDEF=YES
        <doxygen:param>SEARCH_INCLUDES=YES
        <doxygen:param>INCLUDE_PATH=$(BOOST_ROOT)/libs/test/include
        <doxygen:param>EXAMPLE_PATH=$(BOOST_ROOT)/libs/test/doc/examples
        <doxygen:param>BRIEF_MEMBER_DESC=YES
        <doxygen:param>REPEAT_BRIEF=YES
        <doxygen:param>ALWAYS_DETAILED_SEC=YES
        <doxygen:param>MULTILINE_CPP_IS_BRIEF=YES
        <doxygen:param>CASE_SENSE_NAMES=YES
        <doxygen:param>INTERNAL_DOCS=NO
        <doxygen:param>SUBGROUPING=YES
        <doxygen:param>SHORT_NAMES=YES
    ;



########################################################################
# HTML documentation for $(BOOST_ROOT)/doc/html

xml test_doc
  :
    test.qbk
  ;

explicit test_doc ;

path-constant images_location : html ;

boostbook standalone
  :
    test_doc
  :
    <xsl:param>boost.root=../../../..
    <xsl:param>html.stylesheet=boostbook.css
    <xsl:param>chapter.autolabel=0
    <xsl:param>toc.max.depth=3
    <xsl:param>toc.section.depth=10
    <xsl:param>chunk.section.depth=4
    <xsl:param>chunk.first.sections=1
    <xsl:param>generate.section.toc.level=3
    <format>pdf:<xsl:param>img.src.path=$(images_location)/
    <format>pdf:<xsl:param>boost.url.prefix=http://www.boost.org/doc/libs/release/libs/test/doc/html
    <dependency>doxygen_reference_generated_doc
  ;

explicit test ;

###############################################################################
alias boostdoc ;
explicit boostdoc ;
alias boostrelease : standalone ;
explicit boostrelease ;
