diff options
author | Vladimir Prus <ghost@cs.msu.su> | 2013-09-25 08:13:57 +0000 |
---|---|---|
committer | Vladimir Prus <ghost@cs.msu.su> | 2013-09-25 08:13:57 +0000 |
commit | 5663695fa1a489407f509db2138df18df24fb8e7 (patch) | |
tree | 7d7d7b93f15a4675eee63d7c1400180f00076daf /Jamroot | |
parent | 94fda07d1297f2e8e6b8aba8a240c5859a942067 (diff) | |
download | boost-5663695fa1a489407f509db2138df18df24fb8e7.tar.gz |
Initial modular patch, from Bjorn.
[SVN r85884]
Diffstat (limited to 'Jamroot')
-rw-r--r-- | Jamroot | 26 |
1 files changed, 25 insertions, 1 deletions
@@ -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,29 @@ 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>. ; +} + +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>. ; +} + +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 @@ -210,7 +234,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. |