diff --git a/build.jam b/build.jam new file mode 100644 index 0000000..d6ead44 --- /dev/null +++ b/build.jam @@ -0,0 +1,33 @@ +# 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/config//boost_config + /boost/core//boost_core + /boost/function_types//boost_function_types + /boost/lexical_cast//boost_lexical_cast + /boost/math//boost_math_tr1 + /boost/mpl//boost_mpl + /boost/optional//boost_optional + /boost/parameter//boost_parameter + /boost/range//boost_range + /boost/spirit//boost_spirit + /boost/type_traits//boost_type_traits ; + +project /boost/convert + : common-requirements + include + ; + +explicit + [ alias boost_convert : : : : $(boost_dependencies) ] + [ alias all : boost_convert example test ] + ; + +call-if : boost-library convert + ; + diff --git a/example/jamfile.v2 b/example/jamfile.v2 index 485cb49..a42399b 100644 --- a/example/jamfile.v2 +++ b/example/jamfile.v2 @@ -8,6 +8,7 @@ import testing ; project convert_examples : requirements + /boost/convert//boost_convert on gcc:all msvc:all diff --git a/test/jamfile.v2 b/test/jamfile.v2 index 3058a54..c62f79c 100644 --- a/test/jamfile.v2 +++ b/test/jamfile.v2 @@ -3,12 +3,17 @@ # Distributed under the Boost Software License, Version 1.0. # See copy at http://www.boost.org/LICENSE_1_0.txt. +require-b2 5.0.1 ; + +import-search /boost/config/checks ; + # bring in the rules for testing import testing ; -import ../../config/checks/config : requires ; +import config : requires ; -project convert_test +project convert_test : requirements + /boost/convert//boost_convert on icpc:"-std=c++11" clang:"-std=c++11" @@ -22,9 +27,9 @@ project convert_test msvc:_SCL_SECURE_NO_WARNINGS msvc:_CRT_SECURE_NO_WARNINGS ../include - ; + ; -exe convert_test_performance : performance.cpp /boost/timer//boost_timer /boost/chrono//boost_chrono +exe convert_test_performance : performance.cpp /boost/timer//boost_timer /boost/chrono//boost_chrono : [ requires cxx17_hdr_charconv cxx17_structured_bindings cxx17_if_constexpr ] ; exe convert_test_performance_spirit : performance_spirit.cpp ; @@ -38,15 +43,15 @@ run user_type.cpp : : : : convert_test_user_type ; run str_to_int.cpp : : : : convert_test_str_to_int ; run sfinae.cpp : : : : convert_test_sfinae ; run has_member.cpp : : : : convert_test_has_member ; -run printf_converter.cpp : +run printf_converter.cpp : /boost/test/included_unit_test_framework : : : convert_test_printf_converter ; run stream_converter.cpp : /boost/test/included_unit_test_framework : : : convert_test_stream_converter ; # these tests require C++17 -run charconv_converter.cpp +run charconv_converter.cpp : /boost/test//included_unit_test_framework - : + : : [ requires cxx17_hdr_charconv cxx17_structured_bindings cxx17_if_constexpr ] gcc:"-O3 -std=c++17 -Wno-unused-variable -Wno-long-long" : convert_test_charconv_converter ;