From 8a860e05d0f90d539e3e8710f6924668f1292a76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Ferdinand=20Rivera=20Morell?= Date: Sat, 24 Aug 2024 04:37:14 -0500 Subject: [PATCH] Add support for modular build structure. (#29) This is part of the effort to make the Boost libraries "modular" for build and consumption. See https://lists.boost.org/Archives/boost/2024/01/255704.php and https://github.com/grafikrobot/boost-b2-modular/blob/b2-modular/README.adoc for more information. This PR depends on the following other PRs being merged to both develop and master branches of the respective repos: - https://github.com/boostorg/boost/pull/854 This PR will be changed to ready for review, i.e. not draft, when the above are merged. Do not merge this one until that time. --- build.jam | 26 ++++++++++++++++++++++++++ test/Jamfile.v2 | 6 ++++-- 2 files changed, 30 insertions(+), 2 deletions(-) create mode 100644 build.jam diff --git a/build.jam b/build.jam new file mode 100644 index 0000000..a266ab2 --- /dev/null +++ b/build.jam @@ -0,0 +1,26 @@ +# 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/smart_ptr//boost_smart_ptr + /boost/throw_exception//boost_throw_exception ; + +project /boost/conversion + : common-requirements + include + ; + +explicit + [ alias boost_conversion : : : : $(boost_dependencies) ] + [ alias all : boost_conversion test ] + ; + +call-if : boost-library conversion + ; + diff --git a/test/Jamfile.v2 b/test/Jamfile.v2 index 9ee4d4e..3dd61b0 100644 --- a/test/Jamfile.v2 +++ b/test/Jamfile.v2 @@ -5,13 +5,15 @@ # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) # +require-b2 5.0.1 ; +import-search /boost/config/checks ; +import config : requires ; import testing ; import feature ; -import ../../config/checks/config : requires ; - project : requirements + /boost/conversion//boost_conversion [ requires cxx11_decltype ] # default to all warnings on: all