mirror of
https://github.com/boostorg/asio.git
synced 2026-01-28 06:42:08 +00:00
129 lines
5.5 KiB
Plaintext
129 lines
5.5 KiB
Plaintext
#
|
|
# Copyright (c) 2003-2007 Christopher M. Kohlhoff (chris at kohlhoff dot com)
|
|
#
|
|
# Distributed under the Boost Software License, Version 1.0. (See accompanying
|
|
# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
|
#
|
|
|
|
import os ;
|
|
import feature ;
|
|
|
|
if [ os.name ] = SOLARIS
|
|
{
|
|
lib socket ;
|
|
lib nsl ;
|
|
}
|
|
else if [ os.name ] = NT
|
|
{
|
|
lib ws2_32 ;
|
|
lib mswsock ;
|
|
}
|
|
|
|
local USE_SELECT =
|
|
<define>BOOST_ASIO_DISABLE_EPOLL
|
|
<define>BOOST_ASIO_DISABLE_KQUEUE
|
|
<define>BOOST_ASIO_DISABLE_IOCP
|
|
;
|
|
|
|
project
|
|
: requirements
|
|
<library>/boost/date_time//boost_date_time
|
|
<library>/boost/system//boost_system
|
|
<library>/boost/thread//boost_thread
|
|
<define>BOOST_ALL_NO_LIB=1
|
|
<threading>multi
|
|
<os>SOLARIS:<define>_XOPEN_SOURCE=500
|
|
<os>SOLARIS:<define>__EXTENSIONS__
|
|
<os>SOLARIS:<library>socket
|
|
<os>SOLARIS:<library>nsl
|
|
<os>NT,<toolset>cw:<library>ws2_32
|
|
<os>NT,<toolset>cw:<library>mswsock
|
|
<os>NT,<toolset>gcc:<library>ws2_32
|
|
<os>NT,<toolset>gcc:<library>mswsock
|
|
;
|
|
|
|
test-suite "asio" :
|
|
[ link basic_datagram_socket.cpp ]
|
|
[ link basic_datagram_socket.cpp : $(USE_SELECT) : basic_datagram_socket_select ]
|
|
[ link basic_deadline_timer.cpp ]
|
|
[ link basic_deadline_timer.cpp : $(USE_SELECT) : basic_deadline_timer_select ]
|
|
[ link basic_socket_acceptor.cpp ]
|
|
[ link basic_socket_acceptor.cpp : $(USE_SELECT) : basic_socket_acceptor_select ]
|
|
[ link basic_stream_socket.cpp ]
|
|
[ link basic_stream_socket.cpp : $(USE_SELECT) : basic_stream_socket_select ]
|
|
[ run buffer.cpp ]
|
|
[ run buffer.cpp : : : $(USE_SELECT) : buffer_select ]
|
|
[ run buffered_read_stream.cpp ]
|
|
[ run buffered_read_stream.cpp : : : $(USE_SELECT) : buffered_read_stream_select ]
|
|
[ run buffered_stream.cpp ]
|
|
[ run buffered_stream.cpp : : : $(USE_SELECT) : buffered_stream_select ]
|
|
[ run buffered_write_stream.cpp ]
|
|
[ run buffered_write_stream.cpp : : : $(USE_SELECT) : buffered_write_stream_select ]
|
|
[ link completion_condition.cpp ]
|
|
[ link completion_condition.cpp : $(USE_SELECT) : completion_condition_select ]
|
|
[ link datagram_socket_service.cpp ]
|
|
[ link datagram_socket_service.cpp : $(USE_SELECT) : datagram_socket_service_select ]
|
|
[ link deadline_timer_service.cpp ]
|
|
[ link deadline_timer_service.cpp : $(USE_SELECT) : deadline_timer_service_select ]
|
|
[ run deadline_timer.cpp ]
|
|
[ run deadline_timer.cpp : : : $(USE_SELECT) : deadline_timer_select ]
|
|
[ run error.cpp ]
|
|
[ run error.cpp : : : $(USE_SELECT) : error_select ]
|
|
[ run io_service.cpp ]
|
|
[ run io_service.cpp : : : $(USE_SELECT) : io_service_select ]
|
|
[ link ip/address.cpp : : ip_address ]
|
|
[ link ip/address.cpp : $(USE_SELECT) : ip_address_select ]
|
|
[ link ip/address_v4.cpp : : ip_address_v4 ]
|
|
[ link ip/address_v4.cpp : $(USE_SELECT) : ip_address_v4_select ]
|
|
[ link ip/address_v6.cpp : : ip_address_v6 ]
|
|
[ link ip/address_v6.cpp : $(USE_SELECT) : ip_address_v6_select ]
|
|
[ link ip/basic_endpoint.cpp : : ip_basic_endpoint ]
|
|
[ link ip/basic_endpoint.cpp : $(USE_SELECT) : ip_basic_endpoint_select ]
|
|
[ link ip/basic_resolver.cpp : : ip_basic_resolver ]
|
|
[ link ip/basic_resolver.cpp : $(USE_SELECT) : ip_basic_resolver_select ]
|
|
[ link ip/basic_resolver_entry.cpp : : ip_basic_resolver_entry ]
|
|
[ link ip/basic_resolver_entry.cpp : $(USE_SELECT) : ip_basic_resolver_entry_select ]
|
|
[ link ip/basic_resolver_iterator.cpp : : ip_basic_resolver_iterator ]
|
|
[ link ip/basic_resolver_iterator.cpp : $(USE_SELECT) : ip_basic_resolver_iterator_select ]
|
|
[ link ip/basic_resolver_query.cpp : : ip_basic_resolver_query ]
|
|
[ link ip/basic_resolver_query.cpp : $(USE_SELECT) : ip_basic_resolver_query_select ]
|
|
[ run ip/host_name.cpp : : : : ip_host_name ]
|
|
[ run ip/host_name.cpp : : : $(USE_SELECT) : ip_host_name_select ]
|
|
[ run ip/multicast.cpp : : : : ip_multicast ]
|
|
[ run ip/multicast.cpp : : : $(USE_SELECT) : ip_multicast_select ]
|
|
[ link ip/resolver_query_base.cpp : : ip_resolver_query_base ]
|
|
[ link ip/resolver_query_base.cpp : $(USE_SELECT) : ip_resolver_query_base_select ]
|
|
[ link ip/resolver_service.cpp : : ip_resolver_service ]
|
|
[ link ip/resolver_service.cpp : $(USE_SELECT) : ip_resolver_service_select ]
|
|
[ run ip/tcp.cpp : : : : ip_tcp ]
|
|
[ run ip/tcp.cpp : : : $(USE_SELECT) : ip_tcp_select ]
|
|
[ run ip/udp.cpp : : : : ip_udp ]
|
|
[ run ip/udp.cpp : : : $(USE_SELECT) : ip_udp_select ]
|
|
[ run ip/unicast.cpp : : : : ip_unicast ]
|
|
[ run ip/unicast.cpp : : : $(USE_SELECT) : ip_unicast_select ]
|
|
[ run ip/v6_only.cpp : : : : ip_v6_only ]
|
|
[ run ip/v6_only.cpp : : : $(USE_SELECT) : ip_v6_only_select ]
|
|
[ run is_read_buffered.cpp ]
|
|
[ run is_read_buffered.cpp : : : $(USE_SELECT) : is_read_buffered_select ]
|
|
[ run is_write_buffered.cpp ]
|
|
[ run is_write_buffered.cpp : : : $(USE_SELECT) : is_write_buffered_select ]
|
|
[ link placeholders.cpp ]
|
|
[ link placeholders.cpp : $(USE_SELECT) : placeholders_select ]
|
|
[ run read.cpp ]
|
|
[ run read.cpp : : : $(USE_SELECT) : read_select ]
|
|
[ run read_until.cpp ]
|
|
[ run read_until.cpp : : : $(USE_SELECT) : read_until_select ]
|
|
[ link socket_acceptor_service.cpp ]
|
|
[ link socket_acceptor_service.cpp : $(USE_SELECT) : socket_acceptor_service_select ]
|
|
[ run socket_base.cpp ]
|
|
[ run socket_base.cpp : : : $(USE_SELECT) : socket_base_select ]
|
|
[ run strand.cpp ]
|
|
[ run strand.cpp : : : $(USE_SELECT) : strand_select ]
|
|
[ link stream_socket_service.cpp ]
|
|
[ link stream_socket_service.cpp : $(USE_SELECT) : stream_socket_service_select ]
|
|
[ link time_traits.cpp ]
|
|
[ link time_traits.cpp : $(USE_SELECT) : time_traits_select ]
|
|
[ run write.cpp ]
|
|
[ run write.cpp : : : $(USE_SELECT) : write_select ]
|
|
;
|