Move inter-lib dependencies to a project variable and into the build targets.

This commit is contained in:
Rene Rivera
2024-07-23 22:34:23 -05:00
parent 44e5d5740c
commit 2ded200bd3
2 changed files with 8 additions and 4 deletions

View File

@ -5,12 +5,14 @@
require-b2 5.2 ;
constant boost_dependencies :
/boost/assert//boost_assert
/boost/config//boost_config
/boost/intrusive//boost_intrusive
/boost/move//boost_move ;
project /boost/container
: common-requirements
<library>/boost/assert//boost_assert
<library>/boost/config//boost_config
<library>/boost/intrusive//boost_intrusive
<library>/boost/move//boost_move
<include>include
;
@ -22,3 +24,4 @@ explicit
call-if : boost-library container
: install boost_container
;

View File

@ -8,6 +8,7 @@ import sequence ;
project
: source-location ../src
: common-requirements <library>$(boost_dependencies)
: usage-requirements # pass these requirement to dependents (i.e. users)
<link>shared:<define>BOOST_CONTAINER_DYN_LINK=1
<link>static:<define>BOOST_CONTAINER_STATIC_LINK=1