1 |
|
2 |
############################################################################## |
3 |
# |
4 |
# Copyright (c) 2003-2018 by The University of Queensland |
5 |
# http://www.uq.edu.au |
6 |
# |
7 |
# Primary Business: Queensland, Australia |
8 |
# Licensed under the Apache License, version 2.0 |
9 |
# http://www.apache.org/licenses/LICENSE-2.0 |
10 |
# |
11 |
# 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 os |
18 |
Import('*') |
19 |
|
20 |
doxy_dir=os.path.join(release_dir, 'doxygen') |
21 |
env.Command(doxy_dir, [], [Mkdir(doxy_dir)]) |
22 |
|
23 |
# 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 |
env.AlwaysBuild('api_doxygen') |
31 |
|