2
0
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:
Rene Rivera
2005-04-20 23:23:28 +00:00
parent 296b2f29cf
commit d33cd065b1
3 changed files with 75 additions and 1 deletions

View 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) ;
}

View File

@@ -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" ;
}

View 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) ;
}
}