Boost logo

Boost-Build :

From: Douglas Gregor (doug.gregor_at_[hidden])
Date: 2005-10-07 16:12:26


I'd like to commit this patch to the top-level Boost Jamfile. I'm
using this --show-libraries option in my current attempt to add a
Unix-friendly configure hackery. Okay to commit?

Doug

Index: Jamfile
===================================================================
RCS file: /cvsroot/boost/boost/Jamfile,v
retrieving revision 1.18
diff -u -r1.18 Jamfile
--- Jamfile 27 Feb 2005 17:28:08 -0000 1.18
+++ Jamfile 7 Oct 2005 21:08:30 -0000
@@ -17,6 +17,9 @@

-sTOOLS=<toolsets> Indicates the tools to build with.

+ --show-libraries Displays the list of Boost libraries
that require
+ build and installation steps, then exit.
+
--layout=<layout> Determines what kind of build layout to
use. This
allows one to control the naming of the
resulting
libraries, and the locations of the
installed
@@ -162,12 +165,26 @@
local version-tag = [ MATCH "^([^.]+).([^.]+)" : $(BOOST_VERSION) ] ;
version-tag = $(version-tag:J="_") ;
+if --show-libraries in $(ARGV)
+{
+ if ! $(gSHOW_LIBRARIES_DONE)
+ {
+ local library-jamfiles ;
+ library-jamfiles = [ MATCH ^(.*build[/\\:]$(JAMFILE))$ :
+ [ glob-tree $(BOOST_ROOT)/libs : $
(JAMFILE) ] ] ;
+ libraries = [ MATCH ^.*libs/([^/]*)/build/Jamfile$ : $(library-
jamfiles) ] ;
+ ECHO $(libraries) ;
+ with-libraries = "" ;
+ gSHOW_LIBRARIES_DONE = yes ;
+ }
+} else {
#
install-subinclude
[ MATCH ^(.*build[/\\:]$(JAMFILE))$ : [ glob-tree $(BOOST_ROOT)/
libs : $(JAMFILE) ] ]
: <exclude>$(without-libraries) <include>$(with-libraries) ;
local lib-sources = [ install-sources lib ] ;
+}
if $(lib-sources)
{

 


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk