Files
boost_beast/Jamfile
T

111 lines
2.9 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
{
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 ;
}
variant coverage :
2017-07-20 13:40:34 -07:00
debug
:
2017-07-20 13:40:34 -07:00
<cxxflags>"-msse4.2 --coverage"
<linkflags>"--coverage"
;
2016-04-27 14:58:07 +07:00
2017-05-09 19:36:01 -07:00
variant ubasan
:
release
:
2017-07-20 13:40:34 -07:00
<cxxflags>"-msse4.2 -funsigned-char -fno-omit-frame-pointer -fsanitize=address,undefined -fsanitize-blacklist=libs/beast/scripts/blacklist.supp"
2017-05-09 19:36:01 -07:00
<linkflags>"-fsanitize=address,undefined"
;
2017-07-20 08:01:46 -07:00
project beast
2016-04-27 14:58:07 +07:00
: requirements
2017-07-05 07:49:48 -07:00
<implicit-dependency>/boost//headers
2016-04-27 14:58:07 +07:00
<include>.
2016-05-06 19:14:17 -04:00
<include>./extras
2016-04-27 14:58:07 +07:00
#<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
2017-03-03 08:02:49 -05:00
<define>BOOST_COROUTINES_NO_DEPRECATION_WARNING=1
2016-04-27 14:58:07 +07:00
<threading>multi
<runtime-link>shared
<debug-symbols>on
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
2016-04-27 14:58:07 +07:00
<toolset>gcc:<cxxflags>-std=c++11
2016-10-18 19:43:36 -04:00
<toolset>gcc:<cxxflags>-Wno-unused-parameter
2017-03-03 08:02:49 -05:00
<toolset>gcc:<cxxflags>-Wno-unused-variable # Temporary until we can figure out -isystem
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>clang:<cxxflags>-Wno-unused-variable # Temporary until we can figure out -isystem
2017-06-13 11:53:06 -07:00
<toolset>clang:<cxxflags>-Wrange-loop-analysis
2016-04-27 14:58:07 +07:00
<toolset>msvc:<define>_SCL_SECURE_NO_WARNINGS=1
<toolset>msvc:<define>_CRT_SECURE_NO_WARNINGS=1
2017-07-03 09:09:42 -07:00
<toolset>msvc:<cxxflags>"/permissive- /bigobj"
2017-03-03 08:02:49 -05:00
<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
:
;