From 6b1d2fc5ad97044496a43a1d0019f7ba9eca60e6 Mon Sep 17 00:00:00 2001 From: Rene Rivera Date: Mon, 11 Mar 2024 08:27:02 -0500 Subject: [PATCH] Make the library modular usable. --- Jamfile | 11 ----------- build.jam | 36 ++++++++++++++++++++++++++++++++++++ example/Jamfile.v2 | 3 +-- minmax/test/Jamfile.v2 | 2 +- string/test/Jamfile.v2 | 2 +- test/Jamfile.v2 | 2 +- 6 files changed, 40 insertions(+), 16 deletions(-) delete mode 100644 Jamfile create mode 100644 build.jam diff --git a/Jamfile b/Jamfile deleted file mode 100644 index a2dbf99..0000000 --- a/Jamfile +++ /dev/null @@ -1,11 +0,0 @@ -# Boost.Algorithm Library Jamfile -# -# Copyright (c) 2018 James E. King III -# -# 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) - -# please order by name to ease maintenance -build-project example ; -build-project test ; diff --git a/build.jam b/build.jam new file mode 100644 index 0000000..f62e633 --- /dev/null +++ b/build.jam @@ -0,0 +1,36 @@ +# Copyright René Ferdinand Rivera Morell 2023 +# 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) + +import project ; + +project /boost/algorithm + : common-requirements + /boost/array//boost_array + /boost/assert//boost_assert + /boost/bind//boost_bind + /boost/concept_check//boost_concept_check + /boost/config//boost_config + /boost/core//boost_core + /boost/exception//boost_exception + /boost/function//boost_function + /boost/iterator//boost_iterator + /boost/mpl//boost_mpl + /boost/range//boost_range + /boost/regex//boost_regex + /boost/static_assert//boost_static_assert + /boost/throw_exception//boost_throw_exception + /boost/tuple//boost_tuple + /boost/type_traits//boost_type_traits + /boost/unordered//boost_unordered + include + ; + +explicit + [ alias boost_algorithm ] + [ alias all : boost_algorithm example test string/example string/test ] + ; + +call-if : boost-library algorithm + ; diff --git a/example/Jamfile.v2 b/example/Jamfile.v2 index 64a4055..96163b6 100644 --- a/example/Jamfile.v2 +++ b/example/Jamfile.v2 @@ -8,9 +8,8 @@ # See http://www.boost.org for updates, documentation, and revision history. -project /boost/algorithm/example +project : requirements - ../../../ speed msvc:_SCL_SECURE_NO_WARNINGS msvc:NOMINMAX diff --git a/minmax/test/Jamfile.v2 b/minmax/test/Jamfile.v2 index 384b359..2e41d1e 100644 --- a/minmax/test/Jamfile.v2 +++ b/minmax/test/Jamfile.v2 @@ -11,7 +11,7 @@ import testing ; alias unit_test_framework : # sources - /boost//unit_test_framework + /boost/test//unit_test_framework ; { diff --git a/string/test/Jamfile.v2 b/string/test/Jamfile.v2 index 7f60df7..8e53f33 100644 --- a/string/test/Jamfile.v2 +++ b/string/test/Jamfile.v2 @@ -11,7 +11,7 @@ import testing ; alias unit_test_framework : # sources - /boost//unit_test_framework + /boost/test//unit_test_framework ; test-suite algorithm/string diff --git a/test/Jamfile.v2 b/test/Jamfile.v2 index aef6bdb..9c8d199 100644 --- a/test/Jamfile.v2 +++ b/test/Jamfile.v2 @@ -11,7 +11,7 @@ import testing ; alias unit_test_framework : # sources - /boost//unit_test_framework + /boost/test//unit_test_framework ;