Jamfile 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. #==============================================================================
  2. # Copyright (c) 2001-2011 Joel de Guzman
  3. # Copyright (c) 2001-2011 Hartmut Kaiser
  4. #
  5. # Use, modification and distribution is subject to the Boost Software
  6. # License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
  7. # http://www.boost.org/LICENSE_1_0.txt)
  8. #==============================================================================
  9. project spirit/doc ;
  10. import boostbook ;
  11. import quickbook ;
  12. import modules ;
  13. path-constant here : . ;
  14. if --enable-index in [ modules.peek : ARGV ]
  15. {
  16. ECHO "Building the Spirit docs with automatic index generation enabled." ;
  17. using auto-index ;
  18. project : requirements
  19. <quickbook-define>__use_auto_index__
  20. <auto-index>on
  21. <auto-index-script>$(here)/index.idx
  22. <format>pdf:<auto-index-internal>off
  23. <format>html:<auto-index-internal>on
  24. <xsl:param>index.on.type=1
  25. ;
  26. }
  27. else
  28. {
  29. ECHO "Building the Spirit docs with automatic index generation disabled. Try building with --enable-index." ;
  30. }
  31. path-constant images_location : html ;
  32. boostbook spirit2
  33. :
  34. spirit2.qbk
  35. :
  36. <xsl:param>boost.root=../../../..
  37. <xsl:param>chunk.section.depth=4
  38. <xsl:param>chunk.first.sections=1
  39. <xsl:param>toc.section.depth=3
  40. <xsl:param>toc.max.depth=3
  41. <xsl:param>generate.section.toc.level=4
  42. <format>html:<xsl:param>admon.graphics.path=images/
  43. <include>.
  44. <format>pdf:<xsl:param>img.src.path=$(images_location)/
  45. <format>pdf:<xsl:param>draft.mode="no"
  46. <format>pdf:<xsl:param>"boost.url.prefix=http://www.boost.org/doc/libs/release/libs/spirit/doc/html"
  47. ;
  48. ###############################################################################
  49. alias boostdoc ;
  50. explicit boostdoc ;
  51. alias boostrelease
  52. :
  53. spirit2
  54. ../repository/doc//spirit2_repository
  55. x3//spirit_x3
  56. ;
  57. explicit boostrelease ;