Make use of inspect and wave tools conditional.

When using bcp, the inspect tool is normally not copied, and
wave tool is not copied unless wave library is requested. However,
Jamroot unconditionally refers to those projects via use-project.
It's not entirely clear why it does so, and the commits that add
reference have no rationale.

This commit takes the safe route of guarding use of these projects
with the check for their presence.
This commit is contained in:
Vladimir Prus 2014-12-03 10:31:17 +03:00
parent 6a39487396
commit a7d89154ad

11
Jamroot
View file

@ -235,8 +235,15 @@ for local l in $(all-libraries)
use-project /boost/$(l) : libs/$(l)/build ;
}
use-project /boost/tools/inspect : tools/inspect/build ;
use-project /boost/libs/wave/tool : libs/wave/tool/build ;
if [ path.exists tools/inspect ]
{
use-project /boost/tools/inspect : tools/inspect/build ;
}
if [ path.exists libs/wave/tool ]
{
use-project /boost/libs/wave/tool : libs/wave/tool/build ;
}
# This rule should be called from libraries' Jamfiles and will create two
# targets, "install" and "stage", that will install or stage that library. The