diff --git a/Jamfile b/Jamfile deleted file mode 100644 index 56ca0a55..00000000 --- a/Jamfile +++ /dev/null @@ -1,21 +0,0 @@ -# Boost.Format Library Jamfile -# -# Copyright (c) 2003 Samuel Krempp -# -# Use, modification, and distribution are subject to 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) -# - -project - : requirements - gcc-4.7:-Wno-unused-parameter - pedantic - on - ; - -# please order by name to ease maintenance -build-project benchmark ; -build-project example ; -build-project test ; -build-project tools ; diff --git a/benchmark/Jamfile b/benchmark/Jamfile index 933ac966..f5b1f32e 100644 --- a/benchmark/Jamfile +++ b/benchmark/Jamfile @@ -6,19 +6,21 @@ # See www.boost.org/LICENSE_1_0.txt # -project libs/format/benchmark +project : requirements - msvc:_CRT_SECURE_NO_WARNINGS - ; + /boost/format//boost_format + /boost/timer//boost_timer + msvc:_CRT_SECURE_NO_WARNINGS + ; exe bench_format_no_locale : bench_format.cpp /boost/timer//boost_timer - : BOOST_NO_STD_LOCALE no_locale + : BOOST_NO_STD_LOCALE no_locale ; exe bench_format_normal - : bench_format.cpp + : bench_format.cpp /boost/timer//boost_timer : normal ; diff --git a/build.jam b/build.jam new file mode 100644 index 00000000..4207b499 --- /dev/null +++ b/build.jam @@ -0,0 +1,37 @@ +# 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/optional//boost_optional + /boost/smart_ptr//boost_smart_ptr + /boost/throw_exception//boost_throw_exception + /boost/utility//boost_utility ; + +project /boost/format + : common-requirements + include + ; + +explicit + [ alias boost_format : : : : $(boost_dependencies) ] + [ alias all + : boost_format + benchmark + example + test + tools + : pedantic + on + ] + ; + +call-if : boost-library format + ; + diff --git a/example/Jamfile.v2 b/example/Jamfile.v2 index 6029e897..e20be7d2 100644 --- a/example/Jamfile.v2 +++ b/example/Jamfile.v2 @@ -7,10 +7,12 @@ import testing ; +project : requirements /boost/format//boost_format ; + test-suite "format-examples" : [ run sample_advanced.cpp ] [ run sample_formats.cpp ] [ run sample_new_features.cpp ] - [ run sample_userType.cpp ] + [ run sample_userType.cpp : : : /boost/numeric_conversion//boost_numeric_conversion ] ; diff --git a/test/Jamfile.v2 b/test/Jamfile.v2 index f77f97c8..5e5c3bba 100644 --- a/test/Jamfile.v2 +++ b/test/Jamfile.v2 @@ -7,6 +7,11 @@ import testing ; +project : requirements + /boost/format//boost_format + /boost/algorithm//boost_algorithm + ; + test-suite "format" : [ run format_test1.cpp ] [ run format_test1.cpp : : : msvc:"/FIWindows.h" : format_test1_windows_h ] diff --git a/tools/Jamfile.v2 b/tools/Jamfile.v2 index fe148231..b1d6dcc5 100644 --- a/tools/Jamfile.v2 +++ b/tools/Jamfile.v2 @@ -7,12 +7,15 @@ project : requirements + /boost/format//boost_format _CRT_SECURE_NO_WARNINGS static ; -exe format_matrix +exe format_matrix : format_matrix.cpp + /boost/array//boost_array + /boost/filesystem//boost_filesystem /boost/program_options//boost_program_options /boost/system//boost_system ;