summaryrefslogtreecommitdiff
path: root/Jamroot
diff options
context:
space:
mode:
authorBeman Dawes <bdawes@acm.org>2013-10-27 21:10:04 +0000
committerBeman Dawes <bdawes@acm.org>2013-10-27 21:10:04 +0000
commit7b6fa2515eb656204d8b5f25e9899b27ef120e77 (patch)
treea0052e5f5251752e95b9d815e8898f3c8d403bc5 /Jamroot
parent0ad080b6334efa8c6650608c72a8d90a0e9de265 (diff)
downloadboost-7b6fa2515eb656204d8b5f25e9899b27ef120e77.tar.gz
Merge 86392 from trunk. The spirit change was not applied because the file is not present in branches/release.
[SVN r86489]
Diffstat (limited to 'Jamroot')
-rw-r--r--Jamroot31
1 files changed, 30 insertions, 1 deletions
diff --git a/Jamroot b/Jamroot
index d0a23a565f..bbb9bd357f 100644
--- a/Jamroot
+++ b/Jamroot
@@ -128,6 +128,7 @@ import sequence ;
import xsltproc ;
import set ;
import path ;
+import link ;
path-constant BOOST_ROOT : . ;
constant BOOST_VERSION : 1.55.0 ;
@@ -135,6 +136,34 @@ constant BOOST_JAMROOT_MODULE : $(__name__) ;
boostcpp.set-version $(BOOST_VERSION) ;
+
+local all-headers =
+ [ MATCH .*libs/(.*)/include/boost : [ glob libs/*/include/boost ] ] ;
+
+for dir in $(all-headers)
+{
+ link-directory $(dir)-headers : libs/$(dir)/include/boost : <location>. ;
+ explicit $(dir)-headers ;
+}
+
+local numeric-headers =
+ [ MATCH .*libs/numeric/(.*)/include/boost : [ glob libs/*/*/include/boost ] ] ;
+
+for dir in $(numeric-headers)
+{
+ link-directory numeric-$(dir)-headers : libs/numeric/$(dir)/include/boost : <location>. ;
+ explicit numeric-$(dir)-headers ;
+}
+
+if $(all-headers)
+{
+ constant BOOST_MODULARLAYOUT : $(all-headers) $(numeric-headers) ;
+}
+if $(BOOST_MODULARLAYOUT)
+{
+ echo modularized layout build ;
+}
+
project boost
: requirements <include>.
# Disable auto-linking for all targets here, primarily because it caused
@@ -213,7 +242,7 @@ for local l in $(all-libraries)
}
}
-alias headers : : : : <include>. ;
+alias headers : $(all-headers)-headers numeric-$(numeric-headers)-headers : : : <include>. ;
explicit headers ;
# Make project ids of all libraries known.