From 5f825106c7cb4b22b8971b38b3014011aff41ad3 Mon Sep 17 00:00:00 2001 From: Rene Rivera Date: Mon, 11 Mar 2024 08:32:21 -0500 Subject: [PATCH] Make the library modular usable. --- build.jam | 23 +++++++++++++++++++++++ test/Jamfile.v2 | 13 +++++++------ 2 files changed, 30 insertions(+), 6 deletions(-) create mode 100644 build.jam diff --git a/build.jam b/build.jam new file mode 100644 index 0000000..46eff1a --- /dev/null +++ b/build.jam @@ -0,0 +1,23 @@ +# Copyright René Ferdinand Rivera Morell 2023 +# 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 project ; + +project /boost/core + : common-requirements + /boost/assert//boost_assert + /boost/config//boost_config + /boost/static_assert//boost_static_assert + /boost/throw_exception//boost_throw_exception + include + ; + +explicit + [ alias boost_core ] + [ alias all : boost_core test ] + ; + +call-if : boost-library core + ; diff --git a/test/Jamfile.v2 b/test/Jamfile.v2 index 2bc6a4b..eb5b4e5 100644 --- a/test/Jamfile.v2 +++ b/test/Jamfile.v2 @@ -6,11 +6,14 @@ # See accompanying file LICENSE_1_0.txt or copy at # http://www.boost.org/LICENSE_1_0.txt +require-b2 5.0.1 ; +import-search /boost/config/checks ; +import config : requires ; import modules ; import testing ; project : requirements - + /boost/type_traits//boost_type_traits extra msvc:on clang:on @@ -194,7 +197,7 @@ run underlying_type.cpp ; compile-fail null_deleter_compile_fail_adl.cpp : $(warnings-as-errors-off) ; -run fclose_deleter_test.cpp : : : windows:_CRT_SECURE_NO_WARNINGS windows:_CRT_SECURE_NO_DEPRECATE ; +run fclose_deleter_test.cpp /boost/move//boost_move /boost/smart_ptr//boost_smart_ptr : : : windows:_CRT_SECURE_NO_WARNINGS windows:_CRT_SECURE_NO_DEPRECATE ; compile-fail fclose_deleter_compile_fail_adl.cpp : windows:_CRT_SECURE_NO_WARNINGS windows:_CRT_SECURE_NO_DEPRECATE $(warnings-as-errors-off) ; @@ -358,7 +361,7 @@ run sv_eq_test.cpp ; run sv_lt_test.cpp ; run sv_stream_insert_test.cpp ; run sv_conversion_test.cpp ; -run sv_conversion_test2.cpp : ; +run sv_conversion_test2.cpp /boost/utility//boost_utility : ; run sv_common_reference_test.cpp ; compile sv_common_reference_test2.cpp ; compile sv_windows_h_test.cpp ; @@ -395,11 +398,9 @@ run memory_resource_test.cpp ; run data_test.cpp ; run size_test.cpp ; -import ../../config/checks/config : requires ; - local CPP11 = [ requires cxx11_variadic_templates cxx11_template_aliases cxx11_decltype cxx11_constexpr cxx11_noexcept ] ; -local with-serialization = /boost//serialization/off $(warnings-as-errors-off) norecover:static $(CPP11) ; +local with-serialization = /boost/serialization//boost_serialization/off norecover:static $(CPP11) ; run serialization_nvp_test.cpp : : : $(with-serialization) norecover:no ; run serialization_split_free_test.cpp : : : $(with-serialization) ;