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 285b05d commit 9534376
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 @@ -11,15 +11,17 @@ import feature ;
import os ;
import predef ;

constant boost_dependencies :
/boost/assert//boost_assert
/boost/config//boost_config
/boost/core//boost_core
/boost/mp11//boost_mp11
/boost/pool//boost_pool
/boost/predef//boost_predef
/boost/smart_ptr//boost_smart_ptr ;

project /boost/context
: common-requirements
<library>/boost/assert//boost_assert
<library>/boost/config//boost_config
<library>/boost/core//boost_core
<library>/boost/mp11//boost_mp11
<library>/boost/pool//boost_pool
<library>/boost/predef//boost_predef
<library>/boost/smart_ptr//boost_smart_ptr
<include>include
: requirements
# Auto-detect toolset default address-model and architecture.
Expand Down Expand Up @@ -88,3 +90,4 @@ explicit
call-if : boost-library context
: install boost_context
;

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

project
: common-requirements <library>$(boost_dependencies)
: requirements
<target-os>windows:<define>_WIN32_WINNT=0x0601
<target-os>linux,<toolset>gcc,<segmented-stacks>on:<cxxflags>-fsplit-stack
Expand Down

0 comments on commit 9534376

Please sign in to comment.