From 361d63cd2b620da12504590ddb79643f1f39f019 Mon Sep 17 00:00:00 2001 From: Rene Rivera Date: Fri, 7 Nov 2003 05:29:13 +0000 Subject: [PATCH] Add common-names rule to facilitate library authors using the common name targets and auto_link headers. [SVN r20721] --- v1/boost-base.jam | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/v1/boost-base.jam b/v1/boost-base.jam index 53dbd338f..9f6a1daf7 100644 --- a/v1/boost-base.jam +++ b/v1/boost-base.jam @@ -2589,8 +2589,14 @@ rule import ( modules + ) } } -# declare a project's installable sources (raw sources or built targets) -rule install ( name type : sources + : options * ) +# Declare a project's installable sources (raw sources or built targets) +# +rule install ( + name # The name to refer to these set of targets/sources. + type # The type of targets/sources, and therefore their install location. + : sources + # The targets and sources to make available for installation. + : options * + ) { if $(gINSTALL_SOURCES) && ! $(name) in $(gINSTALL_EXCLUSIONS) { @@ -2626,3 +2632,20 @@ rule install-sources ( type ) { return $(gINSTALL_SOURCES($(type))) ; } + +# Returns requirements for building libraries with the common +# naming conventions. To use add a call in the requirements section +# of the target(s): +# +# [ common-names ] +# +rule common-names ( + version-number ? # Version number for name tag, defaults to $(BOOST_VERSION) + ) +{ + version-number ?= $(BOOST_VERSION) ; + local version-tag = [ MATCH "^([^.]+).([^.]+)" : $(version-number) ] ; + version-tag = $(version-tag:J="_") ; + + return common-stage-tag -$(version-tag) ; +}