]>
Commit | Line | Data |
---|---|---|
7c673cae | 1 | # |
1e59de90 | 2 | # Copyright (c) 2003-2022 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 | ||
7c673cae FG |
8 | import feature ; |
9 | ||
11fdf7f2 TL |
10 | lib socket ; # SOLARIS, QNXNTO |
11 | lib nsl ; # SOLARIS | |
12 | lib ws2_32 ; # NT | |
13 | lib mswsock ; # NT | |
14 | lib ipv6 ; # HPUX | |
15 | lib network ; # HAIKU | |
7c673cae FG |
16 | |
17 | local USE_SELECT = | |
18 | <define>BOOST_ASIO_DISABLE_DEV_POLL | |
19 | <define>BOOST_ASIO_DISABLE_EPOLL | |
20 | <define>BOOST_ASIO_DISABLE_KQUEUE | |
21 | <define>BOOST_ASIO_DISABLE_IOCP | |
22 | ; | |
23 | ||
24 | project | |
25 | : requirements | |
26 | <library>/boost/date_time//boost_date_time | |
27 | <library>/boost/system//boost_system | |
11fdf7f2 | 28 | <library>/boost/chrono//boost_chrono |
7c673cae FG |
29 | <library>/boost/regex//boost_regex |
30 | <define>BOOST_ALL_NO_LIB=1 | |
31 | <threading>multi | |
11fdf7f2 TL |
32 | <target-os>linux:<define>_XOPEN_SOURCE=600 |
33 | <target-os>linux:<define>_GNU_SOURCE=1 | |
34 | <target-os>solaris:<define>_XOPEN_SOURCE=500 | |
35 | <target-os>solaris:<define>__EXTENSIONS__ | |
36 | <target-os>solaris:<library>socket | |
37 | <target-os>solaris:<library>nsl | |
38 | <target-os>windows:<define>_WIN32_WINNT=0x0501 | |
39 | <target-os>windows,<toolset>cw:<library>ws2_32 | |
40 | <target-os>windows,<toolset>cw:<library>mswsock | |
41 | <target-os>windows,<toolset>gcc:<library>ws2_32 | |
42 | <target-os>windows,<toolset>gcc:<library>mswsock | |
43 | <target-os>windows,<toolset>gcc-cygwin:<define>__USE_W32_SOCKETS | |
44 | <target-os>hpux,<toolset>gcc:<define>_XOPEN_SOURCE_EXTENDED | |
45 | <target-os>hpux:<library>ipv6 | |
46 | <target-os>qnxnto:<library>socket | |
47 | <target-os>haiku:<library>network | |
7c673cae FG |
48 | ; |
49 | ||
50 | test-suite "asio" : | |
1e59de90 TL |
51 | [ link associated_allocator.cpp ] |
52 | [ link associated_allocator.cpp : $(USE_SELECT) : associated_allocator_select ] | |
53 | [ link associated_cancellation_slot.cpp ] | |
54 | [ link associated_cancellation_slot.cpp : $(USE_SELECT) : associated_cancellation_slot_select ] | |
55 | [ link associated_executor.cpp ] | |
56 | [ link associated_executor.cpp : $(USE_SELECT) : associated_executor_select ] | |
57 | [ link associator.cpp ] | |
58 | [ link associator.cpp : $(USE_SELECT) : associator_select ] | |
92f5a8d4 TL |
59 | [ link awaitable.cpp ] |
60 | [ link awaitable.cpp : $(USE_SELECT) : awaitable_select ] | |
7c673cae FG |
61 | [ link basic_datagram_socket.cpp ] |
62 | [ link basic_datagram_socket.cpp : $(USE_SELECT) : basic_datagram_socket_select ] | |
63 | [ link basic_deadline_timer.cpp ] | |
64 | [ link basic_deadline_timer.cpp : $(USE_SELECT) : basic_deadline_timer_select ] | |
1e59de90 TL |
65 | [ link basic_file.cpp ] |
66 | [ link basic_file.cpp : $(USE_SELECT) : basic_file_select ] | |
67 | [ link basic_random_access_file.cpp ] | |
68 | [ link basic_random_access_file.cpp : $(USE_SELECT) : basic_random_access_file_select ] | |
7c673cae FG |
69 | [ link basic_raw_socket.cpp ] |
70 | [ link basic_raw_socket.cpp : $(USE_SELECT) : basic_raw_socket_select ] | |
1e59de90 TL |
71 | [ link basic_readable_pipe.cpp ] |
72 | [ link basic_readable_pipe.cpp : $(USE_SELECT) : basic_readable_pipe_select ] | |
7c673cae FG |
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 ] | |
1e59de90 TL |
79 | [ link basic_stream_file.cpp ] |
80 | [ link basic_stream_file.cpp : $(USE_SELECT) : basic_stream_file_select ] | |
7c673cae FG |
81 | [ link basic_stream_socket.cpp ] |
82 | [ link basic_stream_socket.cpp : $(USE_SELECT) : basic_stream_socket_select ] | |
83 | [ link basic_streambuf.cpp ] | |
84 | [ link basic_streambuf.cpp : $(USE_SELECT) : basic_streambuf_select ] | |
85 | [ link basic_waitable_timer.cpp ] | |
86 | [ link basic_waitable_timer.cpp : $(USE_SELECT) : basic_waitable_timer_select ] | |
1e59de90 TL |
87 | [ link basic_writable_pipe.cpp ] |
88 | [ link basic_writable_pipe.cpp : $(USE_SELECT) : basic_writable_pipe_select ] | |
89 | [ run bind_allocator.cpp ] | |
90 | [ run bind_allocator.cpp : : : $(USE_SELECT) : bind_allocator_select ] | |
91 | [ run bind_cancellation_slot.cpp ] | |
92 | [ run bind_cancellation_slot.cpp : : : $(USE_SELECT) : bind_cancellation_slot_select ] | |
93 | [ run bind_executor.cpp ] | |
94 | [ run bind_executor.cpp : : : $(USE_SELECT) : bind_executor_select ] | |
7c673cae FG |
95 | [ run buffer.cpp ] |
96 | [ run buffer.cpp : : : $(USE_SELECT) : buffer_select ] | |
1e59de90 TL |
97 | [ link buffer_registration.cpp ] |
98 | [ link buffer_registration.cpp : $(USE_SELECT) : buffer_registration_select ] | |
7c673cae FG |
99 | [ run buffered_read_stream.cpp ] |
100 | [ run buffered_read_stream.cpp : : : $(USE_SELECT) : buffered_read_stream_select ] | |
101 | [ run buffered_stream.cpp ] | |
102 | [ run buffered_stream.cpp : : : $(USE_SELECT) : buffered_stream_select ] | |
103 | [ run buffered_write_stream.cpp ] | |
104 | [ run buffered_write_stream.cpp : : : $(USE_SELECT) : buffered_write_stream_select ] | |
105 | [ run buffers_iterator.cpp ] | |
106 | [ run buffers_iterator.cpp : : : $(USE_SELECT) : buffers_iterator_select ] | |
1e59de90 TL |
107 | [ link cancellation_signal.cpp ] |
108 | [ link cancellation_signal.cpp : $(USE_SELECT) : cancellation_signal_select ] | |
109 | [ link cancellation_state.cpp ] | |
110 | [ link cancellation_state.cpp : $(USE_SELECT) : cancellation_state_select ] | |
111 | [ link cancellation_type.cpp ] | |
112 | [ link cancellation_type.cpp : $(USE_SELECT) : cancellation_type_select ] | |
92f5a8d4 TL |
113 | [ link co_spawn.cpp ] |
114 | [ link co_spawn.cpp : $(USE_SELECT) : co_spawn_select ] | |
7c673cae FG |
115 | [ link completion_condition.cpp ] |
116 | [ link completion_condition.cpp : $(USE_SELECT) : completion_condition_select ] | |
92f5a8d4 TL |
117 | [ run compose.cpp ] |
118 | [ run compose.cpp : : : $(USE_SELECT) : compose_select ] | |
7c673cae FG |
119 | [ link connect.cpp ] |
120 | [ link connect.cpp : $(USE_SELECT) : connect_select ] | |
1e59de90 TL |
121 | [ run connect_pipe.cpp ] |
122 | [ run connect_pipe.cpp : : : $(USE_SELECT) : connect_pipe_select ] | |
7c673cae FG |
123 | [ link coroutine.cpp ] |
124 | [ link coroutine.cpp : $(USE_SELECT) : coroutine_select ] | |
7c673cae FG |
125 | [ run deadline_timer.cpp ] |
126 | [ run deadline_timer.cpp : : : $(USE_SELECT) : deadline_timer_select ] | |
92f5a8d4 TL |
127 | [ link detached.cpp ] |
128 | [ link detached.cpp : $(USE_SELECT) : detached_select ] | |
7c673cae FG |
129 | [ run error.cpp ] |
130 | [ run error.cpp : : : $(USE_SELECT) : error_select ] | |
1e59de90 TL |
131 | [ link file_base.cpp ] |
132 | [ link file_base.cpp : $(USE_SELECT) : file_base_select ] | |
7c673cae FG |
133 | [ link generic/basic_endpoint.cpp : : generic_basic_endpoint ] |
134 | [ link generic/basic_endpoint.cpp : $(USE_SELECT) : generic_basic_endpoint_select ] | |
135 | [ link generic/datagram_protocol.cpp : : generic_datagram_protocol ] | |
136 | [ link generic/datagram_protocol.cpp : $(USE_SELECT) : generic_datagram_protocol_select ] | |
137 | [ link generic/raw_protocol.cpp : : generic_raw_protocol ] | |
138 | [ link generic/raw_protocol.cpp : $(USE_SELECT) : generic_raw_protocol_select ] | |
139 | [ link generic/seq_packet_protocol.cpp : : generic_seq_packet_protocol ] | |
140 | [ link generic/seq_packet_protocol.cpp : $(USE_SELECT) : generic_seq_packet_protocol_select ] | |
141 | [ link generic/stream_protocol.cpp : : generic_stream_protocol ] | |
142 | [ link generic/stream_protocol.cpp : $(USE_SELECT) : generic_stream_protocol_select ] | |
143 | [ link high_resolution_timer.cpp ] | |
144 | [ link high_resolution_timer.cpp : $(USE_SELECT) : high_resolution_timer_select ] | |
b32b8144 FG |
145 | [ run io_context.cpp ] |
146 | [ run io_context.cpp : : : $(USE_SELECT) : io_context_select ] | |
92f5a8d4 TL |
147 | [ run io_context_strand.cpp ] |
148 | [ run io_context_strand.cpp : : : $(USE_SELECT) : io_context_strand_select ] | |
7c673cae FG |
149 | [ link ip/address.cpp : : ip_address ] |
150 | [ link ip/address.cpp : $(USE_SELECT) : ip_address_select ] | |
151 | [ link ip/address_v4.cpp : : ip_address_v4 ] | |
152 | [ link ip/address_v4.cpp : $(USE_SELECT) : ip_address_v4_select ] | |
153 | [ link ip/address_v6.cpp : : ip_address_v6 ] | |
154 | [ link ip/address_v6.cpp : $(USE_SELECT) : ip_address_v6_select ] | |
155 | [ link ip/basic_endpoint.cpp : : ip_basic_endpoint ] | |
156 | [ link ip/basic_endpoint.cpp : $(USE_SELECT) : ip_basic_endpoint_select ] | |
157 | [ link ip/basic_resolver.cpp : : ip_basic_resolver ] | |
158 | [ link ip/basic_resolver.cpp : $(USE_SELECT) : ip_basic_resolver_select ] | |
159 | [ link ip/basic_resolver_entry.cpp : : ip_basic_resolver_entry ] | |
160 | [ link ip/basic_resolver_entry.cpp : $(USE_SELECT) : ip_basic_resolver_entry_select ] | |
161 | [ link ip/basic_resolver_iterator.cpp : : ip_basic_resolver_iterator ] | |
162 | [ link ip/basic_resolver_iterator.cpp : $(USE_SELECT) : ip_basic_resolver_iterator_select ] | |
163 | [ link ip/basic_resolver_query.cpp : : ip_basic_resolver_query ] | |
164 | [ link ip/basic_resolver_query.cpp : $(USE_SELECT) : ip_basic_resolver_query_select ] | |
165 | [ run ip/host_name.cpp : : : : ip_host_name ] | |
166 | [ run ip/host_name.cpp : : : $(USE_SELECT) : ip_host_name_select ] | |
167 | [ run ip/icmp.cpp : : : : ip_icmp ] | |
168 | [ run ip/icmp.cpp : : : $(USE_SELECT) : ip_icmp_select ] | |
169 | [ run ip/multicast.cpp : : : : ip_multicast ] | |
170 | [ run ip/multicast.cpp : : : $(USE_SELECT) : ip_multicast_select ] | |
171 | [ link ip/resolver_query_base.cpp : : ip_resolver_query_base ] | |
172 | [ link ip/resolver_query_base.cpp : $(USE_SELECT) : ip_resolver_query_base_select ] | |
7c673cae FG |
173 | [ run ip/tcp.cpp : : : : ip_tcp ] |
174 | [ run ip/tcp.cpp : : : $(USE_SELECT) : ip_tcp_select ] | |
175 | [ run ip/udp.cpp : : : : ip_udp ] | |
176 | [ run ip/udp.cpp : : : $(USE_SELECT) : ip_udp_select ] | |
177 | [ run ip/unicast.cpp : : : : ip_unicast ] | |
178 | [ run ip/unicast.cpp : : : $(USE_SELECT) : ip_unicast_select ] | |
179 | [ run ip/v6_only.cpp : : : : ip_v6_only ] | |
180 | [ run ip/v6_only.cpp : : : $(USE_SELECT) : ip_v6_only_select ] | |
181 | [ run is_read_buffered.cpp ] | |
182 | [ run is_read_buffered.cpp : : : $(USE_SELECT) : is_read_buffered_select ] | |
183 | [ run is_write_buffered.cpp ] | |
184 | [ run is_write_buffered.cpp : : : $(USE_SELECT) : is_write_buffered_select ] | |
185 | [ link local/basic_endpoint.cpp : : local_basic_endpoint ] | |
186 | [ link local/basic_endpoint.cpp : $(USE_SELECT) : local_basic_endpoint_select ] | |
187 | [ link local/connect_pair.cpp : : local_connect_pair ] | |
188 | [ link local/connect_pair.cpp : $(USE_SELECT) : local_connect_pair_select ] | |
189 | [ link local/datagram_protocol.cpp : : local_datagram_protocol ] | |
190 | [ link local/datagram_protocol.cpp : $(USE_SELECT) : local_datagram_protocol_select ] | |
191 | [ link local/stream_protocol.cpp : : local_stream_protocol ] | |
192 | [ link local/stream_protocol.cpp : $(USE_SELECT) : local_stream_protocol_select ] | |
193 | [ link placeholders.cpp ] | |
194 | [ link placeholders.cpp : $(USE_SELECT) : placeholders_select ] | |
195 | [ link posix/basic_descriptor.cpp : : posix_basic_descriptor ] | |
196 | [ link posix/basic_descriptor.cpp : $(USE_SELECT) : posix_basic_descriptor_select ] | |
197 | [ link posix/basic_stream_descriptor.cpp : : posix_basic_stream_descriptor ] | |
198 | [ link posix/basic_stream_descriptor.cpp : $(USE_SELECT) : posix_basic_stream_descriptor_select ] | |
199 | [ link posix/descriptor_base.cpp : : posix_descriptor_base ] | |
200 | [ link posix/descriptor_base.cpp : $(USE_SELECT) : posix_descriptor_base_select ] | |
201 | [ link posix/stream_descriptor.cpp : : posix_stream_descriptor ] | |
202 | [ link posix/stream_descriptor.cpp : $(USE_SELECT) : posix_stream_descriptor_select ] | |
1e59de90 TL |
203 | [ link random_access_file.cpp ] |
204 | [ link random_access_file.cpp : $(USE_SELECT) : random_access_file_select ] | |
7c673cae FG |
205 | [ run read.cpp ] |
206 | [ run read.cpp : : : $(USE_SELECT) : read_select ] | |
207 | [ run read_at.cpp ] | |
208 | [ run read_at.cpp : : : $(USE_SELECT) : read_at_select ] | |
209 | [ run read_until.cpp ] | |
210 | [ run read_until.cpp : : : $(USE_SELECT) : read_until_select ] | |
1e59de90 TL |
211 | [ link readable_pipe.cpp ] |
212 | [ link readable_pipe.cpp : $(USE_SELECT) : readable_pipe_select ] | |
213 | [ run recycling_allocator.cpp ] | |
214 | [ run recycling_allocator.cpp : : : $(USE_SELECT) : recycling_allocator_select ] | |
92f5a8d4 TL |
215 | [ link redirect_error.cpp ] |
216 | [ link redirect_error.cpp : $(USE_SELECT) : redirect_error_select ] | |
1e59de90 TL |
217 | [ link registered_buffer.cpp ] |
218 | [ link registered_buffer.cpp : $(USE_SELECT) : registered_buffer_select ] | |
7c673cae FG |
219 | [ run signal_set.cpp ] |
220 | [ run signal_set.cpp : : : $(USE_SELECT) : signal_set_select ] | |
7c673cae FG |
221 | [ run socket_base.cpp ] |
222 | [ run socket_base.cpp : : : $(USE_SELECT) : socket_base_select ] | |
20effc67 TL |
223 | [ run static_thread_pool.cpp ] |
224 | [ run static_thread_pool.cpp : : : $(USE_SELECT) : static_thread_pool_select ] | |
7c673cae FG |
225 | [ link steady_timer.cpp ] |
226 | [ link steady_timer.cpp : $(USE_SELECT) : steady_timer_select ] | |
227 | [ run strand.cpp ] | |
228 | [ run strand.cpp : : : $(USE_SELECT) : strand_select ] | |
1e59de90 TL |
229 | [ link stream_file.cpp ] |
230 | [ link stream_file.cpp : $(USE_SELECT) : stream_file_select ] | |
7c673cae FG |
231 | [ run streambuf.cpp ] |
232 | [ run streambuf.cpp : : : $(USE_SELECT) : streambuf_select ] | |
233 | [ link system_timer.cpp ] | |
234 | [ link system_timer.cpp : $(USE_SELECT) : system_timer_select ] | |
b32b8144 FG |
235 | [ link system_context.cpp ] |
236 | [ link system_context.cpp : $(USE_SELECT) : system_context_select ] | |
237 | [ link system_executor.cpp ] | |
238 | [ link system_executor.cpp : $(USE_SELECT) : system_executor_select ] | |
92f5a8d4 TL |
239 | [ link this_coro.cpp ] |
240 | [ link this_coro.cpp : $(USE_SELECT) : this_coro_select ] | |
20effc67 TL |
241 | [ run thread_pool.cpp ] |
242 | [ run thread_pool.cpp : : : $(USE_SELECT) : thread_pool_select ] | |
7c673cae FG |
243 | [ link time_traits.cpp ] |
244 | [ link time_traits.cpp : $(USE_SELECT) : time_traits_select ] | |
b32b8144 FG |
245 | [ link ts/buffer.cpp : : ts_buffer ] |
246 | [ link ts/buffer.cpp : $(USE_SELECT) : ts_buffer_select ] | |
247 | [ link ts/executor.cpp : : ts_executor ] | |
248 | [ link ts/executor.cpp : $(USE_SELECT) : ts_executor_select ] | |
249 | [ link ts/internet.cpp : : ts_internet ] | |
250 | [ link ts/internet.cpp : $(USE_SELECT) : ts_internet_select ] | |
251 | [ link ts/io_context.cpp : : ts_io_context ] | |
252 | [ link ts/io_context.cpp : $(USE_SELECT) : ts_io_context_select ] | |
253 | [ link ts/net.cpp : : ts_net ] | |
254 | [ link ts/net.cpp : $(USE_SELECT) : ts_net_select ] | |
255 | [ link ts/netfwd.cpp : : ts_netfwd ] | |
256 | [ link ts/netfwd.cpp : $(USE_SELECT) : ts_netfwd_select ] | |
257 | [ link ts/socket.cpp : : ts_socket ] | |
258 | [ link ts/socket.cpp : $(USE_SELECT) : ts_socket_select ] | |
259 | [ link ts/timer.cpp : : ts_timer ] | |
260 | [ link ts/timer.cpp : $(USE_SELECT) : ts_timer_select ] | |
92f5a8d4 TL |
261 | [ link use_awaitable.cpp ] |
262 | [ link use_awaitable.cpp : $(USE_SELECT) : use_awaitable_select ] | |
7c673cae FG |
263 | [ link wait_traits.cpp ] |
264 | [ link wait_traits.cpp : $(USE_SELECT) : wait_traits_select ] | |
7c673cae FG |
265 | [ link windows/basic_object_handle.cpp : : windows_basic_object_handle ] |
266 | [ link windows/basic_object_handle.cpp : $(USE_SELECT) : windows_basic_object_handle_select ] | |
92f5a8d4 TL |
267 | [ link windows/basic_overlapped_handle.cpp : : windows_basic_overlapped_handle ] |
268 | [ link windows/basic_overlapped_handle.cpp : $(USE_SELECT) : windows_basic_overlapped_handle_select ] | |
7c673cae FG |
269 | [ link windows/basic_random_access_handle.cpp : : windows_basic_random_access_handle ] |
270 | [ link windows/basic_random_access_handle.cpp : $(USE_SELECT) : windows_basic_random_access_handle_select ] | |
271 | [ link windows/basic_stream_handle.cpp : : windows_basic_stream_handle ] | |
272 | [ link windows/basic_stream_handle.cpp : $(USE_SELECT) : windows_basic_stream_handle_select ] | |
273 | [ link windows/object_handle.cpp : : windows_object_handle ] | |
274 | [ link windows/object_handle.cpp : $(USE_SELECT) : windows_object_handle_select ] | |
7c673cae FG |
275 | [ link windows/overlapped_ptr.cpp : : windows_overlapped_ptr ] |
276 | [ link windows/overlapped_ptr.cpp : $(USE_SELECT) : windows_overlapped_ptr_select ] | |
277 | [ link windows/random_access_handle.cpp : : windows_random_access_handle ] | |
278 | [ link windows/random_access_handle.cpp : $(USE_SELECT) : windows_random_access_handle_select ] | |
7c673cae FG |
279 | [ link windows/stream_handle.cpp : : windows_stream_handle ] |
280 | [ link windows/stream_handle.cpp : $(USE_SELECT) : windows_stream_handle_select ] | |
1e59de90 TL |
281 | [ link writable_pipe.cpp ] |
282 | [ link writable_pipe.cpp : $(USE_SELECT) : writable_pipe_select ] | |
7c673cae FG |
283 | [ run write.cpp ] |
284 | [ run write.cpp : : : $(USE_SELECT) : write_select ] | |
285 | [ run write_at.cpp ] | |
286 | [ run write_at.cpp : : : $(USE_SELECT) : write_at_select ] | |
287 | ; | |
20effc67 TL |
288 | |
289 | build-project execution ; |