mirror of
https://github.com/boostorg/boost.git
synced 2025-04-10 15:21:29 +00:00
Add --show-libraries
[SVN r31373]
This commit is contained in:
parent
13c061c58c
commit
6583e68b7f
1 changed files with 17 additions and 0 deletions
17
Jamfile
17
Jamfile
|
@ -17,6 +17,9 @@ Options:
|
|||
|
||||
-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 @@ import python ;
|
|||
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)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue