2017-07-20 08:01:46 -07:00
|
|
|
#
|
|
|
|
# Copyright (c) 2013-2016 Vinnie Falco (vinnie dot falco at gmail 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 ;
|
|
|
|
import boost ;
|
|
|
|
|
|
|
|
boost.use-project ;
|
|
|
|
|
|
|
|
if [ os.name ] = SOLARIS
|
|
|
|
{
|
|
|
|
lib socket ;
|
|
|
|
lib nsl ;
|
|
|
|
}
|
|
|
|
else if [ os.name ] = NT
|
|
|
|
{
|
|
|
|
lib ws2_32 ;
|
|
|
|
lib mswsock ;
|
|
|
|
}
|
|
|
|
else if [ os.name ] = HPUX
|
|
|
|
{
|
|
|
|
lib ipv6 ;
|
|
|
|
}
|
|
|
|
else if [ os.name ] = QNXNTO
|
|
|
|
{
|
|
|
|
lib socket ;
|
|
|
|
}
|
|
|
|
else if [ os.name ] = HAIKU
|
|
|
|
{
|
|
|
|
lib network ;
|
|
|
|
}
|
|
|
|
|
|
|
|
if [ os.name ] = NT
|
|
|
|
{
|
|
|
|
lib ssl : : <name>ssleay32 ;
|
2016-10-02 16:33:42 -04:00
|
|
|
lib crypto : : <name>libeay32 ;
|
2017-07-20 08:01:46 -07:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
lib ssl ;
|
|
|
|
lib crypto ;
|
|
|
|
}
|
|
|
|
|
2016-04-27 14:58:07 +07:00
|
|
|
variant coverage
|
|
|
|
:
|
|
|
|
debug
|
|
|
|
:
|
|
|
|
<cxxflags>"-fprofile-arcs -ftest-coverage"
|
|
|
|
<linkflags>"-lgcov"
|
|
|
|
;
|
|
|
|
|
|
|
|
variant asan
|
|
|
|
:
|
|
|
|
release
|
|
|
|
:
|
|
|
|
<cxxflags>"-fsanitize=address -fno-omit-frame-pointer"
|
|
|
|
<linkflags>"-fsanitize=address"
|
|
|
|
;
|
|
|
|
|
2016-05-09 23:06:38 +07:00
|
|
|
variant msan
|
|
|
|
:
|
|
|
|
debug
|
|
|
|
:
|
|
|
|
<cxxflags>"-fsanitize=memory -fno-omit-frame-pointer -fsanitize-memory-track-origins=2 -fsanitize-memory-use-after-dtor"
|
|
|
|
<linkflags>"-fsanitize=memory"
|
|
|
|
;
|
|
|
|
|
|
|
|
variant usan
|
|
|
|
:
|
|
|
|
debug
|
|
|
|
:
|
|
|
|
<cxxflags>"-fsanitize=undefined -fno-omit-frame-pointer"
|
|
|
|
<linkflags>"-fsanitize=undefined"
|
|
|
|
;
|
|
|
|
|
2017-07-20 08:01:46 -07:00
|
|
|
project beast
|
2016-04-27 14:58:07 +07:00
|
|
|
: requirements
|
|
|
|
<include>.
|
2016-05-06 19:14:17 -04:00
|
|
|
<include>./extras
|
2016-04-27 14:58:07 +07:00
|
|
|
<include>./include
|
|
|
|
#<use>/boost//headers
|
|
|
|
<library>/boost/system//boost_system
|
|
|
|
<library>/boost/coroutine//boost_coroutine
|
|
|
|
<library>/boost/filesystem//boost_filesystem
|
|
|
|
<library>/boost/program_options//boost_program_options
|
|
|
|
<define>BOOST_ALL_NO_LIB=1
|
|
|
|
<threading>multi
|
|
|
|
<runtime-link>shared
|
|
|
|
<debug-symbols>on
|
|
|
|
<toolset>gcc:<cxxflags>-std=c++11
|
2016-10-18 19:43:36 -04:00
|
|
|
<toolset>gcc:<cxxflags>-Wno-unused-parameter
|
2016-04-27 14:58:07 +07:00
|
|
|
<toolset>clang:<cxxflags>-std=c++11
|
2016-10-18 19:43:36 -04:00
|
|
|
<toolset>clang:<cxxflags>-Wno-unused-parameter
|
|
|
|
<toolset>gcc:<cxxflags>-Wno-unused-variable # Temporary until we can figure out -isystem
|
|
|
|
<toolset>clang:<cxxflags>-Wno-unused-variable # Temporary until we can figure out -isystem
|
2016-04-27 14:58:07 +07:00
|
|
|
<toolset>msvc:<define>_SCL_SECURE_NO_WARNINGS=1
|
|
|
|
<toolset>msvc:<define>_CRT_SECURE_NO_WARNINGS=1
|
2016-10-28 17:37:45 -04:00
|
|
|
<toolset>msvc:<cxxflags>"/wd4100 /bigobj"
|
|
|
|
<toolset>msvc,<variant>release:<cxxflags>"/Ob2 /Oi /Ot"
|
2016-04-27 14:58:07 +07:00
|
|
|
<os>LINUX:<define>_XOPEN_SOURCE=600
|
|
|
|
<os>LINUX:<define>_GNU_SOURCE=1
|
|
|
|
<os>SOLARIS:<define>_XOPEN_SOURCE=500
|
|
|
|
<os>SOLARIS:<define>__EXTENSIONS__
|
|
|
|
<os>SOLARIS:<library>socket
|
|
|
|
<os>SOLARIS:<library>nsl
|
2016-05-15 16:22:25 -04:00
|
|
|
<os>NT:<define>_WIN32_WINNT=0x0601
|
2016-04-27 14:58:07 +07:00
|
|
|
<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
|
|
|
|
<os>NT,<toolset>gcc-cygwin:<define>__USE_W32_SOCKETS
|
|
|
|
: usage-requirements
|
|
|
|
:
|
|
|
|
build-dir bin
|
|
|
|
;
|
2017-07-20 08:01:46 -07:00
|
|
|
|
|
|
|
build-project test ;
|
|
|
|
build-project examples ;
|