From 5feb28061282ff43ab99bc4f1a0759a1d064c17e Mon Sep 17 00:00:00 2001 From: Rene Rivera Date: Tue, 23 Jul 2024 22:34:22 -0500 Subject: [PATCH] Move inter-lib dependencies to a project variable and into the build targets. --- build.jam | 13 ++++++++----- build/Jamfile.v2 | 1 + 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/build.jam b/build.jam index a3c9f6d9..486889cd 100644 --- a/build.jam +++ b/build.jam @@ -5,13 +5,15 @@ require-b2 5.2 ; +constant boost_dependencies : + /boost/assert//boost_assert + /boost/config//boost_config + /boost/throw_exception//boost_throw_exception + /boost/variant2//boost_variant2 + /boost/winapi//boost_winapi ; + project /boost/system : common-requirements - /boost/assert//boost_assert - /boost/config//boost_config - /boost/throw_exception//boost_throw_exception - /boost/variant2//boost_variant2 - /boost/winapi//boost_winapi include ; @@ -23,3 +25,4 @@ explicit call-if : boost-library system : install boost_system ; + diff --git a/build/Jamfile.v2 b/build/Jamfile.v2 index 8ae56851..13d3f792 100644 --- a/build/Jamfile.v2 +++ b/build/Jamfile.v2 @@ -9,6 +9,7 @@ project : source-location ../src + : common-requirements $(boost_dependencies) : usage-requirements # pass these requirement to dependents (i.e. users) shared:BOOST_SYSTEM_DYN_LINK=1 static:BOOST_SYSTEM_STATIC_LINK=1