Files
boost_beast/Jamfile

104 lines
2.4 KiB
Plaintext
Raw Normal View History

2017-07-20 08:01:46 -07:00
#
2017-07-20 13:40:34 -07:00
# Copyright (c) 2013-2017 Vinnie Falco (vinnie dot falco at gmail dot com)
2017-07-20 08:01:46 -07:00
#
# 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)
#
2017-07-20 13:40:34 -07:00
# Official repository: https://github.com/boostorg/beast
#
2017-07-20 08:01:46 -07:00
import os ;
import feature ;
import boost ;
2017-04-20 10:30:24 -07:00
import modules ;
import testing ;
2017-07-20 08:01:46 -07:00
boost.use-project ;
if [ os.name ] = SOLARIS
{
2017-07-28 13:24:39 -07:00
lib socket ;
lib nsl ;
2017-07-20 08:01:46 -07:00
}
else if [ os.name ] = NT
{
2017-07-28 13:24:39 -07:00
lib ws2_32 ;
lib mswsock ;
2017-07-20 08:01:46 -07:00
}
else if [ os.name ] = HPUX
{
2017-07-28 13:24:39 -07:00
lib ipv6 ;
2017-07-20 08:01:46 -07:00
}
else if [ os.name ] = QNXNTO
{
2017-07-28 13:24:39 -07:00
lib socket ;
2017-07-20 08:01:46 -07:00
}
else if [ os.name ] = HAIKU
{
2017-07-28 13:24:39 -07:00
lib network ;
2017-07-20 08:01:46 -07:00
}
if [ os.name ] = NT
{
2017-07-28 13:24:39 -07:00
lib ssl : : <name>ssleay32 ;
lib crypto : : <name>libeay32 ;
2017-07-20 08:01:46 -07:00
}
else
{
2017-07-28 13:24:39 -07:00
lib ssl ;
lib crypto ;
2017-07-20 08:01:46 -07:00
}
2017-08-10 17:44:21 -07:00
variant coverage
: debug
: <cxxflags>"-msse4.2 --coverage"
2017-07-20 13:40:34 -07:00
<linkflags>"--coverage"
2017-08-10 17:44:21 -07:00
;
2017-08-10 17:44:21 -07:00
variant valgrind
: release
: <valgrind>on # Boost.Context uses this property
;
variant ubasan
2017-08-10 17:44:21 -07:00
: release
: <cxxflags>"-msse4.2 -funsigned-char -fno-omit-frame-pointer -fsanitize=address,undefined -fsanitize-blacklist=libs/beast/tools/blacklist.supp"
<linkflags>"-fsanitize=address,undefined"
<define>BOOST_USE_ASAN=1
2017-08-10 17:44:21 -07:00
;
2017-07-25 19:46:53 -07:00
2017-07-30 17:41:17 -07:00
path-constant TEST_MAIN : test/extras/include/boost/beast/unit_test/main.cpp ;
2017-07-28 13:24:39 -07:00
2017-08-01 18:11:51 +01:00
project /boost/beast
: requirements
2017-07-05 07:49:48 -07:00
<implicit-dependency>/boost//headers
<include>.
2017-07-30 17:41:17 -07:00
<include>./test/extras/include
<library>/boost/system//boost_system
<library>/boost/coroutine//boost_coroutine
<library>/boost/filesystem//boost_filesystem
<threading>multi
<runtime-link>shared
<debug-symbols>on
2017-08-10 17:44:21 -07:00
<define>BOOST_ALL_NO_LIB=1
2017-07-20 13:40:34 -07:00
<define>BOOST_ASIO_DISABLE_BOOST_ARRAY=1
<define>BOOST_ASIO_DISABLE_BOOST_BIND=1
<define>BOOST_ASIO_DISABLE_BOOST_DATE_TIME=1
<define>BOOST_ASIO_DISABLE_BOOST_REGEX=1
2017-07-27 17:32:08 -07:00
<define>BOOST_ASIO_NO_DEPRECATED=1
2017-08-10 17:44:21 -07:00
<define>BOOST_COROUTINES_NO_DEPRECATION_WARNING=1
<toolset>msvc:<cxxflags>"/bigobj"
<toolset>msvc:<define>_SCL_SECURE_NO_WARNINGS=1
<toolset>msvc:<define>_CRT_SECURE_NO_WARNINGS=1
2017-03-03 08:02:49 -05:00
<toolset>msvc:<variant>release:<cxxflags>"/Ob2 /Oi /Ot"
<os>SOLARIS:<library>socket
<os>SOLARIS:<library>nsl
<os>NT:<define>_WIN32_WINNT=0x0601
<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
;