From c511487e7840727c48262b7ff2d0f5616abda254 Mon Sep 17 00:00:00 2001 From: Rene Rivera Date: Mon, 11 Mar 2024 08:27:02 -0500 Subject: [PATCH 1/7] Make the library modular usable. --- build.jam | 20 ++++++++++++++++++++ test/Jamfile | 4 +++- 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 build.jam diff --git a/build.jam b/build.jam new file mode 100644 index 0000000..8ab1fb3 --- /dev/null +++ b/build.jam @@ -0,0 +1,20 @@ +# 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) + +import project ; + +project /boost/compat + : common-requirements + /boost/assert//boost_assert + include + ; + +explicit + [ alias boost_compat ] + [ alias all : boost_compat test ] + ; + +call-if : boost-library compat + ; diff --git a/test/Jamfile b/test/Jamfile index feb3106..c13c38c 100644 --- a/test/Jamfile +++ b/test/Jamfile @@ -4,7 +4,7 @@ # https://www.boost.org/LICENSE_1_0.txt import testing ; -import ../../config/checks/config : requires ; +import config : requires ; project : default-build @@ -20,6 +20,8 @@ project msvc:on gcc:on clang:on + + /boost/core//boost_core ; run quick.cpp ; From 7fc7795d6bb25c6a9d571574cd6a166df794ee78 Mon Sep 17 00:00:00 2001 From: Rene Rivera Date: Fri, 29 Mar 2024 21:15:58 -0500 Subject: [PATCH 2/7] Switch to library requirements instead of source. As source puts extra source in install targets. --- build.jam | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.jam b/build.jam index 8ab1fb3..91bc6e8 100644 --- a/build.jam +++ b/build.jam @@ -7,7 +7,7 @@ import project ; project /boost/compat : common-requirements - /boost/assert//boost_assert + /boost/assert//boost_assert include ; From d5cf9802bdc8d80a8a224e0c37e3d1f0ffc1753f Mon Sep 17 00:00:00 2001 From: Rene Rivera Date: Thu, 25 Apr 2024 22:12:11 -0500 Subject: [PATCH 3/7] Add new lib dependencies. --- build.jam | 2 ++ test/Jamfile | 1 + 2 files changed, 3 insertions(+) diff --git a/build.jam b/build.jam index 91bc6e8..149b881 100644 --- a/build.jam +++ b/build.jam @@ -8,6 +8,8 @@ import project ; project /boost/compat : common-requirements /boost/assert//boost_assert + /boost/config//boost_config + /boost/throw_exception//boost_throw_exception include ; diff --git a/test/Jamfile b/test/Jamfile index 32e58f7..c5d4ec2 100644 --- a/test/Jamfile +++ b/test/Jamfile @@ -22,6 +22,7 @@ project clang:on /boost/core//boost_core + /boost/mp11//boost_mp11 ; run quick.cpp ; From 6f8c2fe8c1b88bf18c36cbc09347bb91318d1e60 Mon Sep 17 00:00:00 2001 From: Rene Rivera Date: Sat, 4 May 2024 23:28:15 -0500 Subject: [PATCH 4/7] Add missing import-search for cconfig/predef checks. --- test/Jamfile | 1 + 1 file changed, 1 insertion(+) diff --git a/test/Jamfile b/test/Jamfile index 5ed73bd..0eb662c 100644 --- a/test/Jamfile +++ b/test/Jamfile @@ -4,6 +4,7 @@ # https://www.boost.org/LICENSE_1_0.txt import testing ; +import-search /boost/config/checks ; import config : requires ; project From df5cd71735fd2b1bb7b589acf54c8095118cf575 Mon Sep 17 00:00:00 2001 From: Rene Rivera Date: Sun, 5 May 2024 09:00:00 -0500 Subject: [PATCH 5/7] 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 149b881..91d6da4 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/compat From 438e0fbbf37145f24b37cbbaf612fd066978d95a Mon Sep 17 00:00:00 2001 From: Rene Rivera Date: Fri, 14 Jun 2024 11:33:55 -0500 Subject: [PATCH 6/7] 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 91d6da4..bdc5356 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/compat : common-requirements From 0d2593326f431de4514e34960a1c910e75e6177c Mon Sep 17 00:00:00 2001 From: Rene Rivera Date: Tue, 23 Jul 2024 22:34:24 -0500 Subject: [PATCH 7/7] Move inter-lib dependencies to a project variable and into the build targets. --- build.jam | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/build.jam b/build.jam index bdc5356..1af4f72 100644 --- a/build.jam +++ b/build.jam @@ -5,18 +5,21 @@ require-b2 5.2 ; +constant boost_dependencies : + /boost/assert//boost_assert + /boost/config//boost_config + /boost/throw_exception//boost_throw_exception ; + project /boost/compat : common-requirements - /boost/assert//boost_assert - /boost/config//boost_config - /boost/throw_exception//boost_throw_exception include ; explicit - [ alias boost_compat ] + [ alias boost_compat : : : : $(boost_dependencies) ] [ alias all : boost_compat test ] ; call-if : boost-library compat ; +