Page MenuHomec4science

SConscript
No OneTemporary

File Metadata

Created
Sun, Jun 30, 19:12

SConscript

from os.path import join, exists
from subprocess import call
Import('main_env')
doxygen_tool = str(Dir('#site_scons/site_tools/doxygen'))
if not exists(doxygen_tool):
print("Cloning scons doxygen builder")
# Checking if Mercurial is installed
env = Environment()
conf = Configure(env)
if not conf.CheckProg('hg'):
print("Could not find Mercurial needed to clone the doxygen tool")
Exit(1)
try:
call(['hg', 'clone', 'https://bitbucket.org/russel/scons_doxygen', doxygen_tool])
except:
print("Error while running Mercurial to clone the doxygen tool")
Exit(1)
env_doxygen = main_env.Clone(
tools = ['default', 'doxygen']
)
src_dir = "#/doc/doxygen"
file = "Doxyfile"
build_dir = 'build-' + main_env['build_type'] + '/doc/doxygen'
Command(join("doxygen", file), join(src_dir, file), [
Mkdir(build_dir),
Copy("$TARGET", "$SOURCE")
]
)
env_doxygen.Doxygen("doxygen/Doxyfile")

Event Timeline