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 fc3ab6d commit 5feb280
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
13 changes: 8 additions & 5 deletions build.jam
Original file line number Diff line number Diff line change
Expand Up @@ -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
<library>/boost/assert//boost_assert
<library>/boost/config//boost_config
<library>/boost/throw_exception//boost_throw_exception
<library>/boost/variant2//boost_variant2
<library>/boost/winapi//boost_winapi
<include>include
;

Expand All @@ -23,3 +25,4 @@ explicit
call-if : boost-library system
: install boost_system
;

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

project
: source-location ../src
: common-requirements <library>$(boost_dependencies)
: usage-requirements # pass these requirement to dependents (i.e. users)
<link>shared:<define>BOOST_SYSTEM_DYN_LINK=1
<link>static:<define>BOOST_SYSTEM_STATIC_LINK=1
Expand Down

0 comments on commit 5feb280

Please sign in to comment.