Skip to content

Commit 6fd1394

Browse files
committed
Move inter-lib dependencies to a project variable and into the build targets.
1 parent 2e23333 commit 6fd1394

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

build.jam

+11-8
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,17 @@ require-b2 5.2 ;
1111
# Test without exceptions and rtti: b2 cxxstd=latest exception-handling=off rtti=off test//minimal
1212
# Test with sanitizers: b2 toolset=clang cxxstd=latest histogram_ubasan test
1313

14+
constant boost_dependencies :
15+
/boost/config//boost_config
16+
/boost/core//boost_core
17+
/boost/math//boost_math
18+
/boost/mp11//boost_mp11
19+
/boost/serialization//boost_serialization
20+
/boost/throw_exception//boost_throw_exception
21+
/boost/variant2//boost_variant2 ;
22+
1423
project /boost/histogram
1524
: common-requirements
16-
<library>/boost/config//boost_config
17-
<library>/boost/core//boost_core
18-
<library>/boost/math//boost_math
19-
<library>/boost/mp11//boost_mp11
20-
<library>/boost/serialization//boost_serialization
21-
<library>/boost/throw_exception//boost_throw_exception
22-
<library>/boost/variant2//boost_variant2
2325
<include>include
2426
: requirements
2527
<toolset>clang:<cxxflags>"-Wsign-compare -Wstrict-aliasing -fstrict-aliasing -Wvexing-parse -Wfloat-conversion"
@@ -33,7 +35,7 @@ project /boost/histogram
3335
;
3436

3537
explicit
36-
[ alias boost_histogram ]
38+
[ alias boost_histogram : : : : <library>$(boost_dependencies) ]
3739
[ alias all : boost_histogram test examples ]
3840
;
3941

@@ -47,3 +49,4 @@ variant histogram_ubasan : debug :
4749
<cxxflags>"-fno-omit-frame-pointer -O0 -fno-inline -fsanitize=address,leak,undefined -fno-sanitize-recover=all -fsanitize-blacklist=$(THIS_PATH)/tools/blacklist.supp"
4850
<linkflags>"-fsanitize=address,leak,undefined"
4951
;
52+

0 commit comments

Comments
 (0)