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 ec7442e commit b5bf794
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
17 changes: 10 additions & 7 deletions build.jam
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,17 @@

require-b2 5.2 ;

constant boost_dependencies :
/boost/assert//boost_assert
/boost/config//boost_config
/boost/core//boost_core
/boost/smart_ptr//boost_smart_ptr
/boost/throw_exception//boost_throw_exception
/boost/tuple//boost_tuple
/boost/type_traits//boost_type_traits ;

project /boost/exception
: common-requirements
<library>/boost/assert//boost_assert
<library>/boost/config//boost_config
<library>/boost/core//boost_core
<library>/boost/smart_ptr//boost_smart_ptr
<library>/boost/throw_exception//boost_throw_exception
<library>/boost/tuple//boost_tuple
<library>/boost/type_traits//boost_type_traits
<include>include
;

Expand All @@ -25,3 +27,4 @@ explicit
call-if : boost-library exception
: install boost_exception
;

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

project
: source-location ../src
: common-requirements <library>$(boost_dependencies)
: requirements <link>static
: usage-requirements <define>BOOST_EXCEPTION_NO_LIB=1
;
Expand Down

0 comments on commit b5bf794

Please sign in to comment.