]>
Commit | Line | Data |
---|---|---|
7c673cae | 1 | # |
b32b8144 | 2 | # Copyright (c) 2003-2017 Christopher M. Kohlhoff (chris at kohlhoff dot com) |
7c673cae FG |
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 | ||
8 | import os ; | |
9 | import feature ; | |
10 | ||
11 | if [ os.name ] = SOLARIS | |
12 | { | |
13 | lib socket ; | |
14 | lib nsl ; | |
15 | } | |
16 | else if [ os.name ] = NT | |
17 | { | |
18 | lib ws2_32 ; | |
19 | lib mswsock ; | |
20 | } | |
21 | else if [ os.name ] = HPUX | |
22 | { | |
23 | lib ipv6 ; | |
24 | } | |
25 | else if [ os.name ] = QNXNTO | |
26 | { | |
27 | lib socket ; | |
28 | } | |
29 | else if [ os.name ] = HAIKU | |
30 | { | |
31 | lib network ; | |
32 | } | |
33 | ||
34 | local USE_SELECT = | |
35 | <define>BOOST_ASIO_DISABLE_DEV_POLL | |
36 | <define>BOOST_ASIO_DISABLE_EPOLL | |
37 | <define>BOOST_ASIO_DISABLE_KQUEUE | |
38 | <define>BOOST_ASIO_DISABLE_IOCP | |
39 | ; | |
40 | ||
41 | project | |
42 | : requirements | |
43 | <library>/boost/date_time//boost_date_time | |
44 | <library>/boost/system//boost_system | |
45 | <library>/boost/regex//boost_regex | |
46 | <define>BOOST_ALL_NO_LIB=1 | |
47 | <threading>multi | |
48 | <os>LINUX:<define>_XOPEN_SOURCE=600 | |
49 | <os>LINUX:<define>_GNU_SOURCE=1 | |
50 | <os>SOLARIS:<define>_XOPEN_SOURCE=500 | |
51 | <os>SOLARIS:<define>__EXTENSIONS__ | |
52 | <os>SOLARIS:<library>socket | |
53 | <os>SOLARIS:<library>nsl | |
54 | <os>NT:<define>_WIN32_WINNT=0x0501 | |
55 | <os>NT,<toolset>cw:<library>ws2_32 | |
56 | <os>NT,<toolset>cw:<library>mswsock | |
57 | <os>NT,<toolset>gcc:<library>ws2_32 | |
58 | <os>NT,<toolset>gcc:<library>mswsock | |
59 | <os>NT,<toolset>gcc-cygwin:<define>__USE_W32_SOCKETS | |
60 | <os>HPUX,<toolset>gcc:<define>_XOPEN_SOURCE_EXTENDED | |
61 | <os>HPUX:<library>ipv6 | |
62 | <os>QNXNTO:<library>socket | |
63 | <os>HAIKU:<library>network | |
64 | ; | |
65 | ||
66 | test-suite "asio" : | |
67 | [ link basic_datagram_socket.cpp ] | |
68 | [ link basic_datagram_socket.cpp : $(USE_SELECT) : basic_datagram_socket_select ] | |
69 | [ link basic_deadline_timer.cpp ] | |
70 | [ link basic_deadline_timer.cpp : $(USE_SELECT) : basic_deadline_timer_select ] | |
71 | [ link basic_raw_socket.cpp ] | |
72 | [ link basic_raw_socket.cpp : $(USE_SELECT) : basic_raw_socket_select ] | |
73 | [ link basic_seq_packet_socket.cpp ] | |
74 | [ link basic_seq_packet_socket.cpp : $(USE_SELECT) : basic_seq_packet_socket_select ] | |
75 | [ link basic_signal_set.cpp ] | |
76 | [ link basic_signal_set.cpp : $(USE_SELECT) : basic_signal_set_select ] | |
77 | [ link basic_socket_acceptor.cpp ] | |
78 | [ link basic_socket_acceptor.cpp : $(USE_SELECT) : basic_socket_acceptor_select ] | |
79 | [ link basic_stream_socket.cpp ] | |
80 | [ link basic_stream_socket.cpp : $(USE_SELECT) : basic_stream_socket_select ] | |
81 | [ link basic_streambuf.cpp ] | |
82 | [ link basic_streambuf.cpp : $(USE_SELECT) : basic_streambuf_select ] | |
83 | [ link basic_waitable_timer.cpp ] | |
84 | [ link basic_waitable_timer.cpp : $(USE_SELECT) : basic_waitable_timer_select ] | |
85 | [ run buffer.cpp ] | |
86 | [ run buffer.cpp : : : $(USE_SELECT) : buffer_select ] | |
87 | [ run buffered_read_stream.cpp ] | |
88 | [ run buffered_read_stream.cpp : : : $(USE_SELECT) : buffered_read_stream_select ] | |
89 | [ run buffered_stream.cpp ] | |
90 | [ run buffered_stream.cpp : : : $(USE_SELECT) : buffered_stream_select ] | |
91 | [ run buffered_write_stream.cpp ] | |
92 | [ run buffered_write_stream.cpp : : : $(USE_SELECT) : buffered_write_stream_select ] | |
93 | [ run buffers_iterator.cpp ] | |
94 | [ run buffers_iterator.cpp : : : $(USE_SELECT) : buffers_iterator_select ] | |
95 | [ link completion_condition.cpp ] | |
96 | [ link completion_condition.cpp : $(USE_SELECT) : completion_condition_select ] | |
97 | [ link connect.cpp ] | |
98 | [ link connect.cpp : $(USE_SELECT) : connect_select ] | |
99 | [ link coroutine.cpp ] | |
100 | [ link coroutine.cpp : $(USE_SELECT) : coroutine_select ] | |
101 | [ link datagram_socket_service.cpp ] | |
102 | [ link datagram_socket_service.cpp : $(USE_SELECT) : datagram_socket_service_select ] | |
103 | [ link deadline_timer_service.cpp ] | |
104 | [ link deadline_timer_service.cpp : $(USE_SELECT) : deadline_timer_service_select ] | |
105 | [ run deadline_timer.cpp ] | |
106 | [ run deadline_timer.cpp : : : $(USE_SELECT) : deadline_timer_select ] | |
107 | [ run error.cpp ] | |
108 | [ run error.cpp : : : $(USE_SELECT) : error_select ] | |
109 | [ link generic/basic_endpoint.cpp : : generic_basic_endpoint ] | |
110 | [ link generic/basic_endpoint.cpp : $(USE_SELECT) : generic_basic_endpoint_select ] | |
111 | [ link generic/datagram_protocol.cpp : : generic_datagram_protocol ] | |
112 | [ link generic/datagram_protocol.cpp : $(USE_SELECT) : generic_datagram_protocol_select ] | |
113 | [ link generic/raw_protocol.cpp : : generic_raw_protocol ] | |
114 | [ link generic/raw_protocol.cpp : $(USE_SELECT) : generic_raw_protocol_select ] | |
115 | [ link generic/seq_packet_protocol.cpp : : generic_seq_packet_protocol ] | |
116 | [ link generic/seq_packet_protocol.cpp : $(USE_SELECT) : generic_seq_packet_protocol_select ] | |
117 | [ link generic/stream_protocol.cpp : : generic_stream_protocol ] | |
118 | [ link generic/stream_protocol.cpp : $(USE_SELECT) : generic_stream_protocol_select ] | |
119 | [ link high_resolution_timer.cpp ] | |
120 | [ link high_resolution_timer.cpp : $(USE_SELECT) : high_resolution_timer_select ] | |
b32b8144 FG |
121 | [ run io_context.cpp ] |
122 | [ run io_context.cpp : : : $(USE_SELECT) : io_context_select ] | |
7c673cae FG |
123 | [ link ip/address.cpp : : ip_address ] |
124 | [ link ip/address.cpp : $(USE_SELECT) : ip_address_select ] | |
125 | [ link ip/address_v4.cpp : : ip_address_v4 ] | |
126 | [ link ip/address_v4.cpp : $(USE_SELECT) : ip_address_v4_select ] | |
127 | [ link ip/address_v6.cpp : : ip_address_v6 ] | |
128 | [ link ip/address_v6.cpp : $(USE_SELECT) : ip_address_v6_select ] | |
129 | [ link ip/basic_endpoint.cpp : : ip_basic_endpoint ] | |
130 | [ link ip/basic_endpoint.cpp : $(USE_SELECT) : ip_basic_endpoint_select ] | |
131 | [ link ip/basic_resolver.cpp : : ip_basic_resolver ] | |
132 | [ link ip/basic_resolver.cpp : $(USE_SELECT) : ip_basic_resolver_select ] | |
133 | [ link ip/basic_resolver_entry.cpp : : ip_basic_resolver_entry ] | |
134 | [ link ip/basic_resolver_entry.cpp : $(USE_SELECT) : ip_basic_resolver_entry_select ] | |
135 | [ link ip/basic_resolver_iterator.cpp : : ip_basic_resolver_iterator ] | |
136 | [ link ip/basic_resolver_iterator.cpp : $(USE_SELECT) : ip_basic_resolver_iterator_select ] | |
137 | [ link ip/basic_resolver_query.cpp : : ip_basic_resolver_query ] | |
138 | [ link ip/basic_resolver_query.cpp : $(USE_SELECT) : ip_basic_resolver_query_select ] | |
139 | [ run ip/host_name.cpp : : : : ip_host_name ] | |
140 | [ run ip/host_name.cpp : : : $(USE_SELECT) : ip_host_name_select ] | |
141 | [ run ip/icmp.cpp : : : : ip_icmp ] | |
142 | [ run ip/icmp.cpp : : : $(USE_SELECT) : ip_icmp_select ] | |
143 | [ run ip/multicast.cpp : : : : ip_multicast ] | |
144 | [ run ip/multicast.cpp : : : $(USE_SELECT) : ip_multicast_select ] | |
145 | [ link ip/resolver_query_base.cpp : : ip_resolver_query_base ] | |
146 | [ link ip/resolver_query_base.cpp : $(USE_SELECT) : ip_resolver_query_base_select ] | |
147 | [ link ip/resolver_service.cpp : : ip_resolver_service ] | |
148 | [ link ip/resolver_service.cpp : $(USE_SELECT) : ip_resolver_service_select ] | |
149 | [ run ip/tcp.cpp : : : : ip_tcp ] | |
150 | [ run ip/tcp.cpp : : : $(USE_SELECT) : ip_tcp_select ] | |
151 | [ run ip/udp.cpp : : : : ip_udp ] | |
152 | [ run ip/udp.cpp : : : $(USE_SELECT) : ip_udp_select ] | |
153 | [ run ip/unicast.cpp : : : : ip_unicast ] | |
154 | [ run ip/unicast.cpp : : : $(USE_SELECT) : ip_unicast_select ] | |
155 | [ run ip/v6_only.cpp : : : : ip_v6_only ] | |
156 | [ run ip/v6_only.cpp : : : $(USE_SELECT) : ip_v6_only_select ] | |
157 | [ run is_read_buffered.cpp ] | |
158 | [ run is_read_buffered.cpp : : : $(USE_SELECT) : is_read_buffered_select ] | |
159 | [ run is_write_buffered.cpp ] | |
160 | [ run is_write_buffered.cpp : : : $(USE_SELECT) : is_write_buffered_select ] | |
161 | [ link local/basic_endpoint.cpp : : local_basic_endpoint ] | |
162 | [ link local/basic_endpoint.cpp : $(USE_SELECT) : local_basic_endpoint_select ] | |
163 | [ link local/connect_pair.cpp : : local_connect_pair ] | |
164 | [ link local/connect_pair.cpp : $(USE_SELECT) : local_connect_pair_select ] | |
165 | [ link local/datagram_protocol.cpp : : local_datagram_protocol ] | |
166 | [ link local/datagram_protocol.cpp : $(USE_SELECT) : local_datagram_protocol_select ] | |
167 | [ link local/stream_protocol.cpp : : local_stream_protocol ] | |
168 | [ link local/stream_protocol.cpp : $(USE_SELECT) : local_stream_protocol_select ] | |
169 | [ link placeholders.cpp ] | |
170 | [ link placeholders.cpp : $(USE_SELECT) : placeholders_select ] | |
171 | [ link posix/basic_descriptor.cpp : : posix_basic_descriptor ] | |
172 | [ link posix/basic_descriptor.cpp : $(USE_SELECT) : posix_basic_descriptor_select ] | |
173 | [ link posix/basic_stream_descriptor.cpp : : posix_basic_stream_descriptor ] | |
174 | [ link posix/basic_stream_descriptor.cpp : $(USE_SELECT) : posix_basic_stream_descriptor_select ] | |
175 | [ link posix/descriptor_base.cpp : : posix_descriptor_base ] | |
176 | [ link posix/descriptor_base.cpp : $(USE_SELECT) : posix_descriptor_base_select ] | |
177 | [ link posix/stream_descriptor.cpp : : posix_stream_descriptor ] | |
178 | [ link posix/stream_descriptor.cpp : $(USE_SELECT) : posix_stream_descriptor_select ] | |
179 | [ link posix/stream_descriptor_service.cpp : : posix_stream_descriptor_service ] | |
180 | [ link posix/stream_descriptor_service.cpp : $(USE_SELECT) : posix_stream_descriptor_service_select ] | |
181 | [ link raw_socket_service.cpp ] | |
182 | [ link raw_socket_service.cpp : $(USE_SELECT) : raw_socket_service_select ] | |
183 | [ run read.cpp ] | |
184 | [ run read.cpp : : : $(USE_SELECT) : read_select ] | |
185 | [ run read_at.cpp ] | |
186 | [ run read_at.cpp : : : $(USE_SELECT) : read_at_select ] | |
187 | [ run read_until.cpp ] | |
188 | [ run read_until.cpp : : : $(USE_SELECT) : read_until_select ] | |
189 | [ link seq_packet_socket_service.cpp ] | |
190 | [ link seq_packet_socket_service.cpp : $(USE_SELECT) : seq_packet_socket_service_select ] | |
191 | [ run signal_set.cpp ] | |
192 | [ run signal_set.cpp : : : $(USE_SELECT) : signal_set_select ] | |
193 | [ link signal_set_service.cpp ] | |
194 | [ link signal_set_service.cpp : $(USE_SELECT) : signal_set_service_select ] | |
195 | [ link socket_acceptor_service.cpp ] | |
196 | [ link socket_acceptor_service.cpp : $(USE_SELECT) : socket_acceptor_service_select ] | |
197 | [ run socket_base.cpp ] | |
198 | [ run socket_base.cpp : : : $(USE_SELECT) : socket_base_select ] | |
199 | [ link steady_timer.cpp ] | |
200 | [ link steady_timer.cpp : $(USE_SELECT) : steady_timer_select ] | |
201 | [ run strand.cpp ] | |
202 | [ run strand.cpp : : : $(USE_SELECT) : strand_select ] | |
203 | [ link stream_socket_service.cpp ] | |
204 | [ link stream_socket_service.cpp : $(USE_SELECT) : stream_socket_service_select ] | |
205 | [ run streambuf.cpp ] | |
206 | [ run streambuf.cpp : : : $(USE_SELECT) : streambuf_select ] | |
207 | [ link system_timer.cpp ] | |
208 | [ link system_timer.cpp : $(USE_SELECT) : system_timer_select ] | |
b32b8144 FG |
209 | [ link system_context.cpp ] |
210 | [ link system_context.cpp : $(USE_SELECT) : system_context_select ] | |
211 | [ link system_executor.cpp ] | |
212 | [ link system_executor.cpp : $(USE_SELECT) : system_executor_select ] | |
7c673cae FG |
213 | [ link time_traits.cpp ] |
214 | [ link time_traits.cpp : $(USE_SELECT) : time_traits_select ] | |
b32b8144 FG |
215 | [ link ts/buffer.cpp : : ts_buffer ] |
216 | [ link ts/buffer.cpp : $(USE_SELECT) : ts_buffer_select ] | |
217 | [ link ts/executor.cpp : : ts_executor ] | |
218 | [ link ts/executor.cpp : $(USE_SELECT) : ts_executor_select ] | |
219 | [ link ts/internet.cpp : : ts_internet ] | |
220 | [ link ts/internet.cpp : $(USE_SELECT) : ts_internet_select ] | |
221 | [ link ts/io_context.cpp : : ts_io_context ] | |
222 | [ link ts/io_context.cpp : $(USE_SELECT) : ts_io_context_select ] | |
223 | [ link ts/net.cpp : : ts_net ] | |
224 | [ link ts/net.cpp : $(USE_SELECT) : ts_net_select ] | |
225 | [ link ts/netfwd.cpp : : ts_netfwd ] | |
226 | [ link ts/netfwd.cpp : $(USE_SELECT) : ts_netfwd_select ] | |
227 | [ link ts/socket.cpp : : ts_socket ] | |
228 | [ link ts/socket.cpp : $(USE_SELECT) : ts_socket_select ] | |
229 | [ link ts/timer.cpp : : ts_timer ] | |
230 | [ link ts/timer.cpp : $(USE_SELECT) : ts_timer_select ] | |
7c673cae FG |
231 | [ link wait_traits.cpp ] |
232 | [ link wait_traits.cpp : $(USE_SELECT) : wait_traits_select ] | |
233 | [ link waitable_timer_service.cpp ] | |
234 | [ link waitable_timer_service.cpp : $(USE_SELECT) : waitable_timer_service_select ] | |
235 | [ link windows/basic_handle.cpp : : windows_basic_handle ] | |
236 | [ link windows/basic_handle.cpp : $(USE_SELECT) : windows_basic_handle_select ] | |
237 | [ link windows/basic_object_handle.cpp : : windows_basic_object_handle ] | |
238 | [ link windows/basic_object_handle.cpp : $(USE_SELECT) : windows_basic_object_handle_select ] | |
239 | [ link windows/basic_random_access_handle.cpp : : windows_basic_random_access_handle ] | |
240 | [ link windows/basic_random_access_handle.cpp : $(USE_SELECT) : windows_basic_random_access_handle_select ] | |
241 | [ link windows/basic_stream_handle.cpp : : windows_basic_stream_handle ] | |
242 | [ link windows/basic_stream_handle.cpp : $(USE_SELECT) : windows_basic_stream_handle_select ] | |
243 | [ link windows/object_handle.cpp : : windows_object_handle ] | |
244 | [ link windows/object_handle.cpp : $(USE_SELECT) : windows_object_handle_select ] | |
245 | [ link windows/object_handle_service.cpp : : windows_object_handle_service ] | |
246 | [ link windows/object_handle_service.cpp : $(USE_SELECT) : windows_object_handle_service_select ] | |
247 | [ link windows/overlapped_ptr.cpp : : windows_overlapped_ptr ] | |
248 | [ link windows/overlapped_ptr.cpp : $(USE_SELECT) : windows_overlapped_ptr_select ] | |
249 | [ link windows/random_access_handle.cpp : : windows_random_access_handle ] | |
250 | [ link windows/random_access_handle.cpp : $(USE_SELECT) : windows_random_access_handle_select ] | |
251 | [ link windows/random_access_handle_service.cpp : : windows_random_access_handle_service ] | |
252 | [ link windows/random_access_handle_service.cpp : $(USE_SELECT) : windows_random_access_handle_service_select ] | |
253 | [ link windows/stream_handle.cpp : : windows_stream_handle ] | |
254 | [ link windows/stream_handle.cpp : $(USE_SELECT) : windows_stream_handle_select ] | |
255 | [ link windows/stream_handle_service.cpp : : windows_stream_handle_service ] | |
256 | [ link windows/stream_handle_service.cpp : $(USE_SELECT) : windows_stream_handle_service_select ] | |
257 | [ run write.cpp ] | |
258 | [ run write.cpp : : : $(USE_SELECT) : write_select ] | |
259 | [ run write_at.cpp ] | |
260 | [ run write_at.cpp : : : $(USE_SELECT) : write_at_select ] | |
261 | ; |