mirror of
https://github.com/boostorg/build.git
synced 2026-02-15 13:02:11 +00:00
Automatic configuration of tools.
[SVN r28348]
This commit is contained in:
37
v2/tools/boostbook-config.jam
Normal file
37
v2/tools/boostbook-config.jam
Normal file
@@ -0,0 +1,37 @@
|
||||
#~ Copyright 2005 Rene Rivera.
|
||||
#~ Distributed under the Boost Software License, Version 1.0.
|
||||
#~ (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
# Automatic configuration for BoostBook tools. To use, just import this module.
|
||||
|
||||
import os ;
|
||||
import toolset : using ;
|
||||
|
||||
local docbook_xsl-path = [ modules.peek : DOCBOOK_XSL_DIR ] ;
|
||||
local docbook_dtd-path = [ modules.peek : DOCBOOK_DTD_DIR ] ;
|
||||
if [ os.name ] = NT
|
||||
{
|
||||
docbook_xsl-path ?= [ GLOB "C:\\Boost\\share" : docbook-xsl* ] ;
|
||||
docbook_xsl-path = $(docbook_xsl-path[1]) ;
|
||||
docbook_dtd-path ?= [ GLOB "C:\\Boost\\share" : docbook-xml* ] ;
|
||||
docbook_dtd-path = $(docbook_dtd-path[1]) ;
|
||||
|
||||
if --debug-configuration in [ modules.peek : ARGV ]
|
||||
{
|
||||
ECHO "notice:" using boostbook ":" $(docbook_xsl-path) ":" $(docbook_dtd-path) ;
|
||||
}
|
||||
using boostbook : $(docbook_xsl-path) : $(docbook_dtd-path) ;
|
||||
}
|
||||
else
|
||||
{
|
||||
docbook_xsl-path ?= [ GLOB "/usr/local/share" "/usr/share" "/opt/share" : docbook-xsl* ] ;
|
||||
docbook_xsl-path = $(docbook_xsl-path[1]) ;
|
||||
docbook_dtd-path ?= [ GLOB "/usr/local/share" "/usr/share" "/opt/share" : docbook-xml* ] ;
|
||||
docbook_dtd-path = $(docbook_dtd-path[1]) ;
|
||||
|
||||
if --debug-configuration in [ modules.peek : ARGV ]
|
||||
{
|
||||
ECHO "notice:" using boostbook ":" $(docbook_xsl-path) ":" $(docbook_dtd-path) ;
|
||||
}
|
||||
using boostbook : $(docbook_xsl-path) : $(docbook_dtd-path) ;
|
||||
}
|
||||
@@ -20,7 +20,7 @@ if [ os.name ] = NT
|
||||
{
|
||||
if --debug-configuration in [ modules.peek : ARGV ]
|
||||
{
|
||||
ECHO "notice:" msvc ":" $(vc-version) ":" "$(vc-path)\\bin\\cl.exe" ;
|
||||
ECHO "notice:" using msvc ":" $(vc-version) ":" "$(vc-path)\\bin\\cl.exe" ;
|
||||
}
|
||||
using msvc : $(vc-version) : "$(vc-path)\\bin\\cl.exe" ;
|
||||
}
|
||||
|
||||
37
v2/tools/xsltproc-config.jam
Normal file
37
v2/tools/xsltproc-config.jam
Normal file
@@ -0,0 +1,37 @@
|
||||
#~ Copyright 2005 Rene Rivera.
|
||||
#~ Distributed under the Boost Software License, Version 1.0.
|
||||
#~ (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
# Automatic configuration for Python tools and librries. To use, just import this module.
|
||||
|
||||
import os ;
|
||||
import toolset : using ;
|
||||
|
||||
if [ os.name ] = NT
|
||||
{
|
||||
local xsltproc-path = [ GLOB [ modules.peek : PATH ] "C:\\Boost\\bin" : xsltproc\.exe ] ;
|
||||
xsltproc-path = $(xsltproc-path[1]) ;
|
||||
|
||||
if $(xsltproc-path)
|
||||
{
|
||||
if --debug-configuration in [ modules.peek : ARGV ]
|
||||
{
|
||||
ECHO "notice:" using xsltproc ":" $(xsltproc-path) ;
|
||||
}
|
||||
using xsltproc : $(xsltproc-path) ;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
local xsltproc-path = [ GLOB [ modules.peek : PATH ] : xsltproc ] ;
|
||||
xsltproc-path = $(xsltproc-path[1]) ;
|
||||
|
||||
if $(xsltproc-path)
|
||||
{
|
||||
if --debug-configuration in [ modules.peek : ARGV ]
|
||||
{
|
||||
ECHO "notice:" using xsltproc ":" $(xsltproc-path) ;
|
||||
}
|
||||
using xsltproc : $(xsltproc-path) ;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user