From 275ee334d4c406643e9f560c40f9b73638cd9c7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Ferdinand=20Rivera=20Morell?= Date: Mon, 19 Aug 2024 10:07:58 -0500 Subject: [PATCH] Add support for modular build structure. (#531) --- build.jam | 27 +++++++++++++++++++++++++++ test/Jamfile.v2 | 5 +++-- 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 000000000..53e497396 --- /dev/null +++ b/build.jam @@ -0,0 +1,27 @@ +# 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/config//boost_config + /boost/core//boost_core + /boost/fusion//boost_fusion + /boost/mpl//boost_mpl + /boost/tuple//boost_tuple ; + +project /boost/hana + : common-requirements + include + ; + +explicit + [ alias boost_hana : : : : $(boost_dependencies) ] + [ alias all : boost_hana test ] + ; + +call-if : boost-library hana + ; + diff --git a/test/Jamfile.v2 b/test/Jamfile.v2 index 8096fd5bf..2915bb6ce 100644 --- a/test/Jamfile.v2 +++ b/test/Jamfile.v2 @@ -2,14 +2,15 @@ # Distributed under the Boost Software License, Version 1.0. # (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt) +import-search /boost/config/checks ; import config : requires ; import testing ; import regex ; project : requirements - ./_include - ../include + /boost/hana//boost_hana + _include ; rule hana-all-tests {