46 lines (34 with data), 1.3 kB
# Copyright Dean Michael Berris 2007.
# 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 ;
if [ os.name ] = CYGWIN
{
lib ws2_32 ;
lib mswsock ;
}
project network_test :
requirements
<include>../../../
<source>/boost//unit_test_framework
<source>/boost//system
<source>/boost//date_time
<source>/boost//regex
<source>/boost//thread
<source>/boost//filesystem
<toolset>gcc:<linkflags>-lpthread
<os>cygwin,<toolset>gcc:<define>_WIN32_WINNT=0x0501
<os>cygwin,<toolset>gcc:<define>__USE_W32_SOCKETS
<os>cygwin,<toolset>gcc:<library>ws2_32
<os>cygwin,<toolset>gcc:<library>mswsock
<toolset>msvc:<define>BOOST_ASIO_NO_WIN32_LEAN_AND_MEAN
<toolset>msvc:<define>WIN32_LEAN_AND_MEAN
<toolset>msvc:<define>_SCL_SECURE_NO_WARNINGS
<link>static
;
unit-test localhost_tests : localhost_tests.cpp ;
unit-test message_test : message_test.cpp ;
unit-test message_transform_test : message_transform_test.cpp ;
unit-test http_1_0_test : http_1_0_test.cpp ;
unit-test http_message_test : http_message_test.cpp ;