Changeset 52a25e5


Ignore:
Timestamp:
Dec 17, 2013, 5:00:19 PM (10 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, pitchshift, sampler, timestretch, yinfft+
Children:
b0ab6ef
Parents:
ad76ce2
Message:

wscript: add doxygen

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wscript

    rad76ce2 r52a25e5  
    244244      ctx.to_log('txt2man was not found (ignoring)')
    245245
     246    # check if doxygen is installed, optional
     247    try:
     248      ctx.find_program('doxygen', var='DOXYGEN')
     249    except ctx.errors.ConfigurationError:
     250      ctx.to_log('doxygen was not found (ignoring)')
     251
    246252def build(bld):
    247253    bld.env['VERSION'] = VERSION
     
    258264    bld( source = 'aubio.pc.in' )
    259265
    260     # build manpages from sgml files
     266    # build manpages from txt files using txt2man
    261267    if bld.env['TXT2MAN']:
    262268        from waflib import TaskGen
     
    277283        bld( source = bld.path.ant_glob('doc/*.txt') )
    278284
    279     """
    280     bld(rule = 'doxygen ${SRC}', source = 'web.cfg') #, target = 'doc/web/index.html')
    281     """
    282 
     285    # build documentation from source files using doxygen
     286    if bld.env['DOXYGEN']:
     287        bld( name = 'doxygen', rule = 'doxygen ${SRC} > /dev/null',
     288                source = 'doc/web.cfg',
     289                cwd = 'doc',
     290                target = 'doc/web/html/index.html')
     291        bld.install_files( '${PREFIX}' + '/share/doc/libaubio-doc',
     292                bld.path.ant_glob('doc/web/html/**'),
     293                cwd = bld.path.find_dir ('doc/web'),
     294                relative_trick = True)
    283295
    284296def shutdown(bld):
Note: See TracChangeset for help on using the changeset viewer.