# # Copyright (c) 2019 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) # # Official repository: https://github.com/boostorg/beast # import ac ; import os ; import feature ; import boost ; import modules ; import testing ; import ../../config/checks/config : requires ; boost.use-project ; lib socket ; # SOLARIS, QNXNTO lib nsl ; # SOLARIS lib ws2_32 ; # NT lib mswsock ; # NT lib ipv6 ; # HPUX lib network ; # HAIKU lib ssl ; lib crypto ; lib crypt32 ; lib ssl : : windows ssleay32 ; lib crypto : : windows libeay32 ; feature.feature boost.beast.allow-deprecated : on off : propagated composite ; feature.compose on : BOOST_BEAST_ALLOW_DEPRECATED ; feature.feature boost.beast.separate-compilation : on off : propagated composite ; feature.compose on : BOOST_BEAST_SEPARATE_COMPILATION ; variant beast_coverage : debug : "-msse4.2 --coverage" "--coverage" ; variant beast_valgrind : release : on # Boost.Context uses this property ; variant beast_ubasan : release : "-msse4.2 -funsigned-char -fno-omit-frame-pointer -fsanitize=address,undefined -fno-sanitize-recover=address,undefined -fsanitize-blacklist=libs/beast/tools/blacklist.supp" "-fsanitize=address,undefined" BOOST_USE_ASAN=1 ; path-constant TEST_MAIN : include/boost/beast/_experimental/unit_test/main.cpp ; project /boost/beast ; local defines = [ requires cxx11_constexpr cxx11_decltype cxx11_hdr_tuple cxx11_template_aliases cxx11_variadic_templates ] /boost//headers . BOOST_ALL_NO_LIB=1 BOOST_ASIO_SEPARATE_COMPILATION BOOST_ASIO_NO_DEPRECATED=1 BOOST_ASIO_DISABLE_BOOST_ARRAY=1 BOOST_ASIO_DISABLE_BOOST_BIND=1 BOOST_ASIO_DISABLE_BOOST_DATE_TIME=1 BOOST_ASIO_DISABLE_BOOST_REGEX=1 BOOST_COROUTINES_NO_DEPRECATION_WARNING=1 msvc:"/bigobj" msvc-14.1:"/permissive-" msvc-14.2:"/permissive-" msvc:_SCL_SECURE_NO_WARNINGS=1 msvc:_CRT_SECURE_NO_WARNINGS=1 msvc:_SILENCE_CXX17_ALLOCATOR_VOID_DEPRECATION_WARNING msvc:_SILENCE_CXX17_ADAPTOR_TYPEDEFS_DEPRECATION_WARNING msvc,release:"/Ob2 /Oi /Ot" linux:_XOPEN_SOURCE=600 linux:_GNU_SOURCE=1 solaris:_XOPEN_SOURCE=500 solaris:__EXTENSIONS__ solaris:socket solaris:nsl windows:_WIN32_WINNT=0x0601 windows,gcc:ws2_32 windows,gcc:mswsock windows,gcc-cygwin:__USE_W32_SOCKETS hpux,gcc:_XOPEN_SOURCE_EXTENDED hpux:ipv6 qnxnto:socket haiku:network ; lib lib-asio : test/lib_asio.cpp : requirements static $(defines) : usage-requirements $(defines) ; lib lib-asio-ssl : test/lib_asio_ssl.cpp : requirements static $(defines) [ ac.check-library /boost/beast//ssl : /boost/beast//ssl/shared : no ] [ ac.check-library /boost/beast//crypto : /boost/beast//crypto/shared : no ] : usage-requirements $(defines) ; lib lib-beast : test/lib_beast.cpp : requirements static $(defines) : usage-requirements $(defines) ;