2 # Copyright (c) 2019 Vinnie Falco (vinnie dot falco at gmail dot com)
4 # Distributed under the Boost Software License, Version 1.0. (See accompanying
5 # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
7 # Official repository: https://github.com/boostorg/beast
16 import ../../config/checks/config : requires ;
20 lib socket ; # SOLARIS, QNXNTO
31 lib ssl : : <target-os>windows <name>ssleay32 ;
32 lib crypto : : <target-os>windows <name>libeay32 ;
34 feature.feature boost.beast.allow-deprecated : on off : propagated composite ;
35 feature.compose <boost.beast.allow-deprecated>on : <define>BOOST_BEAST_ALLOW_DEPRECATED ;
37 feature.feature boost.beast.separate-compilation : on off : propagated composite ;
38 feature.compose <boost.beast.separate-compilation>on : <define>BOOST_BEAST_SEPARATE_COMPILATION ;
40 variant beast_coverage
42 : <cxxflags>"-msse4.2 --coverage"
43 <linkflags>"--coverage"
46 variant beast_valgrind
48 : <valgrind>on # Boost.Context uses this property
53 : <cxxflags>"-msse4.2 -funsigned-char -fno-omit-frame-pointer -fsanitize=address,undefined -fno-sanitize-recover=address,undefined -fsanitize-blacklist=libs/beast/tools/blacklist.supp"
54 <linkflags>"-fsanitize=address,undefined"
55 <define>BOOST_USE_ASAN=1
58 path-constant TEST_MAIN : include/boost/beast/_experimental/unit_test/main.cpp ;
60 project /boost/beast ;
67 cxx11_template_aliases
68 cxx11_variadic_templates
70 <implicit-dependency>/boost//headers
72 <define>BOOST_ALL_NO_LIB=1
73 <define>BOOST_ASIO_SEPARATE_COMPILATION
74 <define>BOOST_ASIO_NO_DEPRECATED=1
75 <define>BOOST_ASIO_DISABLE_BOOST_ARRAY=1
76 <define>BOOST_ASIO_DISABLE_BOOST_BIND=1
77 <define>BOOST_ASIO_DISABLE_BOOST_DATE_TIME=1
78 <define>BOOST_ASIO_DISABLE_BOOST_REGEX=1
79 <define>BOOST_COROUTINES_NO_DEPRECATION_WARNING=1
80 <toolset>msvc:<cxxflags>"/bigobj"
81 <toolset>msvc-14.1:<cxxflags>"/permissive-"
82 <toolset>msvc-14.2:<cxxflags>"/permissive-"
83 <toolset>msvc:<define>_SCL_SECURE_NO_WARNINGS=1
84 <toolset>msvc:<define>_CRT_SECURE_NO_WARNINGS=1
85 <toolset>msvc:<define>_SILENCE_CXX17_ALLOCATOR_VOID_DEPRECATION_WARNING
86 <toolset>msvc:<define>_SILENCE_CXX17_ADAPTOR_TYPEDEFS_DEPRECATION_WARNING
87 <toolset>msvc,<variant>release:<cxxflags>"/Ob2 /Oi /Ot"
88 <target-os>linux:<define>_XOPEN_SOURCE=600
89 <target-os>linux:<define>_GNU_SOURCE=1
90 <target-os>solaris:<define>_XOPEN_SOURCE=500
91 <target-os>solaris:<define>__EXTENSIONS__
92 <target-os>solaris:<library>socket
93 <target-os>solaris:<library>nsl
94 <target-os>windows:<define>_WIN32_WINNT=0x0601
95 <target-os>windows,<toolset>gcc:<library>ws2_32
96 <target-os>windows,<toolset>gcc:<library>mswsock
97 <target-os>windows,<toolset>gcc-cygwin:<define>__USE_W32_SOCKETS
98 <target-os>hpux,<toolset>gcc:<define>_XOPEN_SOURCE_EXTENDED
99 <target-os>hpux:<library>ipv6
100 <target-os>qnxnto:<library>socket
101 <target-os>haiku:<library>network
114 : test/lib_asio_ssl.cpp
118 [ ac.check-library /boost/beast//ssl : <library>/boost/beast//ssl/<link>shared : <build>no ]
119 [ ac.check-library /boost/beast//crypto : <library>/boost/beast//crypto/<link>shared : <build>no ]