diff --git a/Jamfile.v2 b/Jamfile.v2 deleted file mode 100644 index 31fb5b0..0000000 --- a/Jamfile.v2 +++ /dev/null @@ -1,11 +0,0 @@ -# Boost.SafeNumerics Library example Jamfile -# -# Copyright (c) 2017 Robert Ramey -# -# 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 - -build-project example ; -build-project test ; -#build-project performance ; diff --git a/build.jam b/build.jam new file mode 100644 index 0000000..e483560 --- /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/concept_check//boost_concept_check + /boost/config//boost_config + /boost/core//boost_core + /boost/integer//boost_integer + /boost/logic//boost_logic + /boost/mp11//boost_mp11 ; + +project /boost/safe_numerics + : common-requirements + include + ; + +explicit + [ alias boost_safe_numerics : : : : $(boost_dependencies) ] + [ alias all : boost_safe_numerics example test ] + ; + +call-if : boost-library safe_numerics + ; + diff --git a/example/Jamfile.v2 b/example/Jamfile.v2 index 848400c..04ba235 100644 --- a/example/Jamfile.v2 +++ b/example/Jamfile.v2 @@ -8,6 +8,8 @@ import testing ; +project : requirements /boost/safe_numerics//boost_safe_numerics ; + run example1.cpp ; run example2.cpp ; run example3.cpp ; @@ -24,7 +26,7 @@ run example10.cpp ; run example11.cpp ; run example13.cpp ; run example14.cpp ; -run example15.cpp ; +run example15.cpp : : : /boost/rational//boost_rational ; run example16.cpp ; compile-fail example17.cpp ; run example18.cpp ; diff --git a/test/Jamfile.v2 b/test/Jamfile.v2 index f846a85..8776967 100644 --- a/test/Jamfile.v2 +++ b/test/Jamfile.v2 @@ -7,9 +7,11 @@ # http://www.boost.org/LICENSE_1_0.txt import testing ; -import ../../config/checks/config : requires ; -project - : requirements +import-search /boost/config/checks ; +import config : requires ; +project + : requirements + /boost/safe_numerics//boost_safe_numerics [ requires cxx14_constexpr ] # toolset optimizations 256 @@ -65,7 +67,7 @@ run test_performance.cpp # sources : debug:no # requirements ; run test_range.cpp ; -run test_rational.cpp ; +run test_rational.cpp : : : /boost/rational//boost_rational ; run test_right_shift_automatic.cpp ; run test_right_shift_native.cpp ; run test_safe_compare.cpp ;