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 6e84870 commit aaaa80d
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 23 deletions.
49 changes: 26 additions & 23 deletions build.jam
Original file line number Diff line number Diff line change
Expand Up @@ -5,31 +5,33 @@

require-b2 5.2 ;

constant boost_dependencies :
/boost/array//boost_array
/boost/assert//boost_assert
/boost/config//boost_config
/boost/core//boost_core
/boost/detail//boost_detail
/boost/function//boost_function
/boost/integer//boost_integer
/boost/io//boost_io
/boost/iterator//boost_iterator
/boost/move//boost_move
/boost/mp11//boost_mp11
/boost/mpl//boost_mpl
/boost/optional//boost_optional
/boost/predef//boost_predef
/boost/preprocessor//boost_preprocessor
/boost/smart_ptr//boost_smart_ptr
/boost/spirit//boost_spirit
/boost/static_assert//boost_static_assert
/boost/throw_exception//boost_throw_exception
/boost/type_traits//boost_type_traits
/boost/utility//boost_utility
/boost/variant//boost_variant
/boost/variant2//boost_variant2 ;

project /boost/serialization
: common-requirements
<library>/boost/array//boost_array
<library>/boost/assert//boost_assert
<library>/boost/config//boost_config
<library>/boost/core//boost_core
<library>/boost/detail//boost_detail
<library>/boost/function//boost_function
<library>/boost/integer//boost_integer
<library>/boost/io//boost_io
<library>/boost/iterator//boost_iterator
<library>/boost/move//boost_move
<library>/boost/mp11//boost_mp11
<library>/boost/mpl//boost_mpl
<library>/boost/optional//boost_optional
<library>/boost/predef//boost_predef
<library>/boost/preprocessor//boost_preprocessor
<library>/boost/smart_ptr//boost_smart_ptr
<library>/boost/spirit//boost_spirit
<library>/boost/static_assert//boost_static_assert
<library>/boost/throw_exception//boost_throw_exception
<library>/boost/type_traits//boost_type_traits
<library>/boost/utility//boost_utility
<library>/boost/variant//boost_variant
<library>/boost/variant2//boost_variant2
<include>include
;

Expand All @@ -42,3 +44,4 @@ explicit
call-if : boost-library serialization
: install boost_serialization boost_wserialization
;

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

project
: source-location ../src
: common-requirements <library>$(boost_dependencies)
: requirements
<conditional>@include-spirit
: usage-requirements
Expand Down

0 comments on commit aaaa80d

Please sign in to comment.