diff --git a/build.jam b/build.jam new file mode 100644 index 00000000..2424875e --- /dev/null +++ b/build.jam @@ -0,0 +1,28 @@ +# 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) + +require-b2 5.2 ; + +constant boost_dependencies : + /boost/assert//boost_assert + /boost/config//boost_config + /boost/core//boost_core + /boost/static_assert//boost_static_assert + /boost/throw_exception//boost_throw_exception + /boost/type_traits//boost_type_traits ; + +project /boost/integer + : common-requirements + include + ; + +explicit + [ alias boost_integer : : : : $(boost_dependencies) ] + [ alias all : boost_integer test ] + ; + +call-if : boost-library integer + ; + diff --git a/test/Jamfile.v2 b/test/Jamfile.v2 index acefec01..57ff2720 100644 --- a/test/Jamfile.v2 +++ b/test/Jamfile.v2 @@ -2,10 +2,13 @@ #~ Distributed under the Boost Software License, Version 1.0. #~ (See accompanying file LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt) +require-b2 5.0.1 ; +import-search /boost/config/checks ; +import config : requires ; import testing ; -import ../../config/checks/config : requires ; -project : requirements all gcc:-Wextra ; +project : requirements all gcc:-Wextra + /boost/integer//boost_integer ; obj has_gmpxx : has_gmpxx.cpp ; explicit has_gmpxx ; @@ -13,18 +16,18 @@ explicit has_gmpxx ; test-suite integer : [ run integer_traits_test.cpp ] - [ run integer_test.cpp : : : gcc:-Wno-long-long darwin:-Wno-long-long sun:"-Qoption ccfe -tmpldepth=128" ] - [ run integer_mask_test.cpp ] - [ run integer_log2_test.cpp ] - [ run static_log2_test.cpp ] - [ run static_min_max_test.cpp ] - [ run extended_euclidean_test.cpp ] - [ run mod_inverse_test.cpp ] + [ run integer_test.cpp : : : /boost/mpl//boost_mpl gcc:-Wno-long-long darwin:-Wno-long-long sun:"-Qoption ccfe -tmpldepth=128" ] + [ run integer_mask_test.cpp : : : /boost/detail//boost_detail ] + [ run integer_log2_test.cpp : : : /boost/multiprecision//boost_multiprecision ] + [ run static_log2_test.cpp : : : /boost/detail//boost_detail ] + [ run static_min_max_test.cpp : : : /boost/detail//boost_detail ] + [ run extended_euclidean_test.cpp : : : /boost/multiprecision//boost_multiprecision ] + [ run mod_inverse_test.cpp : : : /boost/optional//boost_optional /boost/multiprecision//boost_multiprecision ] [ compile integer_traits_include_test.cpp ] [ compile integer_include_test.cpp ] [ compile integer_mask_include_test.cpp ] [ compile static_log2_include_test.cpp ] - [ compile static_min_max_include_test.cpp ] + [ compile static_min_max_include_test.cpp : /boost/detail//boost_detail ] [ compile integer_fwd_include_test.cpp ] [ compile gcd_constexpr14_test.cpp ] [ compile gcd_noexcept_test.cpp ] @@ -35,5 +38,5 @@ test-suite integer [ compile-fail fail_uint_fast.cpp ] [ compile-fail fail_uint_least.cpp ] [ compile-fail fail_uint_65.cpp ] - [ run common_factor_test.cpp : : : [ check-target-builds has_gmpxx "Checking for gmpxx.h" : BOOST_INTEGER_HAS_GMPXX_H=1 -lgmp -lgmpxx ] ] + [ run common_factor_test.cpp : : : /boost/mpl//boost_mpl /boost/random//boost_random /boost/rational//boost_rational /boost/multiprecision//boost_multiprecision [ check-target-builds has_gmpxx "Checking for gmpxx.h" : BOOST_INTEGER_HAS_GMPXX_H=1 -lgmp -lgmpxx ] ] ;