2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-17 13:42:14 +00:00
Files
build/v2/tools/doxygen-config.jam
Rene Rivera 2b2abddf5e Automatic configuration of tools.
[SVN r28351]
2005-04-21 01:12:18 +00:00

48 lines
1.2 KiB
Plaintext

#~ 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 ProgramFiles = [ modules.peek : ProgramFiles ] ;
if $(ProgramFiles)
{
ProgramFiles = "$(ProgramFiles:J= )" ;
}
else
{
ProgramFiles = "C:\\Program Files" ;
}
local doxygen-path = [ GLOB [ modules.peek : PATH ] "$(ProgramFiles)\\doxygen\\bin" : doxygen\.exe ] ;
doxygen-path = $(doxygen-path[1]) ;
if $(doxygen-path)
{
if --debug-configuration in [ modules.peek : ARGV ]
{
ECHO "notice:" using doxygen ":" $(doxygen-path) ;
}
using doxygen : $(doxygen-path) ;
}
}
else
{
local doxygen-path = [ GLOB [ modules.peek : PATH ] : doxygen ] ;
doxygen-path = $(doxygen-path[1]) ;
if $(xsltproc-path)
{
if --debug-configuration in [ modules.peek : ARGV ]
{
ECHO "notice:" using doxygen ":" $(doxygen-path) ;
}
using doxygen : $(doxygen-path) ;
}
}