mirror of
https://github.com/boostorg/beast.git
synced 2025-07-30 04:47:29 +02:00
Add b2 features for compile-time options used in testing:
- `boost.beast.allow-deprecated=on` disables deprecated features. - `boost.beast.separate-compilation=on` enables separate compilation. - Add CI matrix items to check header-only, no-deprecated build. Signed-off-by: Damian Jarek <damian.jarek93@gmail.com>
This commit is contained in:
@ -1,3 +1,9 @@
|
|||||||
|
Version 257:
|
||||||
|
|
||||||
|
* Add b2 features for compile-time options used in testing
|
||||||
|
|
||||||
|
--------------------------------------------------------------------------------
|
||||||
|
|
||||||
Version 256:
|
Version 256:
|
||||||
|
|
||||||
* Remove uses of the deprecated `buffers` function
|
* Remove uses of the deprecated `buffers` function
|
||||||
|
7
Jamfile
7
Jamfile
@ -31,6 +31,12 @@ lib crypt32 ;
|
|||||||
lib ssl : : <target-os>windows <name>ssleay32 ;
|
lib ssl : : <target-os>windows <name>ssleay32 ;
|
||||||
lib crypto : : <target-os>windows <name>libeay32 ;
|
lib crypto : : <target-os>windows <name>libeay32 ;
|
||||||
|
|
||||||
|
feature.feature boost.beast.allow-deprecated : on off : optional propagated composite ;
|
||||||
|
feature.compose <boost.beast.allow-deprecated>on : <define>BOOST_BEAST_ALLOW_DEPRECATED ;
|
||||||
|
|
||||||
|
feature.feature boost.beast.separate-compilation : on off : optional propagated composite ;
|
||||||
|
feature.compose <boost.beast.separate-compilation>on : <define>BOOST_BEAST_SEPARATE_COMPILATION ;
|
||||||
|
|
||||||
variant beast_coverage
|
variant beast_coverage
|
||||||
: debug
|
: debug
|
||||||
: <cxxflags>"-msse4.2 --coverage"
|
: <cxxflags>"-msse4.2 --coverage"
|
||||||
@ -70,7 +76,6 @@ local defines =
|
|||||||
<define>BOOST_ASIO_DISABLE_BOOST_BIND=1
|
<define>BOOST_ASIO_DISABLE_BOOST_BIND=1
|
||||||
<define>BOOST_ASIO_DISABLE_BOOST_DATE_TIME=1
|
<define>BOOST_ASIO_DISABLE_BOOST_DATE_TIME=1
|
||||||
<define>BOOST_ASIO_DISABLE_BOOST_REGEX=1
|
<define>BOOST_ASIO_DISABLE_BOOST_REGEX=1
|
||||||
<define>BOOST_BEAST_SEPARATE_COMPILATION
|
|
||||||
<define>BOOST_COROUTINES_NO_DEPRECATION_WARNING=1
|
<define>BOOST_COROUTINES_NO_DEPRECATION_WARNING=1
|
||||||
<toolset>msvc:<cxxflags>"/bigobj"
|
<toolset>msvc:<cxxflags>"/bigobj"
|
||||||
<toolset>msvc-14.1:<cxxflags>"/permissive-"
|
<toolset>msvc-14.1:<cxxflags>"/permissive-"
|
||||||
|
@ -45,6 +45,14 @@ jobs:
|
|||||||
B2_FLAGS: <define>BOOST_BEAST_USE_STD_STRING_VIEW
|
B2_FLAGS: <define>BOOST_BEAST_USE_STD_STRING_VIEW
|
||||||
CXXSTD: 17
|
CXXSTD: 17
|
||||||
B2_TARGETS: libs/beast/test//run-fat-tests libs/beast/example
|
B2_TARGETS: libs/beast/test//run-fat-tests libs/beast/example
|
||||||
|
GCC 8 C++11 HEADER_ONLY NO_DEPRECATED:
|
||||||
|
TOOLSET: gcc
|
||||||
|
CXX: g++-8
|
||||||
|
PACKAGES: g++-8
|
||||||
|
VARIANT: release
|
||||||
|
B2_FLAGS: <boost.beast.separate-compilation>off <boost.beast.allow-deprecated>off
|
||||||
|
CXXSTD: 11
|
||||||
|
B2_TARGETS: libs/beast/test//run-fat-tests
|
||||||
GCC 8 C++11 UBASAN:
|
GCC 8 C++11 UBASAN:
|
||||||
TOOLSET: gcc
|
TOOLSET: gcc
|
||||||
CXX: g++-8
|
CXX: g++-8
|
||||||
@ -136,6 +144,15 @@ jobs:
|
|||||||
CXXSTD: 11
|
CXXSTD: 11
|
||||||
CXX_FLAGS: <cxxflags>"-stdlib=libc++ -msse4.2 -funsigned-char -fno-omit-frame-pointer" <linkflags>-stdlib=libc++
|
CXX_FLAGS: <cxxflags>"-stdlib=libc++ -msse4.2 -funsigned-char -fno-omit-frame-pointer" <linkflags>-stdlib=libc++
|
||||||
B2_TARGETS: libs/beast/test//run-fat-tests
|
B2_TARGETS: libs/beast/test//run-fat-tests
|
||||||
|
Clang 8 libc++ C++11 Release HEADER_ONLY NO_DEPRECATED:
|
||||||
|
TOOLSET: clang
|
||||||
|
CXX: clang++-8
|
||||||
|
PACKAGES: clang-8 libc++-8-dev libc++abi-8-dev
|
||||||
|
VARIANT: release
|
||||||
|
B2_FLAGS: <boost.beast.separate-compilation>off <boost.beast.allow-deprecated>off
|
||||||
|
CXXSTD: 11
|
||||||
|
CXX_FLAGS: <cxxflags>"-stdlib=libc++ -msse4.2 -funsigned-char -fno-omit-frame-pointer" <linkflags>-stdlib=libc++
|
||||||
|
B2_TARGETS: libs/beast/test//run-fat-tests
|
||||||
steps:
|
steps:
|
||||||
- bash: |
|
- bash: |
|
||||||
sudo apt update && sudo apt install -y $PACKAGES
|
sudo apt update && sudo apt install -y $PACKAGES
|
||||||
|
@ -21,7 +21,7 @@ project /boost/beast/example
|
|||||||
cxx11_variadic_templates
|
cxx11_variadic_templates
|
||||||
]
|
]
|
||||||
<library>/boost/beast//lib-asio/<link>static
|
<library>/boost/beast//lib-asio/<link>static
|
||||||
<library>/boost/beast//lib-beast/<link>static
|
<boost.beast.separate-compilation>on:<library>/boost/beast//lib-beast/<link>static
|
||||||
;
|
;
|
||||||
|
|
||||||
build-project advanced ;
|
build-project advanced ;
|
||||||
|
@ -31,10 +31,9 @@ project /boost/beast/test
|
|||||||
cxx11_variadic_templates
|
cxx11_variadic_templates
|
||||||
]
|
]
|
||||||
<include>./extern
|
<include>./extern
|
||||||
<define>BOOST_BEAST_ALLOW_DEPRECATED
|
|
||||||
<define>BOOST_BEAST_TESTS
|
<define>BOOST_BEAST_TESTS
|
||||||
<library>/boost/beast//lib-asio/<link>static
|
<library>/boost/beast//lib-asio/<link>static
|
||||||
<library>/boost/beast//lib-beast/<link>static
|
<boost.beast.separate-compilation>on:<library>/boost/beast//lib-beast/<link>static
|
||||||
<library>/boost/filesystem//boost_filesystem
|
<library>/boost/filesystem//boost_filesystem
|
||||||
<library>/boost/coroutine//boost_coroutine
|
<library>/boost/coroutine//boost_coroutine
|
||||||
;
|
;
|
||||||
|
Reference in New Issue
Block a user