/[escript]/trunk/doc/doxygen/SConscript
ViewVC logotype

Diff of /trunk/doc/doxygen/SConscript

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 488 by jgs, Thu Feb 2 06:19:23 2006 UTC revision 5593 by jfenwick, Fri Apr 24 01:36:26 2015 UTC
# Line 1  Line 1 
 # Scons configuration file for doxygen docs  
   
 import os  
1    
2    ##############################################################################
3  #  #
4  # set appropriate defaults for configuration variables  # Copyright (c) 2003-2015 by The University of Queensland
5    # http://www.uq.edu.au
 esysroot=str(Dir('../..').abspath)  
 execfile(str(File(esysroot+"/scons/esys_options.py")))  
   
6  #  #
7  # construct the script to run doxygen  # Primary Business: Queensland, Australia
8    # Licensed under the Open Software License version 3.0
9  rundoxygen_script = open(str(File(esysroot+"/doc/doxygen/rundoxygen")), 'w')  # http://www.opensource.org/licenses/osl-3.0.php
 rundoxygen_script.write(str("#!/bin/bash\n"))  
 rundoxygen_script.write(str(doxygen_path+"/doxygen doxygen/doxygen_esys > doxygen_msgs.txt 2>&1\n"))  
 rundoxygen_script.close()  
   
 os.chmod(str(File(esysroot+"/doc/doxygen/rundoxygen")), 0700)  
   
10  #  #
11  # do the actual build  # Development until 2012 by Earth Systems Science Computational Center (ESSCC)
12    # Development 2012-2013 by School of Earth Sciences
13    # Development from 2014 by Centre for Geoscience Computing (GeoComp)
14    #
15    ##############################################################################
16    
17  import scons_extensions  import os
18    Import('*')
19    
20  source = 'rundoxygen'  doxy_dir=os.path.join(release_dir, 'doxygen')
21    env.Command(doxy_dir, [], [Mkdir(doxy_dir)])
22    
23  doxygen_env = Environment(ENV = os.environ)  # Now some magic from the doxygen FAQ to get the global revision number into
24    # the doxyfile
25    if os.name=='posix':
26        env.Alias('api_doxygen',[doxy_dir],['(cat doc/doxygen/doxygen_esys; echo "PROJECT_NUMBER=\"Revision_`svnversion`\""; echo OUTPUT_DIRECTORY=\"'+doxy_dir+'\" ) | doxygen - '])
27    else:
28        env.Alias('api_doxygen',[doxy_dir],["doxygen doc/doxygen/doxygen_esys"])
29    
30  runDoxygen_builder = Builder(action = scons_extensions.build_doxygen, suffix = ".run", single_source = True)  env.AlwaysBuild('api_doxygen')
 doxygen_env.Append(BUILDERS = {'RunDoxygen' : runDoxygen_builder})  
31    
 Default(doxygen_env.RunDoxygen(source))  

Legend:
Removed from v.488  
changed lines
  Added in v.5593

  ViewVC Help
Powered by ViewVC 1.1.26