Skip to content

Commit b77aeaa

Browse files
committed
Move inter-lib dependencies to a project variable and into the build targets.
1 parent 292b605 commit b77aeaa

File tree

2 files changed

+17
-13
lines changed

2 files changed

+17
-13
lines changed

build.jam

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,23 @@
55

66
require-b2 5.2 ;
77

8+
constant boost_dependencies :
9+
/boost/any//boost_any
10+
/boost/bind//boost_bind
11+
/boost/config//boost_config
12+
/boost/core//boost_core
13+
/boost/detail//boost_detail
14+
/boost/function//boost_function
15+
/boost/iterator//boost_iterator
16+
/boost/lexical_cast//boost_lexical_cast
17+
/boost/smart_ptr//boost_smart_ptr
18+
/boost/static_assert//boost_static_assert
19+
/boost/throw_exception//boost_throw_exception
20+
/boost/tokenizer//boost_tokenizer
21+
/boost/type_traits//boost_type_traits ;
22+
823
project /boost/program_options
924
: common-requirements
10-
<library>/boost/any//boost_any
11-
<library>/boost/bind//boost_bind
12-
<library>/boost/config//boost_config
13-
<library>/boost/core//boost_core
14-
<library>/boost/detail//boost_detail
15-
<library>/boost/function//boost_function
16-
<library>/boost/iterator//boost_iterator
17-
<library>/boost/lexical_cast//boost_lexical_cast
18-
<library>/boost/smart_ptr//boost_smart_ptr
19-
<library>/boost/static_assert//boost_static_assert
20-
<library>/boost/throw_exception//boost_throw_exception
21-
<library>/boost/tokenizer//boost_tokenizer
22-
<library>/boost/type_traits//boost_type_traits
2325
<include>include
2426
;
2527

@@ -31,3 +33,4 @@ explicit
3133
call-if : boost-library program_options
3234
: install boost_program_options
3335
;
36+

build/Jamfile.v2

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11

22
project
33
: source-location ../src
4+
: common-requirements <library>$(boost_dependencies)
45
;
56

67
SOURCES =

0 commit comments

Comments
 (0)