Files
boost_beast/Jamfile
T

122 lines
3.8 KiB
Plaintext
Raw Normal View History

2017-07-20 08:01:46 -07:00
#
# Copyright (c) 2019 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 ac ;
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 ;
import ../../config/checks/config : requires ;
2017-07-20 08:01:46 -07:00
boost.use-project ;
lib socket ; # SOLARIS, QNXNTO
lib nsl ; # SOLARIS
lib ws2_32 ; # NT
lib mswsock ; # NT
lib ipv6 ; # HPUX
lib network ; # HAIKU
2017-07-20 08:01:46 -07:00
lib ssl ;
lib crypto ;
lib crypt32 ;
lib ssl : : <target-os>windows <name>ssleay32 ;
lib crypto : : <target-os>windows <name>libeay32 ;
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
;
2016-04-27 14:58:07 +07:00
2017-08-10 17:44:21 -07:00
variant valgrind
: release
: <valgrind>on # Boost.Context uses this property
;
2017-07-31 09:34:22 -07:00
2017-05-09 19:36:01 -07:00
variant ubasan
2017-08-10 17:44:21 -07:00
: release
2017-12-21 13:10:17 -08:00
: <cxxflags>"-msse4.2 -funsigned-char -fno-omit-frame-pointer -fsanitize=address,undefined -fno-sanitize-recover=address,undefined -fsanitize-blacklist=libs/beast/tools/blacklist.supp"
2017-05-09 19:36:01 -07:00
<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
2018-11-11 14:07:55 -08:00
path-constant TEST_MAIN : include/boost/beast/_experimental/unit_test/main.cpp ;
2017-07-28 13:24:39 -07:00
lib static_asio
: test/asio.cpp
: requirements
[ requires
cxx11_constexpr
cxx11_decltype
cxx11_hdr_tuple
cxx11_template_aliases
cxx11_variadic_templates
]
2018-12-19 18:35:20 -08:00
<define>BOOST_ASIO_NO_DEPRECATED=1
<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
<define>BOOST_ASIO_SEPARATE_COMPILATION
2018-12-19 18:35:20 -08:00
<define>BOOST_COROUTINES_NO_DEPRECATION_WARNING=1
<target-os>windows:<define>_WIN32_WINNT=0x0501
<link>static
;
2017-08-01 18:11:51 +01:00
project /boost/beast
2016-04-27 14:58:07 +07:00
: requirements
<include>.
2017-07-30 17:41:17 -07:00
<include>./test/extras/include
<library>/boost/coroutine//boost_coroutine
2016-04-27 14:58:07 +07:00
<library>/boost/filesystem//boost_filesystem
<library>static_asio
<implicit-dependency>/boost//headers
2016-04-27 14:58:07 +07:00
<threading>multi
<debug-symbols>on
<runtime-link>shared
[ ac.check-library /boost/beast//ssl : <library>/boost/beast//ssl : <build>no ]
<library>/boost/beast//crypto
2017-08-10 17:44:21 -07:00
<define>BOOST_ALL_NO_LIB=1
2018-11-22 20:49:30 -08:00
<define>BOOST_ASIO_NO_DEPRECATED=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-08-10 17:44:21 -07:00
<define>BOOST_COROUTINES_NO_DEPRECATION_WARNING=1
2018-12-13 16:43:17 -08:00
<toolset>msvc:<cxxflags>"/bigobj"
<toolset>msvc-14.1:<cxxflags>"/permissive-"
2016-04-27 14:58:07 +07:00
<toolset>msvc:<define>_SCL_SECURE_NO_WARNINGS=1
<toolset>msvc:<define>_CRT_SECURE_NO_WARNINGS=1
2018-11-22 20:49:30 -08:00
<toolset>msvc:<define>_SILENCE_CXX17_ALLOCATOR_VOID_DEPRECATION_WARNING
<toolset>msvc:<define>_SILENCE_CXX17_ADAPTOR_TYPEDEFS_DEPRECATION_WARNING
2018-05-04 19:00:10 -07:00
<toolset>msvc,<variant>release:<cxxflags>"/Ob2 /Oi /Ot"
<target-os>linux:<define>_XOPEN_SOURCE=600
<target-os>linux:<define>_GNU_SOURCE=1
<target-os>solaris:<define>_XOPEN_SOURCE=500
<target-os>solaris:<define>__EXTENSIONS__
<target-os>solaris:<library>socket
<target-os>solaris:<library>nsl
<target-os>windows:<define>_WIN32_WINNT=0x0501
<target-os>windows,<toolset>cw:<library>ws2_32
<target-os>windows,<toolset>cw:<library>mswsock
<target-os>windows,<toolset>gcc:<library>ws2_32
<target-os>windows,<toolset>gcc:<library>mswsock
<target-os>windows,<toolset>gcc-cygwin:<define>__USE_W32_SOCKETS
<target-os>hpux,<toolset>gcc:<define>_XOPEN_SOURCE_EXTENDED
<target-os>hpux:<library>ipv6
<target-os>qnxnto:<library>socket
<target-os>haiku:<library>network
2016-04-27 14:58:07 +07:00
: usage-requirements
;