Jamfile.v2 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. # Copyright Eric Niebler 2007. Use, modification, and distribution are
  2. # subject to the Boost Software License, Version 1.0. (See accompanying
  3. # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  4. import os ;
  5. import path ;
  6. import quickbook ;
  7. import boostbook ;
  8. local admon-graphics-path = [ path.join [ boostbook.docbook-xsl-dir ] images ] ;
  9. local callout-graphics-path = [ path.join $(admon-graphics-path) callouts ] ;
  10. admon-graphics-path = [ path.native $(admon-graphics-path)/ ] ;
  11. callout-graphics-path = [ path.native $(callout-graphics-path)/ ] ;
  12. if [ os.name ] = CYGWIN
  13. {
  14. admon-graphics-path = $(admon-graphics-path:W) ;
  15. callout-graphics-path = $(callout-graphics-path:W) ;
  16. admon-graphics-path = $(admon-graphics-path:T) ;
  17. callout-graphics-path = $(callout-graphics-path:T) ;
  18. }
  19. xml proto
  20. :
  21. proto.qbk
  22. ;
  23. boostbook standalone
  24. :
  25. proto
  26. :
  27. <xsl:param>boost.root=../../../..
  28. # HTML options first:
  29. # Use graphics not text for navigation:
  30. <xsl:param>navig.graphics=1
  31. # How far down we chunk nested sections, basically all of them:
  32. <xsl:param>chunk.section.depth=10
  33. # Don't put the first section on the same page as the TOC:
  34. <xsl:param>chunk.first.sections=1
  35. # How far down sections get TOC's
  36. <xsl:param>toc.section.depth=10
  37. # Max depth in each TOC:
  38. <xsl:param>toc.max.depth=4
  39. # How far down we go with TOC's
  40. <xsl:param>generate.section.toc.level=10
  41. # Set the path to the boost-root so we find our graphics:
  42. #<xsl:param>boost.root=$(BOOST_ROOT)
  43. # location of the main index file so our links work:
  44. #<xsl:param>boost.libraries=$(BOOST_ROOT)/libs/libraries.htm
  45. # PDF Options:
  46. # TOC Generation: this is needed for FOP-0.9 and later:
  47. # <xsl:param>fop1.extensions=1
  48. <format>pdf:<xsl:param>fop1.extensions=0
  49. <format>pdf:<xsl:param>xep.extensions=1
  50. # TOC generation: this is needed for FOP 0.2, but must not be set to zero for FOP-0.9!
  51. <format>pdf:<xsl:param>fop.extensions=0
  52. # No indent on body text:
  53. <format>pdf:<xsl:param>body.start.indent=0pt
  54. # Margin size:
  55. <format>pdf:<xsl:param>page.margin.inner=0.5in
  56. # Margin size:
  57. <format>pdf:<xsl:param>page.margin.outer=0.5in
  58. # Yes, we want graphics for admonishments:
  59. <format>pdf:<xsl:param>admon.graphics=1
  60. # Set this one for PDF generation *only*:
  61. # default png graphics are awful in PDF form,
  62. # better use SVG's instead:
  63. #<format>pdf:<xsl:param>admon.graphics.extension=".svg"
  64. #<format>pdf:<xsl:param>admon.graphics.path="$(admon-graphics-path)"
  65. #<format>pdf:<xsl:param>callout.graphics.path="$(callout-graphics-path)"
  66. <format>pdf:<xsl:param>boost.url.prefix=http://www.boost.org/doc/libs/release/doc/html
  67. ;
  68. ###############################################################################
  69. alias boostdoc
  70. : proto
  71. :
  72. :
  73. : ;
  74. explicit boostdoc ;
  75. alias boostrelease ;
  76. explicit boostrelease ;