Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F109632143
SConscript
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Tue, Apr 22, 19:16
Size
946 B
Mime Type
text/x-python
Expires
Thu, Apr 24, 19:16 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
25654400
Attached To
rTAMAASPUB tamaas-public
SConscript
View Options
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
Log In to Comment