• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#
2# Copyright (c) 2003-2021 Christopher M. Kohlhoff (chris at kohlhoff dot com)
3#
4# Distributed under the Boost Software License, Version 1.0. (See accompanying
5# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6#
7
8using quickbook ;
9
10########################################################################
11# Standalone HTML documentation
12
13xml standalone_doc
14  :
15    asio.qbk
16  ;
17
18install images
19  :
20    overview/proactor.png
21    overview/sync_op.png
22    overview/async_op1.png
23    overview/async_op2.png
24  :
25    <location>html/boost_asio
26  ;
27
28local example-names = cpp03/allocation cpp03/buffers cpp03/chat cpp03/echo
29  cpp03/fork cpp03/http/client cpp03/http/server cpp03/http/server2
30  cpp03/http/server3 cpp03/http/server4 cpp03/icmp cpp03/invocation
31  cpp03/iostreams cpp03/local cpp03/multicast cpp03/nonblocking cpp03/porthopper
32  cpp03/serialization cpp03/services cpp03/socks4 cpp03/spawn cpp03/ssl
33  cpp03/timeouts cpp03/timers cpp03/windows cpp11/allocation cpp11/buffers
34  cpp11/chat cpp11/echo cpp11/executors cpp11/fork cpp11/futures
35  cpp11/handler_tracking cpp11/http/server cpp11/invocation cpp11/local
36  cpp11/multicast cpp11/nonblocking cpp11/operations cpp11/socks4 cpp11/ssl
37  cpp11/timeouts cpp11/timers cpp11/spawn cpp14/operations cpp17/coroutines_ts ;
38
39for local l in $(example-names)
40{
41  install ex_$(l) : [ glob ../example/$(l)/*.*pp ] : <location>html/boost_asio/example/$(l) ;
42}
43
44boostbook standalone
45  :
46    standalone_doc
47  :
48    <xsl:param>boost.root=../../../..
49    <xsl:param>chapter.autolabel=0
50    <xsl:param>chunk.section.depth=8
51    <xsl:param>chunk.first.sections=1
52    <xsl:param>toc.section.depth=2
53    <xsl:param>toc.max.depth=1
54    <xsl:param>generate.section.toc.level=1
55    <xsl:param>generate.toc="chapter nop section nop"
56    <format>pdf:<xsl:param>boost.url.prefix=http://www.boost.org/doc/libs/release/libs/asio/doc/html
57  ;
58
59########################################################################
60# HTML documentation for $(BOOST_ROOT)/doc/html
61
62xml asio_doc
63  :
64    asio.qbk
65  ;
66
67explicit asio_doc ;
68
69install asio_doc_images
70  :
71    overview/proactor.png
72    overview/sync_op.png
73    overview/async_op1.png
74    overview/async_op2.png
75  :
76    <location>$(BOOST_ROOT)/doc/html/boost_asio
77  ;
78
79explicit asio_doc_images ;
80
81for local l in $(example-names)
82{
83  install asio_ex_$(l) : [ glob ../example/$(l)/*.*pp ] : <location>$(BOOST_ROOT)/doc/html/boost_asio/example/$(l) ;
84  explicit asio_ex_$(l) ;
85}
86
87alias asio_examples : asio_ex_$(example-names) ;
88
89explicit asio_examples ;
90
91path-constant images_location : ../../../doc/html ;
92
93boostbook asio
94  :
95    asio_doc
96  :
97    <name>../../../doc/html
98    <xsl:param>chapter.autolabel=0
99    <xsl:param>chunk.section.depth=8
100    <xsl:param>chunk.first.sections=1
101    <xsl:param>toc.section.depth=2
102    <xsl:param>toc.max.depth=1
103    <xsl:param>generate.section.toc.level=1
104    <xsl:param>generate.toc="chapter nop section nop"
105    <xsl:param>root.filename=boost_asio
106    <format>pdf:<xsl:param>img.src.path=$(images_location)/
107    <format>pdf:<xsl:param>boost.url.prefix=http://www.boost.org/doc/libs/release/libs/asio/doc/html
108  :
109    <dependency>asio_doc_images
110    <dependency>asio_examples
111  ;
112
113explicit asio ;
114
115###############################################################################
116alias boostdoc ;
117explicit boostdoc ;
118alias boostrelease : asio ;
119explicit boostrelease ;
120