Menu

[r12]: / doc / sconscript  Maximize  Restore  History

Download this file

21 lines (18 with data), 870 Bytes

Import( 'env' )
import os.path

if 'doxygen' in env['TOOLS']:
    doc_topdir = env['ROOTBUILD_DIR']
    doxyfile = env.SubstInFile( '#doc/doxyfile', 'doxyfile.in',
                                SUBST_DICT = {
                                    '%JSONCPP_VERSION%' : env['JSONCPP_VERSION'],
                                    '%TOPDIR%' : env.Dir('#').abspath,
                                    '%DOC_TOPDIR%' : str(doc_topdir) } )
    doc_cmd = env.Doxygen( doxyfile )
    env.Alias('doc', doc_cmd)
    env.AlwaysBuild(doc_cmd)

    for dir in doc_cmd:
        filename = os.path.split(dir.path)[1]
        targz_path = os.path.join( env['DIST_DIR'], '%s.tar.gz' % filename )
        zip_doc_cmd = env.TarGz( targz_path, [env.Dir(dir)],
                                 TARGZ_BASEDIR = doc_topdir )
        env.Alias( 'doc-dist', zip_doc_cmd )
MongoDB Logo MongoDB