# # Copyright (c) 2013-2016 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) # import os ; import feature ; import boost ; import modules ; import testing ; 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 : : ssleay32 ; lib crypto : : libeay32 ; } else { lib ssl ; lib crypto ; } if [ os.name ] = MACOSX { using clang : : ; } variant coverage : debug : "-fprofile-arcs -ftest-coverage" "-lgcov" ; variant asan : release : "-fsanitize=address -fno-omit-frame-pointer" "-fsanitize=address" ; variant msan : debug : "-fsanitize=memory -fno-omit-frame-pointer -fsanitize-memory-track-origins=2 -fsanitize-memory-use-after-dtor" "-fsanitize=memory" ; variant usan : debug : "-fsanitize=undefined -fno-omit-frame-pointer" "-fsanitize=undefined" ; project beast : requirements . ./extras ./include #/boost//headers /boost/system//boost_system /boost/coroutine//boost_coroutine /boost/filesystem//boost_filesystem /boost/program_options//boost_program_options BOOST_ALL_NO_LIB=1 BOOST_COROUTINES_NO_DEPRECATION_WARNING=1 multi shared on gcc:-std=c++11 gcc:-Wno-unused-parameter gcc:-Wno-unused-variable # Temporary until we can figure out -isystem clang:-std=c++11 clang:-Wno-unused-parameter clang:-Wno-unused-variable # Temporary until we can figure out -isystem msvc:_SCL_SECURE_NO_WARNINGS=1 msvc:_CRT_SECURE_NO_WARNINGS=1 msvc:"/wd4100 /wd4251 /bigobj" msvc:release:"/Ob2 /Oi /Ot" LINUX:_XOPEN_SOURCE=600 LINUX:_GNU_SOURCE=1 SOLARIS:_XOPEN_SOURCE=500 SOLARIS:__EXTENSIONS__ SOLARIS:socket SOLARIS:nsl NT:_WIN32_WINNT=0x0601 NT,cw:ws2_32 NT,cw:mswsock NT,gcc:ws2_32 NT,gcc:mswsock NT,gcc-cygwin:__USE_W32_SOCKETS : usage-requirements : build-dir bin ; build-project test ; build-project examples ;