From 87f91364d93f26efcbacf28fe1a46e74c6d02884 Mon Sep 17 00:00:00 2001 From: Rene Rivera Date: Mon, 11 Mar 2024 08:38:16 -0500 Subject: [PATCH 1/8] Make the library modular usable. --- build.jam | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 build.jam diff --git a/build.jam b/build.jam new file mode 100644 index 0000000..3369431 --- /dev/null +++ b/build.jam @@ -0,0 +1,25 @@ +# 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/foreach + : common-requirements + /boost/config//boost_config + /boost/core//boost_core + /boost/iterator//boost_iterator + /boost/mpl//boost_mpl + /boost/range//boost_range + /boost/type_traits//boost_type_traits + include + ; + +explicit + [ alias boost_foreach ] + [ alias all : boost_foreach test ] + ; + +call-if : boost-library foreach + ; From ef34d3b8a85195c338b9159ecb37ccca1248c35d Mon Sep 17 00:00:00 2001 From: Rene Rivera Date: Fri, 29 Mar 2024 21:15:58 -0500 Subject: [PATCH 2/8] Switch to library requirements instead of source. As source puts extra source in install targets. --- build.jam | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/build.jam b/build.jam index 3369431..052ce0c 100644 --- a/build.jam +++ b/build.jam @@ -7,12 +7,12 @@ import project ; project /boost/foreach : common-requirements - /boost/config//boost_config - /boost/core//boost_core - /boost/iterator//boost_iterator - /boost/mpl//boost_mpl - /boost/range//boost_range - /boost/type_traits//boost_type_traits + /boost/config//boost_config + /boost/core//boost_core + /boost/iterator//boost_iterator + /boost/mpl//boost_mpl + /boost/range//boost_range + /boost/type_traits//boost_type_traits include ; From 93a3d5bf0dacd443d09d4157dc26bfaddb45c2d5 Mon Sep 17 00:00:00 2001 From: Rene Rivera Date: Sun, 5 May 2024 09:00:01 -0500 Subject: [PATCH 3/8] Add requires-b2 check to top-level build file. --- build.jam | 2 ++ 1 file changed, 2 insertions(+) diff --git a/build.jam b/build.jam index 052ce0c..47ad50d 100644 --- a/build.jam +++ b/build.jam @@ -3,6 +3,8 @@ # (See accompanying file LICENSE_1_0.txt or copy at # http://www.boost.org/LICENSE_1_0.txt) +require-b2 5.1 ; + import project ; project /boost/foreach From 9fd54a8cdee6a849b207d059545af1e4ce3fcc12 Mon Sep 17 00:00:00 2001 From: Rene Rivera Date: Fri, 14 Jun 2024 11:33:55 -0500 Subject: [PATCH 4/8] Bump B2 require to 5.2 --- build.jam | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/build.jam b/build.jam index 47ad50d..0c000a8 100644 --- a/build.jam +++ b/build.jam @@ -3,9 +3,7 @@ # (See accompanying file LICENSE_1_0.txt or copy at # http://www.boost.org/LICENSE_1_0.txt) -require-b2 5.1 ; - -import project ; +require-b2 5.2 ; project /boost/foreach : common-requirements From 25619b59b3de1385e637f3a16a7a2a6a30166182 Mon Sep 17 00:00:00 2001 From: Rene Rivera Date: Sat, 20 Jul 2024 22:52:03 -0500 Subject: [PATCH 5/8] Update copyright dates. --- build.jam | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.jam b/build.jam index 0c000a8..cfcc447 100644 --- a/build.jam +++ b/build.jam @@ -1,4 +1,4 @@ -# Copyright René Ferdinand Rivera Morell 2023 +# 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) From d61f23ed01e9b9f9eb253dfed8e8af8a6b5b3f31 Mon Sep 17 00:00:00 2001 From: Rene Rivera Date: Tue, 23 Jul 2024 22:34:22 -0500 Subject: [PATCH 6/8] Move inter-lib dependencies to a project variable and into the build targets. --- build.jam | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/build.jam b/build.jam index cfcc447..9b07d7c 100644 --- a/build.jam +++ b/build.jam @@ -5,21 +5,24 @@ require-b2 5.2 ; +constant boost_dependencies : + /boost/config//boost_config + /boost/core//boost_core + /boost/iterator//boost_iterator + /boost/mpl//boost_mpl + /boost/range//boost_range + /boost/type_traits//boost_type_traits ; + project /boost/foreach : common-requirements - /boost/config//boost_config - /boost/core//boost_core - /boost/iterator//boost_iterator - /boost/mpl//boost_mpl - /boost/range//boost_range - /boost/type_traits//boost_type_traits include ; explicit - [ alias boost_foreach ] + [ alias boost_foreach : : : : $(boost_dependencies) ] [ alias all : boost_foreach test ] ; call-if : boost-library foreach ; + From 661091fe6e321a606e4f8b1019938f01cbc3389d Mon Sep 17 00:00:00 2001 From: Rene Rivera Date: Fri, 2 Aug 2024 22:05:22 -0500 Subject: [PATCH 7/8] Update build deps. --- test/Jamfile.v2 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/Jamfile.v2 b/test/Jamfile.v2 index 084c5c8..37e1ab8 100644 --- a/test/Jamfile.v2 +++ b/test/Jamfile.v2 @@ -5,7 +5,8 @@ # bring in rules for testing import testing ; -project : requirements msvc:on ; +project : requirements msvc:on + /boost/foreach//boost_foreach ; test-suite "foreach" : [ run stl_byval.cpp ] From 111908163470786f1e878c13422cf43435c6ffed Mon Sep 17 00:00:00 2001 From: Rene Rivera Date: Mon, 7 Apr 2025 15:36:24 -0500 Subject: [PATCH 8/8] Move project global include to target local include. --- build.jam | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/build.jam b/build.jam index 9b07d7c..fff19f0 100644 --- a/build.jam +++ b/build.jam @@ -14,12 +14,11 @@ constant boost_dependencies : /boost/type_traits//boost_type_traits ; project /boost/foreach - : common-requirements - include ; explicit - [ alias boost_foreach : : : : $(boost_dependencies) ] + [ alias boost_foreach : : : + : include $(boost_dependencies) ] [ alias all : boost_foreach test ] ;