From 5b85bc04a3d015d70813620e464f10d6dc637e47 Mon Sep 17 00:00:00 2001 From: Vladimir Prus Date: Fri, 28 Oct 2016 13:51:29 +0300 Subject: [PATCH] Introduce boost-lib helper function. --- Jamroot | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/Jamroot b/Jamroot index 14ff0abfb2..790b3aaee6 100644 --- a/Jamroot +++ b/Jamroot @@ -301,6 +301,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 = shared: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).