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 c67976a commit 3d07991
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 15 deletions.
33 changes: 18 additions & 15 deletions build.jam
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,25 @@

require-b2 5.2 ;

constant boost_dependencies :
/boost/algorithm//boost_algorithm
/boost/assert//boost_assert
/boost/config//boost_config
/boost/core//boost_core
/boost/io//boost_io
/boost/lexical_cast//boost_lexical_cast
/boost/numeric_conversion//boost_numeric_conversion
/boost/range//boost_range
/boost/smart_ptr//boost_smart_ptr
/boost/static_assert//boost_static_assert
/boost/throw_exception//boost_throw_exception
/boost/tokenizer//boost_tokenizer
/boost/type_traits//boost_type_traits
/boost/utility//boost_utility
/boost/winapi//boost_winapi ;

project /boost/date_time
: common-requirements
<library>/boost/algorithm//boost_algorithm
<library>/boost/assert//boost_assert
<library>/boost/config//boost_config
<library>/boost/core//boost_core
<library>/boost/io//boost_io
<library>/boost/lexical_cast//boost_lexical_cast
<library>/boost/numeric_conversion//boost_numeric_conversion
<library>/boost/range//boost_range
<library>/boost/smart_ptr//boost_smart_ptr
<library>/boost/static_assert//boost_static_assert
<library>/boost/throw_exception//boost_throw_exception
<library>/boost/tokenizer//boost_tokenizer
<library>/boost/type_traits//boost_type_traits
<library>/boost/utility//boost_utility
<library>/boost/winapi//boost_winapi
<include>include
;

Expand All @@ -33,3 +35,4 @@ explicit
call-if : boost-library date_time
: install boost_date_time
;

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


project
: common-requirements <library>$(boost_dependencies)
: requirements
<define>DATE_TIME_INLINE
<link>shared:<define>BOOST_ALL_DYN_LINK=1
Expand Down

0 comments on commit 3d07991

Please sign in to comment.