# Copyright René Ferdinand Rivera Morell 2023-2024 # 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) import ac ; import-search /boost/config/checks ; import config : requires ; import os ; import path ; local openssl-root ; if [ os.on-windows ] { openssl-root ?= [ os.environ OPENSSL_ROOT ] ; if ! $(openssl-root) && [ path.glob "C:/OpenSSL" : lib include ] { openssl-root = "C:/OpenSSL" ; } } using openssl : : $(openssl-root)/lib $(openssl-root)/include ; project : source-location ../test : common-requirements $(boost_dependencies) [ requires cxx11_constexpr cxx11_decltype cxx11_hdr_tuple cxx11_template_aliases cxx11_variadic_templates ] 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 on:BOOST_USE_VALGRIND on:BOOST_BEAST_ALLOW_DEPRECATED on:BOOST_BEAST_SEPARATE_COMPILATION ; explicit [ searched-lib socket ] # SOLARIS, QNXNTO [ searched-lib nsl ] # SOLARIS [ searched-lib ws2_32 : : windows ] # NT [ searched-lib mswsock : : windows ] # NT [ searched-lib ipv6 ] # HPUX [ searched-lib network ] # HAIKU ; lib boost_beast_asio : lib_asio.cpp : requirements static ; lib boost_beast_asio_ssl : lib_asio_ssl.cpp : requirements static [ ac.check-library /openssl//ssl : /openssl//ssl/shared : no ] [ ac.check-library /openssl//crypto : /openssl//crypto/shared : no ] : usage-requirements [ ac.check-library /openssl//ssl : /openssl//ssl/shared : no ] [ ac.check-library /openssl//crypto : /openssl//crypto/shared : no ] ; lib boost_beast : lib_beast.cpp : requirements static ;