diff --git a/build.jam b/build.jam new file mode 100644 index 00000000..3e38a1b2 --- /dev/null +++ b/build.jam @@ -0,0 +1,26 @@ +# Copyright René Ferdinand Rivera Morell 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 ; + +project /boost/charconv + : common-requirements + include + ; + +explicit + [ alias boost_charconv : build//boost_charconv ] + [ alias all : boost_charconv test ] + ; + +call-if : boost-library charconv + : install boost_charconv + ; + diff --git a/build/Jamfile b/build/Jamfile index 695f1b2f..707f903b 100644 --- a/build/Jamfile +++ b/build/Jamfile @@ -3,9 +3,12 @@ # Distributed under the Boost Software License, Version 1.0. # https://www.boost.org/LICENSE_1_0.txt -import ../../config/checks/config : requires ; +require-b2 5.0.1 ; +import-search /boost/config/checks ; -project boost/charconv ; +import config : requires ; + +project : common-requirements $(boost_dependencies) ; local SOURCES = from_chars.cpp to_chars.cpp ; @@ -28,6 +31,5 @@ lib boost_charconv # usage-requirements : shared:BOOST_CHARCONV_DYN_LINK=1 + BOOST_CHARCONV_NO_LIB=1 ; - -boost-install boost_charconv ; diff --git a/test/Jamfile b/test/Jamfile index 6ef328ee..9722d9e6 100644 --- a/test/Jamfile +++ b/test/Jamfile @@ -3,8 +3,11 @@ # Distributed under the Boost Software License, Version 1.0. # https://www.boost.org/LICENSE_1_0.txt +require-b2 5.0.1 ; +import-search /boost/config/checks ; + import testing ; -import ../../config/checks/config : requires ; +import config : requires ; project : requirements @@ -58,7 +61,7 @@ run P2497.cpp ; run github_issue_110.cpp ; run github_issue_122.cpp ; run from_chars_string_view.cpp ; -run github_issue_152.cpp ; +run github_issue_152.cpp /boost/random//boost_random ; run github_issue_152_float128.cpp : : : [ check-target-builds ../config//has_float128 "GCC libquadmath and __float128 support" : "quadmath" ] ; run github_issue_154.cpp ; #run github_issue_156.cpp ;