From 82aa252a9ee96ff961b6d136be1ffe6e54557bd0 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 | 53 +++++++++++++++++++++++++----------------------- build/Jamfile.v2 | 1 + 2 files changed, 29 insertions(+), 25 deletions(-) diff --git a/build.jam b/build.jam index 6f6a6be1b..f42443c0e 100644 --- a/build.jam +++ b/build.jam @@ -5,33 +5,35 @@ require-b2 5.2 ; +constant boost_dependencies : + /boost/assert//boost_assert + /boost/atomic//boost_atomic + /boost/bind//boost_bind + /boost/chrono//boost_chrono + /boost/concept_check//boost_concept_check + /boost/config//boost_config + /boost/container//boost_container + /boost/container_hash//boost_container_hash + /boost/core//boost_core + /boost/date_time//boost_date_time + /boost/exception//boost_exception + /boost/function//boost_function + /boost/io//boost_io + /boost/move//boost_move + /boost/optional//boost_optional + /boost/predef//boost_predef + /boost/preprocessor//boost_preprocessor + /boost/smart_ptr//boost_smart_ptr + /boost/static_assert//boost_static_assert + /boost/system//boost_system + /boost/throw_exception//boost_throw_exception + /boost/tuple//boost_tuple + /boost/type_traits//boost_type_traits + /boost/utility//boost_utility + /boost/winapi//boost_winapi ; + project /boost/thread : common-requirements - /boost/assert//boost_assert - /boost/atomic//boost_atomic - /boost/bind//boost_bind - /boost/chrono//boost_chrono - /boost/concept_check//boost_concept_check - /boost/config//boost_config - /boost/container//boost_container - /boost/container_hash//boost_container_hash - /boost/core//boost_core - /boost/date_time//boost_date_time - /boost/exception//boost_exception - /boost/function//boost_function - /boost/io//boost_io - /boost/move//boost_move - /boost/optional//boost_optional - /boost/predef//boost_predef - /boost/preprocessor//boost_preprocessor - /boost/smart_ptr//boost_smart_ptr - /boost/static_assert//boost_static_assert - /boost/system//boost_system - /boost/throw_exception//boost_throw_exception - /boost/tuple//boost_tuple - /boost/type_traits//boost_type_traits - /boost/utility//boost_utility - /boost/winapi//boost_winapi include ; @@ -43,3 +45,4 @@ explicit call-if : boost-library thread : install boost_thread ; + diff --git a/build/Jamfile.v2 b/build/Jamfile.v2 index 19fb4745a..2ec45b8e4 100644 --- a/build/Jamfile.v2 +++ b/build/Jamfile.v2 @@ -42,6 +42,7 @@ exe has_atomic_flag_lockfree : ../build/has_atomic_flag_lockfree_test.cpp ; project : source-location ../src + : common-requirements $(boost_dependencies) : requirements multi #static:BOOST_THREAD_STATIC_LINK=1 #shared:BOOST_THREAD_DYN_LINK=1