diff options
author | Vladimir Prus <vladimir.prus@gmail.com> | 2016-10-28 13:51:29 +0300 |
---|---|---|
committer | Rene Rivera <grafikrobot@gmail.com> | 2016-11-03 12:55:12 -0500 |
commit | 94b42cfd9d84b5ea9b41c881374d8752f89f0549 (patch) | |
tree | 59218ae6698d634a35efacb8d55b9bf9ab0aa525 /Jamroot | |
parent | 235330995e2be4d47bc3da346ea34e927e6950a9 (diff) | |
download | boost-94b42cfd9d84b5ea9b41c881374d8752f89f0549.tar.gz |
Introduce boost-lib helper function.
Diffstat (limited to 'Jamroot')
-rw-r--r-- | Jamroot | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -283,6 +283,22 @@ rule boost-install ( libraries * ) } } +# Creates a library target, adding autolink support and also creates +# stage and install targets via boost-install, above. +rule boost-lib ( name : sources * : requirements * : default-build * : usage-requirements * ) +{ + name = boost_$(name) ; + autolink = <link>shared:<define>BOOST_$(name:U)_DYN_LINK=1 ; + lib $(name) + : $(sources) + : $(requirements) $(autolink) + : $(default-build) + : $(usage-requirements) $(autolink) + ; + boost-install $(name) ; +} + + headers = # The .SUNWCCh files are present in tr1 include directory and have to be # installed (see http://lists.boost.org/Archives/boost/2007/05/121430.php). |