summaryrefslogtreecommitdiff
path: root/Jamroot
diff options
context:
space:
mode:
authorVladimir Prus <vladimir@codesourcery.com>2014-12-03 10:31:17 +0300
committerVladimir Prus <vladimir@codesourcery.com>2014-12-03 10:33:49 +0300
commita7d89154ad4b9ab29a441d137d46c4e9b4933a91 (patch)
treef930505e3c7583736aeb5b555270da41cd3473f7 /Jamroot
parent6a39487396e5ddc5abc8c01609b1e47174aea8c5 (diff)
downloadboost-a7d89154ad4b9ab29a441d137d46c4e9b4933a91.tar.gz
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.
Diffstat (limited to 'Jamroot')
-rw-r--r--Jamroot11
1 files changed, 9 insertions, 2 deletions
diff --git a/Jamroot b/Jamroot
index c7561fe1bb..35ae3c0c47 100644
--- a/Jamroot
+++ b/Jamroot
@@ -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