Skip to content

Commit

Permalink
Move inter-lib dependencies to a project variable and into the build …
Browse files Browse the repository at this point in the history
…targets.
  • Loading branch information
grafikrobot committed Jul 24, 2024
1 parent b1ff784 commit 82aa252
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 25 deletions.
53 changes: 28 additions & 25 deletions build.jam
Original file line number Diff line number Diff line change
Expand Up @@ -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
<library>/boost/assert//boost_assert
<library>/boost/atomic//boost_atomic
<library>/boost/bind//boost_bind
<library>/boost/chrono//boost_chrono
<library>/boost/concept_check//boost_concept_check
<library>/boost/config//boost_config
<library>/boost/container//boost_container
<library>/boost/container_hash//boost_container_hash
<library>/boost/core//boost_core
<library>/boost/date_time//boost_date_time
<library>/boost/exception//boost_exception
<library>/boost/function//boost_function
<library>/boost/io//boost_io
<library>/boost/move//boost_move
<library>/boost/optional//boost_optional
<library>/boost/predef//boost_predef
<library>/boost/preprocessor//boost_preprocessor
<library>/boost/smart_ptr//boost_smart_ptr
<library>/boost/static_assert//boost_static_assert
<library>/boost/system//boost_system
<library>/boost/throw_exception//boost_throw_exception
<library>/boost/tuple//boost_tuple
<library>/boost/type_traits//boost_type_traits
<library>/boost/utility//boost_utility
<library>/boost/winapi//boost_winapi
<include>include
;

Expand All @@ -43,3 +45,4 @@ explicit
call-if : boost-library thread
: install boost_thread
;

1 change: 1 addition & 0 deletions build/Jamfile.v2
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ exe has_atomic_flag_lockfree : ../build/has_atomic_flag_lockfree_test.cpp ;

project
: source-location ../src
: common-requirements <library>$(boost_dependencies)
: requirements <threading>multi
#<link>static:<define>BOOST_THREAD_STATIC_LINK=1
#<link>shared:<define>BOOST_THREAD_DYN_LINK=1
Expand Down

0 comments on commit 82aa252

Please # to comment.